/* Mobile-First Responsive Design */

/* Base styles are mobile-first (below 768px) */

/* Mobile Navigation */
@media (max-width: 767px) {
  header .container {
    flex-wrap: wrap;
  }

  .logo {
    flex: 1;
  }

  .mobile-menu-toggle {
    display: block;
    order: 2;
  }

  nav {
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
  }

  nav.active {
    max-height: 500px;
    margin-top: var(--spacing-md);
  }

  .nav-menu {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu a {
    display: block;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
  }

  .language-switcher {
    width: 100%;
    justify-content: center;
    padding: var(--spacing-md) 0;
    border-top: 1px solid var(--border-color);
  }

  /* Footer adjustments */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  /* Typography adjustments */
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  /* Touch-friendly sizing */
  .btn,
  .lang-btn,
  .nav-menu a,
  input,
  select,
  textarea {
    min-height: 44px;
    min-width: 44px;
  }

  .mobile-menu-toggle {
    min-height: 44px;
    min-width: 44px;
  }

  /* Spacing adjustments */
  main {
    padding: var(--spacing-lg) 0;
  }

  .container {
    padding: 0 var(--spacing-md);
  }
}

/* Tablet styles (768px to 1919px) */
@media (min-width: 768px) and (max-width: 1919px) {
  .container {
    padding: 0 var(--spacing-lg);
  }

  .nav-menu {
    gap: var(--spacing-md);
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Two-column layouts for content sections */
  .two-column {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
  }
}

/* Desktop styles (1920px and above) */
@media (min-width: 1920px) {
  :root {
    --font-size-base: 18px;
    --font-size-h1: 3rem;
    --font-size-h2: 2.5rem;
    --font-size-h3: 1.75rem;
  }

  .container {
    max-width: 1400px;
    padding: 0 var(--spacing-xl);
  }

  .nav-menu {
    gap: var(--spacing-xl);
  }

  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Multi-column layouts for content sections */
  .three-column {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
  }

  main {
    padding: var(--spacing-xxl) 0;
  }
}

/* Tablet and Desktop (768px and above) */
@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }

  nav {
    display: flex !important;
    max-height: none !important;
  }

  .nav-menu {
    flex-direction: row;
  }

  .language-switcher {
    border: none;
    padding: 0;
  }
}

/* Print styles */
@media print {
  header,
  footer,
  .language-switcher,
  .mobile-menu-toggle,
  .btn {
    display: none;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  a {
    text-decoration: underline;
    color: #000;
  }

  main {
    padding: 0;
  }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000080;
    --text-color: #000000;
    --background-color: #ffffff;
    --border-color: #000000;
  }

  .btn,
  .lang-btn {
    border: 2px solid currentColor;
  }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
  :root {
    --text-color: #e0e0e0;
    --background-color: #1a1a1a;
    --background-light: #2a2a2a;
    --border-color: #444444;
  }

  header {
    background-color: var(--background-light);
  }

  footer {
    background-color: #0a0a0a;
  }
}

/* Home Page Responsive Styles */

