/* index.css - Professional College Landing Page - REM BASED (Professional Standard) */

/* ===== CSS Variables ===== */
:root {
  --primary-color: #0d6efd;
  --primary-dark: #0b5ed7;
  --primary-light: #e8f4ff;
  --secondary-color: #6c757d;
  --accent-color: #0dcaf0;
  --success-color: #198754;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --gray-50: #f8f9fa;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;

  --purple: #6f42c1;
  --pink: #d63384;
  --teal: #20c997;
  --orange: #fd7e14;

  --shadow-sm: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08);
  --shadow-md: 0 0.25rem 1rem rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 0.5rem 2rem rgba(0, 0, 0, 0.16);

  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Spacing variables for consistency */
  --space-xs: 0.5rem; /* 8px */
  --space-sm: 1rem; /* 16px */
  --space-md: 1.5rem; /* 24px */
  --space-lg: 2rem; /* 32px */
  --space-xl: 3rem; /* 48px */
  --space-2xl: 4rem; /* 64px */
}

/* ===== Base Typography - REM BASED ===== */
html {
  font-size: 16px; /* Base font size - 1rem = 16px */
}

body {
  font-family: "Poppins", sans-serif;
  font-size: 1rem; /* 16px */
  color: var(--gray-700);
  line-height: 1.6;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

/* Professional Corporate Typography Scale */
h1,
.h1 {
  font-size: 2.25rem; /* 36px */
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h2,
.h2 {
  font-size: 1.875rem; /* 30px */
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.875rem;
  letter-spacing: -0.015em;
}

h3,
.h3 {
  font-size: 1.5rem; /* 24px */
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

h4,
.h4 {
  font-size: 1.25rem; /* 20px */
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  letter-spacing: -0.005em;
}

h5,
.h5 {
  font-size: 1.125rem; /* 18px */
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  letter-spacing: normal;
}

h6,
.h6 {
  font-size: 1rem; /* 16px */
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.375rem;
  letter-spacing: normal;
}

/* Paragraph Text Sizes */
.lead-text {
  font-size: 1.125rem; /* 18px */
  font-weight: 400;
  line-height: 1.6;
}

.normal-text {
  font-size: 1rem; /* 16px */
  font-weight: 400;
  line-height: 1.6;
}

.small-text {
  font-size: 0.875rem; /* 14px */
  font-weight: 400;
  line-height: 1.5;
}

.extra-small {
  font-size: 0.75rem; /* 12px */
  font-weight: 400;
  line-height: 1.4;
}

/* Headings font family */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  color: var(--gray-900);
}

/* ===== Container & Layout ===== */
.container {
  max-width: 75rem; /* 1200px */
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

/* ===== Hero Section with Slider ===== */
.hero-section {
  position: relative;
  min-height: 85vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Hero Slider Container */
.hero-slider-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

/* Slider */
.hero-slider {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

/* Slides */
.hero-slide {
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

/* Image styling */
.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

/* Dark overlay for better text visibility */
.hero-slide::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(13, 110, 253, 0.55) 0%,
    rgba(13, 110, 253, 0.35) 30%,
    rgba(13, 110, 253, 0.15) 100%
  );
  z-index: 2;
}

/* Navigation Buttons */
.hero-slider-prev,
.hero-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: 0.125rem solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 3.125rem;
  height: 3.125rem;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
  backdrop-filter: blur(0.3125rem);
}

.hero-slider-prev:hover,
.hero-slider-next:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.1);
}

.hero-slider-prev {
  left: 1.875rem;
}

.hero-slider-next {
  right: 1.875rem;
}

/* Slide Indicators */
.hero-slider-dots {
  position: absolute;
  bottom: 1.875rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 3;
}

.hero-slider-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 0.125rem solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.hero-slider-dot.active {
  background: white;
  transform: scale(1.2);
}

.hero-slider-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

/* Content Overlay */
.hero-content-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 7.5rem 0 5rem; /* 120px 0 80px */
}

/* Hero Content Styling */
.hero-title {
  font-size: 3rem; /* 48px */
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: white;
  text-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.3);
}

.hero-lead {
  font-size: 1.25rem; /* 20px */
  line-height: 1.6;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
}

