/* ============================================
   MAHESH SHIKSHAN SANSTHAN - Modern Redesign
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #1a3c6e;
  --primary-light: #2a5298;
  --accent: #c8913a;
  --accent-light: #e8b86d;
  --dark: #0f1923;
  --text: #333;
  --text-light: #666;
  --bg-light: #f8f6f2;
  --bg-warm: #faf7f0;
  --white: #fff;
  --shadow: 0 4px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 50px rgba(0,0,0,0.12);
  --radius: 12px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  background: var(--white);
}

/* Hide old preloader */
.preloader { display: none !important; }

a {
  text-decoration: none !important;
  color: var(--primary);
  transition: var(--transition);
}

a:hover { color: var(--accent); }

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--primary);
  line-height: 1.3;
  font-weight: 700;
}

.section-pad {
  padding: 80px 0;
}

.thm-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Top Bar --- */
.top-bar {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  font-size: 11px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10001;
  line-height: 1;
  height: 24px;
}

.top-bar .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 20px;
}

.top-bar-left {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
}

.top-bar-left span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.top-bar-left i {
  color: var(--accent);
  font-size: 10px;
}

.top-bar-right a {
  color: var(--accent-light);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.top-bar-right a:hover {
  color: var(--white);
}

.top-bar-right i {
  color: var(--accent);
  font-size: 11px;
}

/* --- Modern Header --- */
.modern-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  transition: var(--transition);
}

.modern-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
}

.modern-header .logo-wrap img {
  height: 90px;
  width: auto;
}

.modern-header .logo-wrap .logo-text {
  display: inline-block;
  vertical-align: middle;
  margin-left: 12px;
}

.modern-header .logo-wrap .logo-text .org-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 23px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  display: block;
  white-space: nowrap;
}

.modern-header .logo-wrap .logo-text .org-tag {
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

.modern-nav {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.modern-nav li a {
  display: block;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  font-family: 'Inter', sans-serif;
}

.modern-nav li a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.modern-nav li a:hover::after,
.modern-nav li.active a::after {
  transform: scaleX(1);
}

.modern-nav li a:hover {
  color: var(--primary);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 10001;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--primary);
  margin: 6px 0;
  transition: var(--transition);
}

.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
}

.nav-overlay.active {
  display: block;
}

.nav-close-li {
  display: none;
}

.nav-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--primary);
  cursor: pointer;
  padding: 8px;
}

.mobile-only {
  display: none;
}

@media (max-width: 992px) {
  .mobile-only {
    display: block;
  }
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  overflow: hidden;
  margin-top: 0;
  padding-top: 175px;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/home.jpg') center/cover no-repeat;
  opacity: 0.5;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(transparent, var(--white));
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  color: var(--white);
}

.hero-badge {
  display: inline-block;
  background: rgba(200,145,58,0.2);
  border: 1px solid rgba(200,145,58,0.4);
  color: var(--accent-light);
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-text h1 {
  font-size: 52px;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero-text h1 span {
  color: var(--accent-light);
}

.hero-text p {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary-custom {
  display: inline-block;
  background: var(--accent);
  color: var(--white) !important;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  border: 2px solid var(--accent);
}

.btn-primary-custom:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(200,145,58,0.3);
}

.btn-outline-custom {
  display: inline-block;
  background: transparent;
  color: var(--white) !important;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid rgba(255,255,255,0.3);
  transition: var(--transition);
}

.btn-outline-custom:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
  color: var(--white) !important;
}

/* Hero Stats */
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.stat-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-4px);
}

.stat-card .stat-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 42px;
  font-weight: 700;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-card .stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
}

