* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1a3a52;
  --secondary: #ffc107;
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --border-color: #e0e0e0;
  --text-primary: #1a3a52;
  --text-secondary: #666;
  --text-muted: #999;
  --bg-accent: rgba(255, 193, 7, 0.1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--white);
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

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

/* ============ Header ============ */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-badge {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

nav {
  display: flex;
  gap: 2rem;
  flex: 1;
  justify-content: center;
  list-style: none;
}

nav a {
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s;
  cursor: pointer;
}

nav a:hover {
  color: var(--secondary);
}

.header-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
}

.btn-primary:hover {
  background: #0f2438;
  border-color: #0f2438;
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--bg-accent);
}

.btn-accent {
  background: var(--secondary);
  color: var(--primary);
  border: 2px solid var(--secondary);
}

.btn-accent:hover {
  background: #ffb300;
  border-color: #ffb300;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

/* ============ Hero Section ============ */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0f2438 100%);
  color: var(--white);
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: rgba(255, 193, 7, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.8;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.hero-buttons .btn-secondary {
  color: var(--white);
  border-color: var(--white);
}

.hero-buttons .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--white);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.stat {
  border-top: 3px solid var(--secondary);
  padding-top: 1rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

.hero-form {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2rem;
  border-radius: 12px;
}

.hero-form h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-row .form-group {
  margin-bottom: 0;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  color: var(--white);
  font-family: inherit;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.form-group input::placeholder,
.form-group select,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--secondary);
}

.form-group select option {
  background: var(--primary);
  color: var(--white);
}

/* ============ Sections ============ */
section {
  padding: 60px 20px;
}

section h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

section > .container > p:first-of-type {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.about-col h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.about-col p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.feature-list {
  list-style: none;
}

.feature-list li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.feature-list li::before {
  content: '★';
  color: var(--secondary);
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.feature-list li span {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============ Highlights Grid ============ */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.highlight-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s;
}

.highlight-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--secondary);
  transform: translateY(-4px);
}

.highlight-icon {
  width: 50px;
  height: 50px;
  background: var(--bg-accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.highlight-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--primary);
}

.highlight-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============ Program Structure ============ */
.program-section {
  background: var(--primary);
  color: var(--white);
}

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

.structure-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.structure-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
}

.structure-card p {
  opacity: 0.9;
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
}

/* ============ Why IIBMS ============ */
.why-iibms {
  background: var(--light-gray);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s;
}

.stat-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--secondary);
}

.stat-card .big-number {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.stat-card h3 {
  color: var(--primary);
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

.stat-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============ FAQ ============ */
.faq-container {
  max-width: 900px;
  margin: 3rem auto 0;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 1.2rem;
  overflow: hidden;
}

.faq-question {
  background: var(--white);
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  font-family: inherit;
}

.faq-question:hover {
  background: var(--bg-accent);
}

.faq-question.active {
  background: var(--bg-accent);
  border-bottom: 2px solid var(--secondary);
}

.faq-arrow {
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.faq-question.active .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  background: var(--white);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s, padding 0.3s;
}

.faq-answer.active {
  padding: 1.5rem;
  max-height: 500px;
}

.faq-answer p {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ============ CTA Section ============ */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #0f2438 100%);
  color: var(--white);
  padding: 80px 20px;
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  opacity: 0.95;
  line-height: 1.8;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.cta-buttons .btn-secondary {
  color: var(--white);
  border-color: var(--white);
}

.cta-buttons .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--white);
}

.cta-form {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 2.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.cta-form h3 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.cta-form .form-group label {
  text-align: left;
}

/* ============ Footer ============ */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 3rem 20px 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  margin-bottom: 1rem;
  font-weight: 700;
}

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

.footer-col li {
  margin-bottom: 0.8rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--secondary);
}

.footer-col p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--secondary);
}