.hero-sub {
  font-size: 1.125rem; /* 18px */
  line-height: 1.6;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.85);
}

.text-highlight {
  color: #ffd700;
  font-weight: 700;
}

.hero-badge {
  display: inline-block;
}

.hero-badge .badge {
  font-size: 1rem;
  border-radius: 3.125rem;
  box-shadow: 0 0.25rem 0.9375rem rgba(255, 255, 255, 0.2);
}

.hero-buttons .btn {
  font-weight: 600;
  border-radius: 3.125rem;
  transition: all var(--transition-normal);
}

.hero-buttons .btn-primary {
  background: white;
  color: var(--primary-color);
  border: 0.125rem solid white;
}

.hero-buttons .btn-primary:hover {
  background: transparent;
  color: white;
  transform: translateY(-0.1875rem);
  box-shadow: 0 0.625rem 1.5625rem rgba(255, 255, 255, 0.2);
}

.hero-buttons .btn-outline-light {
  border: 0.125rem solid white;
  background: transparent;
}

.hero-buttons .btn-outline-light:hover {
  background: white;
  color: var(--primary-color);
  transform: translateY(-0.1875rem);
}

.hero-content-spacer {
  height: 100%;
}

/* ===== Sub Navigation ===== */
.page-subnav {
  background: var(--gray-100);
  padding: 0.9375rem 0; /* 15px */
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 0.0625rem solid var(--gray-200);
}

.subnav {
  display: flex;
  justify-content: center;
  gap: 1.875rem;
  flex-wrap: wrap;
}

.subnav a {
  color: var(--gray-700);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: color var(--transition-fast);
}

.subnav a:hover,
.subnav a.active {
  color: var(--primary-color);
}

.subnav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 0.125rem;
  background: var(--primary-color);
  transition: width var(--transition-normal);
}

.subnav a:hover::after,
.subnav a.active::after {
  width: 100%;
}

/* ===== Section Common Styles ===== */
.section-subtitle {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.0625rem;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2rem;
  color: var(--gray-900);
  margin-bottom: 1.25rem;
}

.section-lead {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 1.875rem;
}

.section-text {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.7;
}

/* =========================================================
    ABOUT SECTION - RESPONSIVE & ALIGNED
    ========================================================= */

/* About Section Base */
.about-section {
  padding: var(--space-xl) 0;
  background-color: #fff;
  position: relative;
}

/* Image Container */
.about-image-container {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
}

.main-image {
  width: 100%;
  height: auto;
  min-height: 25rem;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
}

.main-image:hover {
  transform: translateY(-0.3125rem);
}

/* Content Area */
.about-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Feature Items */
.feature-icon {
  min-width: 3.125rem;
  height: 3.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  flex-shrink: 0;
}

.feature-icon i {
  font-size: 1.25rem;
}

/* Feature Text */
.feature-icon + div h6 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.25rem;
}

.feature-icon + div p {
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--gray-600);
}

/* Button Styling */
.about-content .btn {
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.about-content .btn:hover {
  transform: translateY(-0.125rem);
  box-shadow: 0 0.5rem 1.25rem rgba(13, 110, 253, 0.3);
}

/* ===== Programs Section ===== */
.programs-section {
  padding: var(--space-xl) 0;
  background: var(--gray-50);
}

.program-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.875rem;
  height: 100%;
  border: 0.0625rem solid var(--gray-200);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.program-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0.25rem;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

.program-card:hover {
  transform: translateY(-0.625rem);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.program-card:hover::before {
  transform: scaleX(1);
}

.program-icon {
  width: 4.375rem;
  height: 4.375rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}

.program-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--gray-900);
}

.program-desc {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.program-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  color: var(--gray-500);
  font-size: 0.875rem;
}

.program-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.program-link:hover {
  color: var(--primary-dark);
  transform: translateX(0.3125rem);
}

/* Custom Colors */
.bg-purple {
  background-color: var(--purple);
}
.text-purple {
  color: var(--purple);
}
.bg-pink {
  background-color: var(--pink);
}
.text-pink {
  color: var(--pink);
}
.bg-teal {
  background-color: var(--teal);
}
.text-teal {
  color: var(--teal);
}
.bg-orange {
  background-color: var(--orange);
}
.text-orange {
  color: var(--orange);
}