/* --- Section Title --- */
.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title .overline {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.section-title h2 {
  font-size: 40px;
  margin-bottom: 16px;
}

.section-title p {
  font-size: 17px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.section-title .title-line {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 20px auto 0;
  border-radius: 2px;
}

/* --- Story Section (About/History) --- */
.story-section {
  padding: 100px 0;
  background: var(--white);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.story-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.story-image img {
  width: 100%;
  display: block;
}

.story-image .year-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: var(--accent);
  color: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius);
  text-align: center;
}

.story-image .year-badge .year {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.story-image .year-badge .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.9;
}

.story-content h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.story-content p {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.8;
}

.story-content .highlight-text {
  background: var(--bg-warm);
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  margin: 24px 0;
  font-style: italic;
  color: var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 16px;
}

/* --- Pillars Section (History, Management, Vision cards) --- */
.pillars-section {
  padding: 90px 0;
  background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-warm) 100%);
  position: relative;
}

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

.pillar-card {
  background: var(--white);
  border-radius: 16px;
  padding: 44px 32px 36px;
  text-align: center;
  box-shadow: 0 6px 35px rgba(0,0,0,0.07);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.04);
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary-light));
  background-size: 200% 100%;
  animation: gradientSlide 3s ease infinite;
}

@keyframes gradientSlide {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.pillar-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0;
  background: linear-gradient(180deg, transparent, rgba(26,60,110,0.03));
  transition: height 0.4s ease;
}

.pillar-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 50px rgba(26,60,110,0.15);
}

.pillar-card:hover::after {
  height: 100%;
}

.pillar-card .pillar-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 28px;
  color: var(--white);
  box-shadow: 0 8px 25px rgba(26,60,110,0.25);
  transition: all 0.4s ease;
}

.pillar-card:hover .pillar-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 30px rgba(200,145,58,0.35);
}

.pillar-card h3 {
  font-size: 24px;
  margin-bottom: 16px;
  transition: color 0.3s ease;
}

.pillar-card:hover h3 {
  color: var(--accent);
}

.pillar-card p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.8;
}

.pillar-card .pillar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  padding: 10px 24px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.pillar-card .pillar-link:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--white);
  transform: translateX(4px);
  box-shadow: 0 6px 20px rgba(200,145,58,0.3);
}

/* --- Management Section --- */
.management-section {
  padding: 90px 0;
  background: linear-gradient(180deg, var(--white) 0%, var(--bg-light) 100%);
}

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

.member-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 35px rgba(0,0,0,0.07);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-align: center;
  border: 1px solid rgba(0,0,0,0.04);
  position: relative;
}

.member-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.member-card:hover::before {
  transform: scaleX(1);
}

.member-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 50px rgba(26,60,110,0.15);
}

.member-card .member-img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}

.member-card:hover .member-img {
  transform: scale(1.05);
}

.member-card .member-img-wrap {
  overflow: hidden;
}

.member-card .member-info {
  padding: 22px 16px;
  position: relative;
  background: var(--white);
}

.member-card .member-info::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 20px;
  background: linear-gradient(transparent, var(--white));
}

.member-card .member-info h3 {
  font-size: 18px;
  margin-bottom: 6px;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--primary);
  transition: color 0.3s ease;
}

.member-card:hover .member-info h3 {
  color: var(--accent);
}

.member-card .member-info .role {
  font-size: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  display: inline-block;
  padding: 4px 16px;
  border-radius: 50px;
}

/* --- Institutions Section --- */
.institutions-section {
  padding: 90px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  position: relative;
  overflow: hidden;
}

.institutions-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 20% 50%, rgba(200,145,58,0.08) 0%, transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(255,255,255,0.05) 0%, transparent 50%);
  animation: float 15s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, 10px); }
}

.institutions-section .section-title .overline {
  color: var(--accent-light);
}

.institutions-section .section-title h2 {
  color: var(--white);
}

.institutions-section .section-title .title-line {
  background: var(--accent);
}

.institutions-carousel {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 20px 0;
  position: relative;
  z-index: 2;
}

.institution-logo {
  width: 160px;
  height: 160px;
  background: rgba(255,255,255,0.95);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 2px solid transparent;
}

.institution-logo:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  border-color: var(--accent);
  background: var(--white);
}

