/* ============================================
   Responsive Design - All Devices
   ============================================ */

/* ============================================
   Laptops & Large Screens (1024px - 1200px)
   ============================================ */
@media screen and (max-width: 1200px) {
  .container {
    max-width: 960px;
    padding: 0 15px;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .facilities-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .events-grid {
    grid-template-columns: 1fr 1fr;
  }

  h1 { font-size: 2.5rem; }
  h2 { font-size: 2.2rem; }
  h3 { font-size: 1.4rem; }
}

/* ============================================
   Tablets & Small Laptops (768px - 1024px)
   ============================================ */
@media screen and (max-width: 1024px) {
  .container {
    max-width: 720px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .welcome-grid {
    grid-template-columns: 1fr;
  }

  .welcome-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-slider {
    height: 80vh;
    min-height: 500px;
  }

  .slide-content h1 {
    font-size: 2.8rem;
  }

  .slide-content p {
    font-size: 1.1rem;
  }

  .principal-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem;
  }

  .principal-img img {
    /* width: 180px;
    height: 180px;
    margin: 0 auto; */
    width: 250px;
    height: 320px;
    object-fit: cover;
    object-position: top;
    border-radius: 12px;

  }

  .academic-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1.5rem;
  }

  .academic-card ul {
    justify-content: center;
  }

  .event-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .event-date {
    flex-direction: row;
    gap: 1rem;
    padding: 0.8rem;
    justify-content: center;
  }

  .event-date .day {
    font-size: 1.8rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .facilities-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .history-image img {
    height: 300px;
  }

  .map-placeholder iframe {
    height: 350px;
  }
}

/* ============================================
   Mobile Devices (481px - 767px)
   ============================================ */
@media screen and (max-width: 767px) {
  .container {
    max-width: 100%;
    padding: 0 15px;
  }

  /* Navigation */
  .nav-list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 1.5rem;
    box-shadow: var(--shadow-hover);
    gap: 0;
  }

  .nav-list.open {
    display: flex;
  }

  .nav-list li {
    width: 100%;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--light-gray);
  }

  .nav-list li:last-child {
    border-bottom: none;
  }

  .hamburger {
    display: block;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    padding: 0.5rem 0 0 1.5rem;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .dropdown:hover .dropdown-menu {
    display: block;
  }

  .dropdown .dropdown-menu li {
    border-bottom: none;
    padding: 0.3rem 0;
  }

  /* Hero Slider */
  .hero-slider {
    height: 70vh;
    min-height: 400px;
  }

  .slide-content {
    padding: 1rem;
  }

  .slide-content h1 {
    font-size: 2rem;
  }

  .slide-content p {
    font-size: 1rem;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .slider-btn.prev { left: 10px; }
  .slider-btn.next { right: 10px; }

  .slide-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }

  .btn {
    padding: 0.7rem 1.5rem;
    min-width: 120px;
    font-size: 0.95rem;
    width: 100%;
    max-width: 250px;
  }

  /* Grid Systems */
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .facilities-grid-3 {
    grid-template-columns: 1fr;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .gallery-item img {
    height: 200px;
  }

  /* Typography */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.3rem; }
  h4 { font-size: 1.1rem; }

  .section-padding {
    padding: 50px 0;
  }

  .section-sub {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  /* Welcome */
  .welcome-stats {
    grid-template-columns: 1fr;
  }

  .welcome-features {
    grid-template-columns: 1fr;
  }

  /* Stats */
  .stats .stat span {
    font-size: 2.2rem;
  }

  .stats .stat i {
    font-size: 2.2rem;
  }

  /* Principal */
  .principal-card {
    padding: 1.5rem;
  }

  .principal-img img {
    /* width: 180px;
    height: 180px; */
    width: 260px;
    height: 320px;
    object-fit: cover;
    object-position: top;
    border-radius: 12px;
  }

  .principal-text p {
    font-size: 1rem;
  }

  /* Academics */
  .academic-card {
    padding: 1.2rem;
  }

  .academic-card ul {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }

  /* Admission */
  .process-steps {
    grid-template-columns: 1fr 1fr;
  }

  .admission-form {
    padding: 1.5rem;
  }

  .fee-table th,
  .fee-table td {
    padding: 0.6rem;
    font-size: 0.85rem;
  }

  .faq-question {
    padding: 1rem;
  }

  .faq-question h4 {
    font-size: 0.95rem;
  }

  /* Facilities */
  .facility-card {
    padding: 1.5rem;
  }

  .facility-icon {
    width: 60px;
    height: 60px;
  }

  .facility-icon i {
    font-size: 1.8rem;
  }

  /* Gallery */
  .filter-buttons {
    gap: 0.6rem;
  }

  .filter-btn {
    padding: 0.4rem 1.2rem;
    font-size: 0.85rem;
  }

  .lightbox-close {
    top: 15px;
    right: 20px;
    font-size: 2.5rem;
  }

  .lightbox-content {
    max-width: 95%;
    max-height: 70vh;
  }

  /* Events */
  .event-card {
    padding: 1.2rem;
  }

  .event-date {
    flex-direction: row;
    padding: 0.6rem;
  }

  /* Contact */
  .contact-card {
    padding: 1.5rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .map-placeholder iframe {
    height: 280px;
  }

  .social-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  /* Footer */
  .footer .grid-4 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer form {
    flex-direction: column;
  }

  .footer .btn {
    width: 100%;
    max-width: 100%;
  }

  /* Page Banner */
  .page-banner {
    /* padding: 60px 0 !important; */
    margin-top: 50px ;      /* Navbar ke hisab se adjust karo */
    padding: 110px 0px 40px 0px;
  }

  .page-banner h1 {
    font-size: 2.2rem;
  }

  .page-banner p {
    font-size: 1rem;
  }

  /* Back to Top */
  .back-to-top {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    bottom: 20px;
    right: 20px;
  }

  /* History Image */
  .history-image img {
    height: 250px;
  }

  /* Management Cards */
  .management .card img {
    width: 120px;
    height: 120px;
  }
}

/* ============================================
   Small Mobile Devices (320px - 480px)
   ============================================ */
@media screen and (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  .hero-slider {
    height: 60vh;
    min-height: 350px;
  }

  .slide-content h1 {
    font-size: 1.6rem;
  }

  .slide-content p {
    font-size: 0.9rem;
  }

  .slider-btn {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.2rem; }

  .section-padding {
    padding: 40px 0;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item img {
    height: 220px;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .event-date .day {
    font-size: 1.5rem;
  }

  .admission-form {
    padding: 1rem;
  }

  .fee-table th,
  .fee-table td {
    padding: 0.5rem;
    font-size: 0.75rem;
  }

  .fee-table th {
    font-size: 0.8rem;
  }

  .principal-img img {
    /* width: 120px;
    height: 120px; */
    width: 230px;
    height: 300px;
    object-fit: cover;
    object-position: top;
    border-radius: 12px;
  }

  .facility-card {
    padding: 1.2rem;
  }

  .facility-icon {
    width: 50px;
    height: 50px;
  }

  .facility-icon i {
    font-size: 1.5rem;
  }

  .filter-btn {
    padding: 0.3rem 1rem;
    font-size: 0.8rem;
  }

  .contact-form {
    padding: 1rem;
  }

  .social-icon {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }

  .map-placeholder iframe {
    height: 220px;
  }

  .page-banner h1 {
    font-size: 1.8rem;
  }

  .page-banner p {
    font-size: 0.9rem;
  }

  .back-to-top {
    width: 38px;
    height: 38px;
    font-size: 1rem;
    bottom: 15px;
    right: 15px;
  }

  .history-image img {
    height: 200px;
  }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
  .navbar,
  .hero-slider,
  .slider-btn,
  .back-to-top,
  .footer,
  .cta {
    display: none !important;
  }

  .section-padding {
    padding: 20px 0 !important;
  }

  body {
    font-size: 12px;
    color: #000;
  }

  .container {
    max-width: 100% !important;
    padding: 0 !important;
  }

  .card {
    box-shadow: none !important;
    border: 1px solid #ddd;
  }

  .btn {
    display: none !important;
  }
}

/* ============================================
   Accessibility - Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto !important;
  }

  .slide {
    transition: none !important;
  }

  .slide-content {
    animation: none !important;
  }

  .counter {
    animation: none !important;
  }
}