/* ===== Features Section ===== */
.features-section {
  padding: var(--space-xl) 0;
}

.feature-card {
  padding: 1.875rem;
  border-radius: var(--radius-md);
  border: 0.0625rem solid var(--gray-200);
  transition: all var(--transition-normal);
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-0.625rem);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-icon-wrapper {
  position: relative;
  margin-bottom: 1.25rem;
}

.feature-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.feature-icon::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
  opacity: 0.2;
  z-index: -1;
  animation: pulse 2s infinite;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ===== Placement Section ===== */
.placement-section {
  padding: var(--space-xl) 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, #0b5ed7 100%);
  position: relative;
  overflow: hidden;
}

.placement-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 18.75rem;
  height: 18.75rem;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  border-radius: 50%;
}

/* Text color utilities for placement section */
.placement-section .text-white {
  color: #ffffff !important;
}

.placement-section .text-white-80 {
  color: rgba(255, 255, 255, 0.8) !important;
}

.placement-section .text-white-90 {
  color: rgba(255, 255, 255, 0.9) !important;
}

.placement-stat {
  text-align: center;
  padding: 1.25rem;
}

.placement-number {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.placement-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.company-logos {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(0.625rem);
  border-radius: var(--radius-md);
  padding: 1.875rem;
}

.company-logos h5 {
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.company-logo {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 7.5rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.company-logo:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-0.3125rem);
}

.company-logo::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0.1875rem;
  background: linear-gradient(90deg, #ffd700, #ffed4e);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.company-logo:hover::before {
  transform: scaleX(1);
}

.company-logo img {
  max-width: 100%;
  max-height: 2.5rem;
  filter: brightness(0) invert(1);
  margin-bottom: 0.5rem;
}

.company-name {
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
}

/* ===== Campus Life Section ===== */
.campus-life-section {
  padding: var(--space-xl) 0;
  background: var(--gray-50);
}

.campus-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.campus-card:hover {
  transform: translateY(-0.625rem);
  box-shadow: var(--shadow-lg);
}

.campus-img {
  height: 15.625rem;
  overflow: hidden;
}

.campus-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.campus-card:hover .campus-img img {
  transform: scale(1.1);
}

.campus-content {
  padding: 1.5rem;
}

.campus-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.campus-desc {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.campus-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.campus-link:hover {
  color: var(--primary-dark);
  transform: translateX(0.3125rem);
}

/* ===== Events & Gallery Section ===== */
.events-gallery-section {
  padding: var(--space-xl) 0;
  background: var(--gray-50);
}

.card-header {
  padding: 1rem 1.5rem;
}

.card-header h5 {
  font-size: 1.125rem;
  margin: 0;
}

.list-group-item {
  border: none;
  border-bottom: 0.0625rem solid var(--gray-200);
  padding: 1.25rem 1.5rem;
  transition: all var(--transition-fast);
}

.list-group-item:hover {
  background-color: var(--primary-light);
  transform: translateX(0.3125rem);
}

.list-group-item:last-child {
  border-bottom: none;
}

.list-group-item h6 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.list-group-item p {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: 0.5rem;
}

.list-group-item small {
  font-size: 0.75rem;
}

.badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
}

.carousel-item img {
  width: 100%;
  height: 21.875rem;
  object-fit: cover;
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.5);
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  max-width: 80%;
}

.carousel-caption p {
  font-size: 0.875rem;
  margin: 0;
  color: white;
}

.carousel-indicators button {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  margin: 0 0.3125rem;
}

/* ===== Floating CTA Section ===== */
.floating-cta-section {
  padding: 3.75rem 0;
  position: relative;
  z-index: 10;
}

.floating-cta {
  position: relative;
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, #0b5ed7 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: pulse 2s infinite;
}