/* Mobile styles (below 768px) */
@media (max-width: 767px) {
  /* Hero Section */
  .hero {
    padding: var(--spacing-xl) 0;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .btn-hero {
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 1rem;
    width: 100%;
    max-width: 300px;
  }

  /* Features Grid */
  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .section-title {
    font-size: 1.8rem;
  }

  /* Navigation Cards */
  .nav-cards {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  /* News Grid */
  .news-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  /* CTA Section */
  .cta-section h2 {
    font-size: 1.8rem;
  }

  .cta-section p {
    font-size: 1rem;
  }

  .btn-cta {
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 1rem;
    width: 100%;
    max-width: 300px;
  }
}

/* Tablet styles (768px to 1919px) */
@media (min-width: 768px) and (max-width: 1919px) {
  /* Hero Section */
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.3rem;
  }

  /* Features Grid */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Navigation Cards */
  .nav-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  /* News Grid */
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop styles (1920px and above) */
@media (min-width: 1920px) {
  /* Hero Section */
  .hero {
    padding: 5rem 0;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .hero-subtitle {
    font-size: 1.8rem;
  }

  .hero-description {
    font-size: 1.3rem;
  }

  /* Features Grid */
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Navigation Cards */
  .nav-cards {
    grid-template-columns: repeat(4, 1fr);
  }

  /* News Grid */
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Section Titles */
  .section-title {
    font-size: 3rem;
  }

  /* CTA Section */
  .cta-section h2 {
    font-size: 3rem;
  }

  .cta-section p {
    font-size: 1.4rem;
  }
}

/* About Page Responsive Styles */

/* Mobile styles (below 768px) */
@media (max-width: 767px) {
  /* Page Header */
  .page-header h1 {
    font-size: 1.8rem;
  }

  /* Section Content - Stack vertically on mobile */
  .section-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .section-content.reverse {
    direction: ltr;
  }

  .content-text h2 {
    font-size: 1.5rem;
  }

  .content-text p {
    font-size: 1rem;
  }

  .image-placeholder {
    max-width: 100%;
    font-size: 3rem;
  }

  /* Values Grid */
  .values-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  /* Faculty Stats */
  .faculty-stats {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .stat-number {
    font-size: 2.5rem;
  }

  /* Faculty Profiles */
  .faculty-profiles {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  /* Facilities Grid */
  .facilities-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .facility-image .image-placeholder {
    font-size: 3rem;
  }

  /* Section Spacing */
  .about-section {
    padding: var(--spacing-xl) 0;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-lg);
  }

  .section-description {
    font-size: 1rem;
    margin-bottom: var(--spacing-lg);
  }
}

/* Tablet styles (768px to 1919px) */
@media (min-width: 768px) and (max-width: 1919px) {
  /* Page Header */
  .page-header h1 {
    font-size: 2.2rem;
  }

  /* Section Content */
  .section-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
  }

  .content-text h2 {
    font-size: 1.8rem;
  }

  .image-placeholder {
    font-size: 4rem;
  }

  /* Values Grid */
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Faculty Stats */
  .faculty-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Faculty Profiles */
  .faculty-profiles {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Facilities Grid */
  .facilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop styles (1920px and above) */
@media (min-width: 1920px) {
  /* Page Header */
  .page-header {
    padding: 4rem 0;
  }

  .page-header h1 {
    font-size: 3rem;
  }

  /* Section Content */
  .section-content {
    gap: 4rem;
  }

  .content-text h2 {
    font-size: 2.5rem;
  }

  .content-text p {
    font-size: 1.2rem;
  }

  .image-placeholder {
    max-width: 500px;
    font-size: 6rem;
  }

  /* Values Grid */
  .values-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Faculty Stats */
  .stat-number {
    font-size: 3.5rem;
  }

  .stat-label {
    font-size: 1.1rem;
  }

  /* Faculty Profiles */
  .faculty-profiles {
    grid-template-columns: repeat(3, 1fr);
  }

  .photo-placeholder {
    font-size: 7rem;
  }

  /* Facilities Grid */
  .facilities-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .facility-image .image-placeholder {
    font-size: 5rem;
  }

  /* Section Spacing */
  .about-section {
    padding: 4rem 0;
  }

  .section-title {
    font-size: 3rem;
    margin-bottom: 3rem;
  }

  .section-description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
  }
}

/* Programs Page Responsive Styles */

@media (max-width: 767px) {
  .programs-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .program-card {
    padding: var(--spacing-lg);
  }

  .program-icon {
    font-size: 2.5rem;
  }

  .program-card h3 {
    font-size: 1.2rem;
  }
}

@media (min-width: 768px) and (max-width: 1919px) {
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1920px) {
  .programs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Admissions Page Responsive Styles */

@media (max-width: 767px) {
  .process-step {
    flex-direction: column;
    text-align: center;
  }

  .step-number {
    margin: 0 auto var(--spacing-md);
  }

  .requirements-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .deadlines-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .tuition-rates {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) and (max-width: 1919px) {
  .requirements-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .deadlines-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* News Page Responsive Styles */

@media (max-width: 767px) {
  .news-item {
    padding: var(--spacing-lg);
  }

  .news-item-title {
    font-size: 1.3rem;
  }

  .events-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .event-day {
    font-size: 2rem;
  }
}

@media (min-width: 768px) and (max-width: 1919px) {
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1920px) {
  .events-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Contact Page Responsive Styles */

@media (max-width: 767px) {
  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .contact-form,
  .application-form {
    padding: var(--spacing-lg);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  fieldset {
    padding: var(--spacing-lg);
  }

  .map-placeholder {
    min-height: 300px;
    padding: var(--spacing-lg);
  }

  .map-icon {
    font-size: 3rem;
  }
}

@media (min-width: 768px) and (max-width: 1919px) {
  .contact-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1920px) {
  .contact-info-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .form-container {
    max-width: 900px;
  }
}