.institution-logo img {
  max-width: 110px;
  max-height: 110px;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.institution-logo:hover img {
  transform: scale(1.1);
}

/* --- Trust Bar / Counter Section --- */
.trust-section {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  position: relative;
}

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

.trust-item .trust-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 8px;
}

.trust-item .trust-label {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* --- Vision Section --- */
.vision-section {
  padding: 80px 0;
  background: var(--bg-warm);
  position: relative;
}

.vision-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.vision-content blockquote {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  color: var(--primary);
  line-height: 1.7;
  font-style: italic;
  position: relative;
  padding: 0 20px;
}

.vision-content blockquote::before {
  content: '\201C';
  font-size: 80px;
  color: var(--accent);
  position: absolute;
  top: -30px;
  left: -10px;
  font-family: Georgia, serif;
  opacity: 0.3;
}

.vision-values {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.vision-values .value-tag {
  background: var(--white);
  color: var(--primary);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* --- Modern Footer --- */
.modern-footer {
  background: linear-gradient(180deg, #0f1923 0%, #0a1118 100%);
  color: rgba(255,255,255,0.7);
  padding: 70px 0 0;
  position: relative;
  overflow: hidden;
}

.modern-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary-light));
  background-size: 200% 100%;
  animation: gradientSlide 3s ease infinite;
}

.modern-footer::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,145,58,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
  z-index: 2;
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.footer-about .footer-logo {
  height: 65px;
  filter: none;
  background: rgba(255,255,255,0.95);
  padding: 6px;
  border-radius: 50%;
}

.footer-org-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  display: block;
  line-height: 1.2;
}

.footer-org-tag {
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

.footer-about p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-col h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.footer-col ul li a::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 2px;
  background: var(--accent);
  margin-right: 0;
  transition: all 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--accent-light);
}

.footer-col ul li a:hover::before {
  width: 16px;
  margin-right: 8px;
}

.footer-contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 14px;
  align-items: flex-start;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s ease;
}

.footer-contact-item:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(200,145,58,0.2);
}

.footer-contact-item a {
  color: rgba(255,255,255,0.8);
}

.footer-contact-item a:hover {
  color: var(--accent-light);
}

.footer-contact-item i {
  color: var(--accent);
  margin-top: 2px;
  width: 18px;
  text-align: center;
  font-size: 15px;
}

.footer-bottom-bar {
  text-align: center;
  padding: 22px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  position: relative;
  z-index: 2;
}

.footer-bottom-bar a {
  color: var(--accent-light);
  transition: color 0.3s ease;
}

.footer-bottom-bar a:hover {
  color: var(--white);
}

/* --- History Page --- */
.history-page {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg-light) 0%, var(--white) 50%, var(--bg-warm) 100%);
}

.history-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.history-img-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(26,60,110,0.18);
}

.history-img-card img {
  width: 100%;
  display: block;
}

.history-year-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--white);
  padding: 16px 24px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(200,145,58,0.4);
}

.history-year-badge .year-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 36px;
  font-weight: 700;
  display: block;
  line-height: 1;
}

.history-year-badge .year-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.9;
}

.history-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.history-stat {
  background: var(--white);
  border-radius: 14px;
  padding: 20px 12px;
  text-align: center;
  box-shadow: 0 6px 25px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}

.history-stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(26,60,110,0.12);
}

.history-stat .hs-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}

.history-stat .hs-label {
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}

.history-content-col {
  padding-top: 10px;
}

.history-overline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.history-overline i {
  font-size: 16px;
}

.history-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 34px;
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 28px;
  position: relative;
  padding-bottom: 20px;
}

.history-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px;
}

.history-text p {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 20px;
}

.history-text p b {
  color: var(--primary);
}

.history-highlight {
  background: linear-gradient(135deg, rgba(26,60,110,0.04), rgba(200,145,58,0.06));
  border-left: 4px solid var(--accent);
  border-radius: 0 14px 14px 0;
  padding: 24px 28px;
  margin: 28px 0;
  font-size: 17px;
  font-style: italic;
  color: var(--primary);
  line-height: 1.8;
  position: relative;
}