.floating-cta-content h3 {
  font-size: 1.75rem;
  color: white;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.floating-cta-content p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.floating-cta-btn {
  position: relative;
  z-index: 2;
  border-radius: 3.125rem;
  font-size: 1rem;
  font-weight: 600;
  padding: 1rem 2.5rem;
  box-shadow: 0 0.5rem 1.5625rem rgba(0, 0, 0, 0.2);
  transition: all var(--transition-normal);
  animation: floatBtn 3s ease-in-out infinite;
}

.floating-element {
  position: absolute;
  color: rgba(255, 255, 255, 0.2);
  font-size: 1.5rem;
  animation: floatElement 6s ease-in-out infinite;
}

.fe-1 {
  top: 1.25rem;
  left: 1.25rem;
  animation-delay: 0s;
}

.fe-2 {
  top: 2.5rem;
  right: 2.5rem;
  animation-delay: 2s;
}

.fe-3 {
  bottom: 1.875rem;
  left: 50%;
  animation-delay: 4s;
}

/* ===== Buttons ===== */
.btn {
  font-size: 1rem;
  font-weight: 500;
  padding: 0.625rem 1.5rem;
  border-radius: 0.375rem;
  transition: all var(--transition-normal);
}

.btn-lg {
  font-size: 1.125rem;
  padding: 0.75rem 2rem;
}

.btn-sm {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}

.btn-primary {
  background: var(--primary-color);
  border: 0.0625rem solid var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-0.125rem);
  box-shadow: var(--shadow-md);
}

.btn-outline-light {
  border: 0.125rem solid white;
  color: white;
  background: transparent;
}

.btn-outline-light:hover {
  background: white;
  color: var(--primary-color);
  transform: translateY(-0.125rem);
}

.btn-light {
  background: white;
  color: var(--primary-color);
  border: 0.0625rem solid white;
}

.btn-light:hover {
  background: var(--gray-100);
  color: var(--primary-dark);
  transform: translateY(-0.125rem);
}

/* ===== Animations ===== */
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0.625rem 2.5rem rgba(13, 110, 253, 0.3);
  }
  50% {
    box-shadow: 0 0.9375rem 3.125rem rgba(13, 110, 253, 0.5);
  }
}

@keyframes floatBtn {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-0.625rem) scale(1.05);
  }
}

@keyframes floatElement {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.2;
  }
  25% {
    transform: translateY(-0.9375rem) rotate(90deg);
    opacity: 0.3;
  }
  50% {
    transform: translateY(0) rotate(180deg);
    opacity: 0.2;
  }
  75% {
    transform: translateY(0.9375rem) rotate(270deg);
    opacity: 0.3;
  }
}

/* =========================================================
    RESPONSIVE DESIGN - ABOUT SECTION SPECIFIC
    ========================================================= */

/* Large Desktop (≥1200px) */
@media (min-width: 75rem) {
  .about-section {
    padding: 6.25rem 0;
  }

  .section-title {
    font-size: 3rem;
  }

  .main-image {
    min-height: 31.25rem;
  }

  .about-content {
    padding-left: 2.5rem;
  }
}

/* Desktop (62rem - 74.9375rem) */
@media (min-width: 62rem) and (max-width: 74.9375rem) {
  .about-section {
    padding: 5rem 0;
  }

  .section-title {
    font-size: 2.25rem;
  }

  .main-image {
    min-height: 28.125rem;
  }

  .about-content {
    padding-left: 1.875rem;
  }
}