/* ============ Responsive ============ */
@media (max-width: 768px) {
  /* Header Mobile Styles */
  nav {
    display: none;
  }

  .header-buttons {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .logo {
    font-size: 1rem;
  }

  .logo-badge {
    width: 40px;
    height: 40px;
  }

  nav.mobile-menu {
    display: flex;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    z-index: 40;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  nav.mobile-menu a {
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
  }

  /* Hero Section Mobile */
  .hero {
    padding: 40px 20px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-text h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .hero-text p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    margin-bottom: 2rem;
  }

  .hero-buttons .btn {
    width: 100%;
    padding: 0.9rem 1.5rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .stat {
    border-top: 2px solid var(--secondary);
    padding-top: 0.8rem;
    text-align: center;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.85rem;
  }

  /* Make Form Visible on Mobile */
  .hero-form {
    display: block;
    padding: 1.8rem;
    margin: 0;
  }

  .hero-form h3 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-bottom: 0;
  }

  .form-group {
    margin-bottom: 0.9rem;
  }

  .form-group label {
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.85rem;
    font-size: 1rem;
  }

  /* About Section Mobile */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-col h3 {
    font-size: 1.5rem;
  }

  /* Highlights Grid Mobile */
  .highlights-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .highlight-card {
    padding: 1.5rem;
  }

  /* Program Structure Mobile */
  .structure-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .structure-card {
    padding: 1.5rem;
    min-height: 80px;
  }

  .structure-card p {
    font-size: 0.95rem;
  }

  /* Why IIBMS Mobile */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stat-card {
    padding: 1.5rem;
  }

  .stat-card .big-number {
    font-size: 2.5rem;
  }

  .stat-card h3 {
    font-size: 1.2rem;
  }

  /* FAQ Mobile */
  .faq-question {
    padding: 1.2rem;
    font-size: 0.95rem;
  }

  .faq-answer.active {
    padding: 1.2rem;
  }

  /* CTA Section Mobile */
  .cta-section {
    padding: 40px 20px;
  }

  .cta-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .cta-section p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .cta-buttons {
    flex-direction: column;
    margin-bottom: 2rem;
  }

  .cta-buttons .btn {
    width: 100%;
    padding: 0.9rem 1.5rem;
  }

  .cta-form {
    padding: 1.8rem;
  }

  .cta-form h3 {
    font-size: 1.3rem;
  }

  .cta-form .form-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-bottom: 0;
  }

  /* Footer Mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }

  /* General Mobile Adjustments */
  section {
    padding: 40px 20px;
  }

  section h2 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
  }

  section > .container > p:first-of-type {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .btn {
    padding: 0.85rem 1.3rem;
    font-size: 0.95rem;
  }

  .container {
    padding: 0 15px;
  }
}

/* Extra Small Devices (phones < 480px) */
@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.75rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .structure-cards {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  section h2 {
    font-size: 1.6rem;
  }

  .cta-section h2 {
    font-size: 1.6rem;
  }

  .hero-form {
    padding: 1.5rem;
  }

  .cta-form {
    padding: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ============ Animations ============ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.success-message {
  background: #4caf50;
  color: white;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: none;
}

.success-message.show {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

.highlight-text {
  background: var(--secondary);
  color: var(--primary);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}

/* ============ Modal ============ */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-overlay.show {
  display: flex;
}

.modal-content {
  background: var(--white);
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  background: var(--primary);
  color: var(--white);
  padding: 1.5rem 2rem;
  border-radius: 12px 12px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
}

.modal-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: transform 0.2s;
}

.modal-close:hover {
  transform: scale(1.2);
}

.modal-body {
  padding: 2rem;
}

.modal-body .form-group label {
  color: var(--text-primary);
}

.modal-body .form-group input,
.modal-body .form-group select,
.modal-body .form-group textarea {
  background: var(--light-gray);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.modal-body .form-group input:focus,
.modal-body .form-group select:focus,
.modal-body .form-group textarea:focus {
  background: var(--white);
}

@media (max-width: 768px) {
  .modal-content {
    max-width: 100%;
    max-height: 95vh;
  }

  .modal-header {
    padding: 1.2rem 1.5rem;
  }

  .modal-header h3 {
    font-size: 1.2rem;
  }

  .modal-body {
    padding: 1.5rem;
  }
}