.history-highlight i {
  color: var(--accent);
  font-size: 20px;
  margin-right: 8px;
  opacity: 0.5;
}

.history-highlight b {
  color: var(--accent);
}

.history-callout {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  padding: 24px 28px;
  border-radius: 14px;
  margin-top: 28px;
  box-shadow: 0 10px 35px rgba(26,60,110,0.25);
}

.history-callout i {
  font-size: 28px;
  color: var(--accent-light);
  margin-top: 2px;
  flex-shrink: 0;
}

.history-callout span {
  font-size: 16px;
  line-height: 1.8;
}

.history-callout b {
  color: var(--accent-light);
}

@media (max-width: 992px) {
  .history-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 576px) {
  .history-heading {
    font-size: 26px;
  }
  .history-stats-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .history-stat .hs-number {
    font-size: 22px;
  }
}

/* --- Vision Page --- */
.vision-page {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-warm) 100%);
  position: relative;
  overflow: hidden;
}

.vision-page::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,145,58,0.08) 0%, transparent 70%);
}

.vision-page::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -200px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,60,110,0.06) 0%, transparent 70%);
}

.vision-page-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 24px;
  padding: 50px 50px 40px;
  box-shadow: 0 20px 60px rgba(26,60,110,0.1);
  text-align: center;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(0,0,0,0.04);
}

.vision-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 32px;
  color: var(--white);
  box-shadow: 0 10px 30px rgba(26,60,110,0.25);
}

.vision-quote-mark {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 80px;
  color: var(--accent);
  opacity: 0.2;
  line-height: 0.5;
  margin-bottom: 10px;
}

.vision-page-card p {
  font-size: 18px;
  color: var(--text);
  line-height: 2;
  margin-bottom: 30px;
}

.vision-page-card p b {
  color: var(--primary);
  font-weight: 700;
}

.vision-values-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.v-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(26,60,110,0.06), rgba(200,145,58,0.08));
  color: var(--primary);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid rgba(26,60,110,0.08);
  transition: all 0.3s ease;
}

.v-tag i {
  color: var(--accent);
  font-size: 14px;
}

.v-tag:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(26,60,110,0.2);
}

.v-tag:hover i {
  color: var(--accent-light);
}

@media (max-width: 576px) {
  .vision-page-card {
    padding: 30px 24px;
  }
  .vision-page-card p {
    font-size: 16px;
  }
}

/* --- Management Page --- */
.mgmt-page {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg-light) 0%, var(--white) 50%, var(--bg-warm) 100%);
}

.mgmt-committee {
  margin-top: 60px;
  padding-top: 60px;
  border-top: 2px solid rgba(0,0,0,0.04);
}

.mgmt-grid-3 {
  max-width: 900px;
  margin: 0 auto;
  grid-template-columns: repeat(3, 1fr) !important;
}

@media (max-width: 576px) {
  .mgmt-grid-3 {
    grid-template-columns: 1fr !important;
  }
}

/* --- Achievement Page V2 (Timeline) --- */
.achieve-page-v2 {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-warm) 50%, var(--white) 100%);
}

.achieve-v2-layout {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 60px;
  align-items: start;
}

.timeline-col {
  position: relative;
  padding-left: 50px;
}

.timeline-line {
  position: absolute;
  left: 22px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--primary), var(--accent));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 24px;
}

.timeline-dot {
  position: absolute;
  left: -50px;
  top: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--white);
  z-index: 2;
  box-shadow: 0 4px 15px rgba(26,60,110,0.3);
  transition: all 0.4s ease;
  border: 3px solid var(--white);
}

.timeline-item:hover .timeline-dot {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  transform: scale(1.2);
  box-shadow: 0 6px 25px rgba(200,145,58,0.4);
}

.timeline-card {
  background: var(--white);
  border-radius: 16px;
  padding: 28px 28px 28px 32px;
  box-shadow: 0 4px 25px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.4s ease;
  position: relative;
}