/* Tablet (48rem - 61.9375rem) */
@media (min-width: 48rem) and (max-width: 61.9375rem) {
  .about-section {
    padding: 3.75rem 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .main-image {
    min-height: 25rem;
    margin-bottom: 1.875rem;
  }

  .about-content {
    padding-left: 0;
  }

  .about-content .btn {
    align-self: center;
  }

  /* Center content on tablet */
  .about-content {
    text-align: center;
  }

  .d-flex.align-items-start {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .d-flex.align-items-start .feature-icon {
    margin-right: 0;
    margin-bottom: 0.75rem;
  }
}

/* Mobile (36rem - 47.9375rem) */
@media (min-width: 36rem) and (max-width: 47.9375rem) {
  .about-section {
    padding: 3.125rem 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-lead {
    font-size: 1rem;
  }

  .section-text {
    font-size: 0.95rem;
  }

  .main-image {
    min-height: 21.875rem;
    margin-bottom: 1.5625rem;
  }

  .about-content {
    text-align: center;
    padding-left: 0;
  }

  /* Stack features vertically on mobile */
  .row.mb-3 .col-sm-6 {
    width: 100%;
    max-width: 18.75rem;
    margin-left: auto;
    margin-right: auto;
  }

  .d-flex.align-items-start {
    justify-content: center;
    text-align: center;
  }

  .feature-icon {
    margin: 0 auto 0.75rem;
  }

  .about-content .btn {
    align-self: center;
    width: 100%;
    max-width: 18.75rem;
  }
}

/* Small Mobile (<36rem) */
@media (max-width: 35.9375rem) {
  .about-section {
    padding: 2.5rem 0;
  }

  .section-subtitle {
    font-size: 0.75rem;
    padding: 0.1875rem 0.625rem;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 0.9375rem;
  }

  .section-lead {
    font-size: 0.95rem;
    margin-bottom: 0.9375rem;
  }

  .section-text {
    font-size: 0.9rem;
  }

  .main-image {
    min-height: 17.5rem;
    margin-bottom: 1.25rem;
    border-radius: 0.75rem;
  }

  .about-content {
    text-align: center;
    padding-left: 0;
  }

  /* Feature items full width on mobile */
  .row.mb-3 {
    margin-left: 0;
    margin-right: 0;
  }

  .row.mb-3 .col-sm-6 {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .d-flex.align-items-start {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1.25rem;
  }

  .feature-icon {
    width: 2.8125rem;
    height: 2.8125rem;
    margin: 0 auto 0.625rem;
  }

  .feature-icon i {
    font-size: 1.125rem;
  }

  .feature-icon + div h6 {
    font-size: 0.95rem;
  }

  .feature-icon + div p {
    font-size: 0.85rem;
  }

  .about-content .btn {
    align-self: center;
    width: 100%;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
  }
}

/* Extra Small Mobile (<25rem) */
@media (max-width: 25rem) {
  .section-title {
    font-size: 1.3rem;
  }

  .main-image {
    min-height: 13.75rem;
  }

  .feature-icon {
    width: 2.5rem;
    height: 2.5rem;
  }

  .feature-icon i {
    font-size: 1rem;
  }
}

/* =========================================================
    RESPONSIVE DESIGN - GENERAL
    ========================================================= */

/* Large Desktop (≥75rem) */
@media (min-width: 75rem) {
  .container {
    max-width: 71.25rem;
  }
}

/* Desktop (62rem - 74.9375rem) */
@media (max-width: 74.9375rem) {
  .hero-title {
    font-size: 2.25rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .program-icon {
    width: 3.75rem;
    height: 3.75rem;
    font-size: 1.5rem;
  }
}

/* Tablet (48rem - 61.9375rem) */
@media (max-width: 61.9375rem) {
  .hero-section {
    min-height: 70vh;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.625rem;
  }

  .section-lead {
    font-size: 1rem;
  }

  .program-card,
  .feature-card {
    padding: 1.5rem;
  }

  .company-logo {
    height: 6.25rem;
    padding: 0.9375rem;
  }

  .floating-cta {
    padding: 1.875rem;
  }

  .floating-cta-content h3 {
    font-size: 1.5rem;
  }

  .hero-content-overlay {
    padding: 5rem 0 2.5rem;
  }

  .hero-slider-prev,
  .hero-slider-next {
    width: 2.8125rem;
    height: 2.8125rem;
    font-size: 1.125rem;
  }

  .hero-slider-prev {
    left: 1.25rem;
  }

  .hero-slider-next {
    right: 1.25rem;
  }

  .hero-slider-dots {
    bottom: 1.25rem;
  }

  .subnav {
    gap: 1.25rem;
  }

  .subnav a {
    font-size: 0.875rem;
  }
}

/* Mobile Landscape (36rem - 47.9375rem) */
@media (max-width: 47.9375rem) {
  .hero-section {
    min-height: 60vh;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 18.75rem;
    margin-bottom: 0.625rem;
  }

  .subnav {
    gap: 0.9375rem;
    justify-content: center;
  }

  .subnav a {
    font-size: 0.875rem;
    padding: 0.375rem 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-lead {
    font-size: 0.9375rem;
  }

  .placement-number {
    font-size: 2.25rem;
  }

  .campus-img {
    height: 12.5rem;
  }

  .carousel-item img {
    height: 15.625rem;
  }

  .list-group-item {
    padding: 1rem;
  }

  .floating-cta-section {
    padding: 2.5rem 0;
  }

  .floating-cta {
    text-align: center;
    padding: 1.5rem;
  }

  .floating-cta-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .floating-cta-btn {
    width: 100%;
    max-width: 18.75rem;
  }

  .floating-element {
    display: none;
  }

  .hero-content-overlay {
    padding: 3.75rem 0 1.875rem;
    text-align: center;
  }

  .hero-slider-prev,
  .hero-slider-next {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }

  .hero-slider-prev {
    left: 0.9375rem;
  }

  .hero-slider-next {
    right: 0.9375rem;
  }

  .hero-slider-dots {
    gap: 0.625rem;
  }

  .hero-slider-dot {
    width: 0.625rem;
    height: 0.625rem;
  }
}

/* Mobile Portrait (≤35.9375rem) */
@media (max-width: 35.9375rem) {
  html {
    font-size: 15px; /* Adjust base font for mobile */
  }

  body {
    font-size: 1rem;
  }

  .hero-section {
    min-height: 55vh;
  }

  .hero-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .hero-lead {
    font-size: 0.875rem;
    margin-bottom: 1rem;
  }

  .hero-sub {
    font-size: 0.8125rem;
    margin-bottom: 1.25rem;
  }

  .hero-badge .badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }

  .section-title {
    font-size: 1.375rem;
  }

  .section-subtitle {
    font-size: 0.75rem;
  }

  .section-lead {
    font-size: 0.875rem;
  }

  .section-text {
    font-size: 0.875rem;
  }

  h1,
  .h1 {
    font-size: 1.75rem;
  }
  h2,
  .h2 {
    font-size: 1.5rem;
  }
  h3,
  .h3 {
    font-size: 1.25rem;
  }
  h4,
  .h4 {
    font-size: 1.125rem;
  }
  h5,
  .h5 {
    font-size: 1rem;
  }
  h6,
  .h6 {
    font-size: 0.875rem;
  }

  .lead-text {
    font-size: 0.9375rem;
  }
  .normal-text {
    font-size: 0.875rem;
  }
  .small-text {
    font-size: 0.8125rem;
  }
  .extra-small {
    font-size: 0.75rem;
  }

  .program-card,
  .feature-card {
    padding: 1.25rem;
  }

  .program-title {
    font-size: 1.125rem;
  }

  .program-desc {
    font-size: 0.8125rem;
  }

  .feature-title {
    font-size: 1.125rem;
  }

  .feature-desc {
    font-size: 0.8125rem;
  }

  .placement-number {
    font-size: 2rem;
  }

  .placement-label {
    font-size: 0.875rem;
  }

  .company-logos {
    padding: 1.25rem;
  }

  .company-logo {
    height: 5rem;
    padding: 0.625rem;
  }

  .company-logo img {
    max-height: 1.875rem;
  }

  .company-name {
    font-size: 0.75rem;
  }

  .campus-title {
    font-size: 1.125rem;
  }

  .campus-desc {
    font-size: 0.8125rem;
  }

  .list-group-item h6 {
    font-size: 0.875rem;
  }

  .list-group-item p {
    font-size: 0.8125rem;
  }

  .carousel-item img {
    height: 12.5rem;
  }

  .carousel-caption p {
    font-size: 0.75rem;
  }

  .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }

  .btn-lg {
    font-size: 1rem;
    padding: 0.625rem 1.5rem;
  }

  .hero-content-overlay {
    padding: 3.125rem 0 1.25rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 0.625rem;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 18.75rem;
  }

  .hero-slider-prev,
  .hero-slider-next {
    width: 2.1875rem;
    height: 2.1875rem;
    font-size: 0.875rem;
    padding: 0;
  }

  .hero-slider-prev {
    left: 0.625rem;
  }

  .hero-slider-next {
    right: 0.625rem;
  }
}

/* Small Mobile (≤23.4375rem) */
@media (max-width: 23.4375rem) {
  html {
    font-size: 14px;
  }

  .hero-title {
    font-size: 1.375rem;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .placement-number {
    font-size: 1.75rem;
  }

  .program-card,
  .feature-card {
    padding: 1rem;
  }

  .company-logos {
    padding: 1rem;
  }

  .company-logo {
    height: 4.375rem;
    padding: 0.5rem;
  }

  .subnav {
    gap: 0.625rem;
  }

  .subnav a {
    font-size: 0.75rem;
  }
}

/* ===== Accessibility Improvements ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-img:hover,
  .program-card:hover,
  .feature-card:hover,
  .campus-card:hover,
  .company-logo:hover,
  .floating-cta-btn:hover {
    transform: none;
  }

  .floating-element,
  .feature-icon::before {
    display: none;
  }
}

/* ===== Print Styles ===== */
@media print {
  .hero-section,
  .floating-cta-section {
    background: white !important;
    color: black !important;
  }

  .hero-img,
  .company-logos,
  .campus-img,
  .carousel,
  .floating-element {
    display: none;
  }

  .btn {
    display: none;
  }

  .events-gallery-section .card {
    break-inside: avoid;
  }
}

/* =========================================================
   MOBILE 2x2 GRID FIX FOR ABOUT FEATURES (FORCE LAYOUT)
   ========================================================= */

@media (max-width: 47.9375rem) {
  /* Target the feature row inside About section */
  #about .row.mb-3 {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important; /* 2 columns */
    gap: 1rem !important;
    margin: 0 !important;
  }

  #about .row.mb-3 > .col-sm-6 {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Each feature box */
  #about .row.mb-3 .d-flex.align-items-start {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 0.75rem 0.5rem !important;
    border: 0.0625rem solid #e9ecef;
    border-radius: 0.625rem;
    background: #ffffff;
    height: 100%;
  }

  /* Icon box */
  #about .feature-icon {
    margin: 0 0 0.5rem 0 !important;
    width: 2.75rem !important;
    height: 2.75rem !important;
    border-radius: 0.625rem !important;
  }

  #about .feature-icon i {
    font-size: 1.125rem !important;
  }

  /* Title */
  #about .feature-icon + div h6 {
    font-size: 0.875rem !important;
    margin-bottom: 0.25rem !important;
    line-height: 1.2 !important;
  }

  /* Subtitle */
  #about .feature-icon + div p {
    font-size: 0.75rem !important;
    line-height: 1.3 !important;
    margin: 0 !important;
  }
}

