/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* CSS Variables & Theme Config */
:root {
  /* Brand Colors matched to Rueters Academic Logo */
  --primary: #0c2b5c;
  --primary-hover: #081d3f;
  --primary-rgb: 12, 43, 92;
  --secondary: #c5a059; /* Scholarly Gold accent */
  --secondary-hover: #b08d48;
  
  /* Text and BG Colors */
  --dark-blue: #091e42; /* Deeper navy matching logo */
  --slate-text: #4a5568;
  --bg-light: #f7fafc;
  --bg-white: #ffffff;
  --border-color: #e2e8f0;
  
  /* Modern Styling Helpers */
  --font-sans: 'Mulish', sans-serif;
  --font-display: 'Mulish', sans-serif;
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  --header-height: 80px;
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--slate-text);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--dark-blue);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-bg-white {
  background-color: var(--bg-white);
}

.text-center {
  text-align: center;
}

/* Badge */
.badge {
  display: inline-block;
  padding: 6px 16px;
  background-color: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Buttons */
.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--bg-white);
  box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: rgba(var(--primary-rgb), 0.05);
  transform: translateY(-2px);
}

.btn-white {
  background-color: var(--bg-white);
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  background-color: var(--bg-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Header & Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  height: 70px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--dark-blue);
}

.logo span {
  color: var(--primary);
}

.logo-icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-white);
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.3);
}

.nav-links-wrapper {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--dark-blue);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--dark-blue);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 80px;
  background: radial-gradient(circle at 80% 20%, rgba(var(--primary-rgb), 0.08) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(197, 160, 89, 0.06) 0%, transparent 40%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 54px;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text {
  font-size: 18px;
  color: var(--slate-text);
  margin-bottom: 36px;
  max-width: 600px;
}

/* Decorative Blobs */
.blob-container {
  position: relative;
  width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 1;
}

.blob-1 {
  width: 300px;
  height: 300px;
  background-color: rgba(var(--primary-rgb), 0.15);
  top: 10%;
  left: 20%;
  animation: float 8s ease-in-out infinite alternate;
}

.blob-2 {
  width: 250px;
  height: 250px;
  background-color: rgba(197, 160, 89, 0.15);
  bottom: 10%;
  right: 10%;
  animation: float 12s ease-in-out infinite alternate-reverse;
}

/* Glassmorphism Card in Hero */
.hero-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  z-index: 2;
  position: relative;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  transition: var(--transition);
}

.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.hero-card-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background-color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-white);
  font-size: 24px;
}

.hero-card-title {
  font-size: 18px;
  font-weight: 700;
}

.hero-card-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.hero-card-item:last-child {
  margin-bottom: 0;
}

.hero-card-icon {
  color: var(--secondary);
  font-weight: bold;
}

/* Floating Animations */
@keyframes float {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-20px) scale(1.05); }
}

/* Stats Counter Section */
.stats {
  background-color: var(--dark-blue);
  color: var(--bg-white);
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-card {
  text-align: center;
  padding: 10px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
  background: linear-gradient(135deg, #60a5fa, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-title {
  font-size: 16px;
  font-weight: 500;
  color: #94a3b8;
}

/* About / Welcome Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-grid-minimal {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: flex-start;
}

.about-content h2 {
  font-size: 38px;
  margin-bottom: 24px;
}

.about-text {
  font-size: 16px;
  margin-bottom: 24px;
}

.about-list {
  list-style: none;
  margin-bottom: 36px;
}

.about-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-weight: 500;
  color: var(--dark-blue);
}

.about-list-icon {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background-color: rgba(4, 107, 210, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  min-height: 400px;
  display: flex;
  transition: var(--transition);
}

.about-image-wrapper img {
  transition: var(--transition);
}

.about-image-wrapper:hover img {
  transform: scale(1.03);
}

/* Initiatives Grid */
.section-title {
  font-size: 38px;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto 60px;
}

.initiatives-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.initiative-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.initiative-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.initiative-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background-color: rgba(var(--primary-rgb), 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 24px;
  transition: var(--transition);
}

.initiative-card:hover .initiative-icon {
  background-color: var(--primary);
  color: var(--bg-white);
}

.initiative-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.initiative-card p {
  font-size: 15px;
  color: var(--slate-text);
  margin-bottom: 20px;
}

.initiative-link {
  font-weight: 600;
  font-size: 14px;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.initiative-link span {
  transition: var(--transition);
}

.initiative-card:hover .initiative-link span {
  transform: translateX(4px);
}

/* Call to Action Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
  color: var(--bg-white);
  text-align: center;
  overflow: hidden;
}

.cta-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 20%, rgba(197, 160, 89, 0.15) 0%, transparent 40%);
  pointer-events: none;
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-title {
  color: var(--bg-white);
  font-size: 42px;
  margin-bottom: 20px;
}

.cta-desc {
  font-size: 18px;
  margin-bottom: 40px;
  opacity: 0.9;
}

.cta-section .btn-group {
  justify-content: center;
}

/* Footer styling */
.site-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 80px 0 40px;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-info-logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--bg-white);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-info-logo span {
  color: var(--primary);
}

.footer-info-text {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #1e293b;
  color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-social-link:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

.footer-heading {
  color: var(--bg-white);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
}

.footer-link-item {
  margin-bottom: 12px;
}

.footer-link {
  font-size: 14px;
}

.footer-link:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
}

.footer-contact-icon {
  color: var(--secondary);
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  flex-wrap: wrap;
  gap: 20px;
}

/* Custom Responsive Grid Classes */
/* Editorial Mission/Vision layout */
.purpose-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.purpose-item {
  position: relative;
  padding-left: 48px;
}

.purpose-num {
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.purpose-item-mission .purpose-num {
  color: rgba(12, 43, 92, 0.15); /* primary faded */
}

.purpose-item-vision .purpose-num {
  color: rgba(197, 160, 89, 0.25); /* secondary faded */
}

.purpose-item h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 10px;
  font-family: var(--font-display);
}

.purpose-item p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--slate-text);
}

.what-why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

/* Mobile responsive menu */
@media (max-width: 992px) {
  .mission-vision-grid,
  .what-why-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-card {
    transform: none;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-grid,
  .about-grid-minimal {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .initiatives-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  
  .hero-title {
    font-size: 38px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .initiatives-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .nav-links-wrapper {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-white);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    padding: 40px 24px;
    z-index: 999;
    box-shadow: var(--shadow-lg);
  }
  
  .nav-links-wrapper.active {
    left: 0;
  }
  
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
    margin-bottom: 40px;
  }
  
  .nav-cta {
    width: 100%;
  }
  
  .nav-cta .btn {
    width: 100%;
  }
  
  /* hamburger transformations */
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* Extra Small Screen Adjustments (Down to 320px) */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .container {
    padding: 0 16px;
  }
  
  .section {
    padding: 50px 0;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .hero-text {
    font-size: 15px;
    margin-bottom: 24px;
  }
  
  .btn {
    padding: 12px 20px;
    font-size: 15px;
    width: 100%;
  }
  
  .btn-group {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  
  .hero-card {
    padding: 20px 16px;
  }
  
  .stat-number {
    font-size: 36px;
  }
  
  .about-graphic {
    min-height: 250px;
    padding: 20px;
  }
  
  .about-badge {
    display: none;
  }
  
  .initiative-card {
    padding: 30px 20px;
  }
  
  .cta-title {
    font-size: 26px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}