.timeline-card::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 28px;
  width: 16px;
  height: 16px;
  background: var(--white);
  border-left: 1px solid rgba(0,0,0,0.04);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transform: rotate(45deg);
}

.timeline-card.gold-accent {
  border-left: 4px solid var(--accent);
}

.timeline-card.gold-accent::before {
  border-left-color: transparent;
}

.timeline-item:hover .timeline-card {
  transform: translateX(6px);
  box-shadow: 0 12px 40px rgba(26,60,110,0.1);
}

.timeline-item:hover .timeline-card.gold-accent {
  border-left-color: var(--primary);
}

.tc-content {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.85;
}

.tc-content b {
  color: var(--primary);
  font-weight: 600;
}

.achieve-v2-side {
  position: sticky;
  top: 140px;
}

.achieve-tree-card-v2 {
  background: var(--white);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 15px 50px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
}

.achieve-tree-card-v2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary-light));
  background-size: 200% 100%;
  animation: gradientSlide 3s ease infinite;
}

.achieve-tree-card-v2 img {
  width: 100%;
  border-radius: 16px;
}

@media (max-width: 992px) {
  .achieve-v2-layout {
    grid-template-columns: 1fr;
  }
  .achieve-v2-side {
    position: static;
  }
}

@media (max-width: 576px) {
  .timeline-col {
    padding-left: 40px;
  }
  .timeline-dot {
    width: 36px;
    height: 36px;
    left: -40px;
    font-size: 13px;
  }
  .timeline-line {
    left: 16px;
  }
  .timeline-card {
    padding: 20px;
  }
}

/* --- Institution Page --- */
.inst-intro-section {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg-light), var(--white));
}

.inst-intro-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 50px;
  align-items: center;
}

.inst-intro-card {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.07);
  border: 1px solid rgba(0,0,0,0.04);
  position: relative;
}

.inst-intro-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--white);
  margin-bottom: 20px;
  box-shadow: 0 8px 25px rgba(26,60,110,0.25);
}

.inst-intro-card p {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.9;
}

.inst-intro-card p b {
  color: var(--primary);
}

.inst-intro-img img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.inst-units-section {
  padding: 80px 0;
  background: var(--bg-warm);
}

.inst-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.inst-unit-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border-radius: 14px;
  padding: 20px 24px;
  text-decoration: none !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}

.inst-unit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(26,60,110,0.12);
  border-color: var(--accent);
}

.inst-unit-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  min-width: 36px;
}

.inst-unit-name {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
  color: var(--primary);
}

.inst-unit-card i {
  color: var(--accent);
  font-size: 14px;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s ease;
}

.inst-unit-card:hover i {
  opacity: 1;
  transform: translateX(0);
}

.inst-unit-card:hover .inst-unit-name {
  color: var(--accent);
}

@media (max-width: 768px) {
  .inst-intro-layout {
    grid-template-columns: 1fr;
  }
  .inst-grid {
    grid-template-columns: 1fr;
  }
}

/* --- News Page --- */
.news-page {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg-light), var(--white));
}

.news-article {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 24px;
  padding: 50px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.07);
  border: 1px solid rgba(0,0,0,0.04);
}

.news-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--white);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.news-article h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  color: var(--primary);
  line-height: 1.4;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid rgba(0,0,0,0.05);
}

.news-article p {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 16px;
}

.news-guidelines {
  background: linear-gradient(135deg, rgba(26,60,110,0.04), rgba(200,145,58,0.06));
  border-radius: 16px;
  padding: 28px;
  margin-top: 24px;
}

.news-guidelines h4 {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.news-guidelines h4 i {
  color: var(--accent);
}

.news-guidelines ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-guidelines ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.news-guidelines ul li:last-child {
  border-bottom: none;
}

.news-guidelines ul li i {
  color: var(--accent);
  margin-top: 4px;
  flex-shrink: 0;
}

@media (max-width: 576px) {
  .news-article {
    padding: 28px;
  }
  .news-article h3 {
    font-size: 22px;
  }
}

/* --- Contact Page --- */
.contact-page-section {
  padding: 80px 0 40px;
  background: linear-gradient(180deg, var(--bg-light), var(--white));
}

.contact-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-pg-card {
  background: var(--white);
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 8px 35px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.contact-pg-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.contact-pg-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 50px rgba(26,60,110,0.12);
}

.contact-pg-card:hover::before {
  transform: scaleX(1);
}

.cpg-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 24px;
  color: var(--white);
  box-shadow: 0 8px 25px rgba(26,60,110,0.2);
  transition: all 0.3s ease;
}