/* =========================================================
   DESKTOP ALIGNMENT FIX - ABOUT FEATURES (CLEAN GRID)
   ========================================================= */

@media (min-width: 48rem) {
  /* Each feature item row */
  #about .d-flex.align-items-start {
    flex-direction: row !important;
    align-items: center !important; /* vertical centering */
    gap: 1rem !important; /* space between icon & text */
    padding: 0.5rem 0 !important;
  }

  /* Icon box size consistency */
  #about .feature-icon {
    width: 3.5rem !important;
    height: 3.5rem !important;
    min-width: 3.5rem !important;
    border-radius: 0.875rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #about .feature-icon i {
    font-size: 1.375rem !important;
  }

  /* Text container */
  #about .feature-icon + div {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* Title */
  #about .feature-icon + div h6 {
    font-size: 1rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.25rem !important;
    line-height: 1.2 !important;
  }

  /* Subtitle */
  #about .feature-icon + div p {
    font-size: 0.875rem !important;
    margin: 0 !important;
    line-height: 1.4 !important;
  }
}

/* =========================================================
   POPUP MODAL STYLES
   ========================================================= */

.promo-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 0.9375rem;
}

.promo-popup-content {
  position: relative;
  max-width: 90vw;
  max-height: 65vh; /* limit, not force */
  width: auto;
  height: auto;
  background: transparent; /* no white frame */
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 0.625rem 2.5rem rgba(0, 0, 0, 0.3);
  animation: popupFadeIn 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-popup-image {
  max-width: 100%;
  max-height: 65vh;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Close button */
.promo-close-btn {
  position: absolute;
  top: 0.375rem;
  right: 0.625rem;
  background: #ffffff;
  border: none;
  font-size: 1.625rem;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  line-height: 1;
  padding: 0 0.375rem;
  border-radius: 50%;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.promo-close-btn:hover {
  background: #ff3b3b;
  color: #ffffff;
}

/* Animation */
@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Mobile tuning */
@media (max-width: 36rem) {
  .promo-popup-content {
    max-width: 90%;
  }
}