.contact-pg-card:hover .cpg-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 30px rgba(200,145,58,0.3);
}

.contact-pg-card h4 {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 700;
}

.contact-pg-card p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
}

.contact-map-section {
  padding: 0 0 80px;
  background: var(--white);
}

.contact-map-wrap {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  border: 4px solid var(--white);
  outline: 1px solid rgba(0,0,0,0.06);
}

@media (max-width: 768px) {
  .contact-cards-row {
    grid-template-columns: 1fr;
  }
}

/* --- Inner Page Banner --- */
.page-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  padding: 220px 0 60px;
  text-align: center;
  position: relative;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('../images/home.jpg') center/cover;
  opacity: 0.1;
}

.page-banner * {
  position: relative;
  z-index: 2;
}

.page-banner h1 {
  font-size: 44px;
  color: var(--white);
  margin-bottom: 12px;
}

.page-banner .breadcrumb-custom {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

.page-banner .breadcrumb-custom a {
  color: var(--accent-light);
}

.page-banner .breadcrumb-custom .sep {
  margin: 0 10px;
  opacity: 0.4;
}

/* --- Content Section for inner pages --- */
.content-section {
  padding: 80px 0;
  background: var(--white);
}

.content-section .content-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  max-width: 900px;
  margin: 0 auto;
}

.content-section .content-card p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-light);
  margin-bottom: 16px;
}

.content-section .content-card p b,
.content-section .content-card p strong {
  color: var(--primary);
  font-weight: 600;
}

/* Achievement list */
.achievement-list {
  list-style: none;
  padding: 0;
  counter-reset: achievement;
}

.achievement-list li {
  counter-increment: achievement;
  padding: 20px 20px 20px 70px;
  position: relative;
  margin-bottom: 12px;
  background: var(--bg-light);
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-light);
  transition: var(--transition);
}

.achievement-list li:hover {
  background: var(--bg-warm);
  transform: translateX(4px);
}

.achievement-list li::before {
  content: counter(achievement, decimal-leading-zero);
  position: absolute;
  left: 20px;
  top: 20px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

.achievement-list li b,
.achievement-list li strong {
  color: var(--primary);
  font-weight: 600;
}

/* Institution list */
.institution-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.institution-list li {
  background: var(--bg-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.institution-list li:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.institution-list li a {
  display: block;
  padding: 18px 24px;
  color: var(--primary);
  font-weight: 500;
  font-size: 15px;
  border-left: 4px solid var(--accent);
}

.institution-list li a:hover {
  background: var(--white);
  color: var(--accent);
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  margin-top: 40px;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.contact-card .contact-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 20px;
  color: var(--white);
}

.contact-card h4 {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 700;
}

.contact-card p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
}

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}

.map-container iframe {
  display: block;
}

/* --- News Page --- */
.news-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  max-width: 800px;
  margin: 0 auto;
}

.news-card h3 {
  font-size: 24px;
  margin-bottom: 20px;
  line-height: 1.4;
}

.news-card p {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

.news-card ol {
  padding-left: 20px;
}

.news-card ol li {
  padding: 8px 0;
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 40px;
  }

  .hero-text h1 { font-size: 36px; }
  .hero-text p { margin: 0 auto 32px; }
  .hero-cta { justify-content: center; }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .management-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid, .contact-cards-row {
    grid-template-columns: 1fr;
  }

  .institution-list, .inst-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile Header */
  .modern-header .header-inner {
    padding: 10px 16px;
  }

  .modern-header .logo-wrap img {
    height: 50px;
  }

  .modern-header .logo-wrap .logo-text .org-name {
    font-size: 15px;
  }

  .modern-header .logo-wrap .logo-text .org-tag {
    font-size: 9px;
    letter-spacing: 1px;
  }

  .modern-header .logo-wrap .logo-text {
    margin-left: 8px;
  }

  /* Mobile Nav - Slide in, not full screen */
  .modern-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    z-index: 10000;
    padding: 80px 20px 40px;
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
    overflow-y: auto;
  }

  .modern-nav.active {
    display: flex;
  }

  .modern-nav li {
    width: 100%;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }

  .modern-nav li a {
    font-size: 15px;
    padding: 14px 10px;
    display: block;
    width: 100%;
  }

  .modern-nav li a::after {
    display: none;
  }

  .nav-close-li {
    display: block;
    width: 100%;
    text-align: right;
    border-bottom: none !important;
    margin-bottom: 10px;
  }

  .nav-toggle {
    display: block;
    position: relative;
    z-index: 10001;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .page-banner h1 {
    font-size: 30px;
  }

  .page-banner {
    padding: 140px 0 40px;
  }

  /* Mobile sections padding */
  .pillars-section,
  .management-section,
  .institutions-section,
  .mgmt-page,
  .achieve-page-v2,
  .inst-intro-section,
  .inst-units-section,
  .news-page,
  .contact-page-section,
  .vision-page,
  .history-page,
  .story-section,
  .content-section {
    padding: 50px 0;
  }
}

@media (max-width: 576px) {
  .hero-section {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .hero-text h1 { font-size: 28px; }
  .hero-text p { font-size: 15px; }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary-custom, .btn-outline-custom {
    width: 100%;
    text-align: center;
  }

  .management-grid {
    grid-template-columns: 1fr;
  }

  .mgmt-grid-3 {
    grid-template-columns: 1fr !important;
  }

  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section-pad { padding: 40px 0; }

  .content-section .content-card {
    padding: 20px;
  }

  .pillar-card {
    padding: 30px 20px 28px;
  }

  .member-card .member-img {
    height: auto;
    aspect-ratio: 3/4;
  }

  /* Footer mobile */
  .footer-logo-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-org-name {
    font-size: 17px;
  }

  /* Vision page mobile */
  .vision-page-card {
    padding: 30px 20px;
  }

  .vision-values-row {
    gap: 8px;
  }

  .v-tag {
    padding: 8px 14px;
    font-size: 11px;
  }

  /* News mobile */
  .news-article {
    padding: 24px;
  }

  .news-article h3 {
    font-size: 20px;
  }

  /* Contact mobile */
  .contact-pg-card {
    padding: 28px 20px;
  }

  /* Institution intro mobile */
  .inst-intro-layout {
    grid-template-columns: 1fr;
  }

  .inst-intro-card {
    padding: 28px 20px;
  }

  /* Achievement mobile */
  .achieve-v2-layout {
    grid-template-columns: 1fr;
  }

  .achieve-v2-side {
    position: static;
  }

  .timeline-col {
    padding-left: 36px;
  }

  .timeline-dot {
    width: 32px;
    height: 32px;
    left: -36px;
    font-size: 12px;
  }

  .timeline-line {
    left: 14px;
  }

  .timeline-card {
    padding: 18px;
  }

  .tc-content {
    font-size: 14px;
  }

  /* History mobile */
  .history-layout {
    grid-template-columns: 1fr;
  }

  .history-heading {
    font-size: 24px;
  }

  .history-highlight {
    padding: 18px 20px;
    font-size: 15px;
  }

  .history-callout {
    padding: 20px;
    flex-direction: column;
    gap: 12px;
  }
}

/* Hide old template elements */
.header-home-one,
.rev_slider_wrapper,
.service-section.home-one,
.case-study-section,
.our-partners,
.inner-banner,
.footer-main,
.footer-bottom,
.header-top,
.header-one-navigation {
  display: none !important;
}
