/* ============================================
   RESPONSIVE.CSS - Complete Responsive Design
   ============================================ */

/* ============================================
   TABLET (1024px and below)
   ============================================ */

@media (max-width: 1024px) {
    /* Header */
    .header-center {
        max-width: 320px;
    }
    
    /* Hero */
    .hero-content h1 {
        font-size: 2.4rem;
    }
    
    /* Footer */
    .footer-top {
        grid-template-columns: 1.5fr 1fr 1.5fr;
        gap: 30px;
    }
    
    /* Courses */
    .courses-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
    
    /* Why Choose Us */
    .why-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    /* Course Details */
    .course-info-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Related Courses */
    .related-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

/* ============================================
   MOBILE (768px and below)
   ============================================ */

@media (max-width: 768px) {
    /* ===== HEADER ===== */
    .main-header {
        padding: 8px 0;
    }
    
    .header-row {
        min-height: 44px;
        gap: 8px;
    }
    
    .logo .logo-text {
        font-size: 0.9rem;
    }
    
    .logo img {
        width: 30px;
        height: 30px;
    }
    
    .header-btn {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }
    
    .back-btn {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }
    
    .header-center {
        max-width: 200px;
        min-width: 80px;
    }
    
    .search-wrapper {
        padding: 0 10px;
    }
    
    .search-wrapper input {
        font-size: 12px;
        min-height: 28px;
        padding: 4px 0;
    }
    
    .search-wrapper input::placeholder {
        font-size: 11px;
    }
    
    .search-wrapper .search-icon {
        font-size: 12px;
        margin-right: 6px;
    }
    
    /* ===== SIDEBAR ===== */
    .sidebar {
        width: 260px;
        left: -260px;
    }
    
    .sidebar-link {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    /* ===== HERO ===== */
    .hero-section {
        padding: 50px 16px 40px;
        min-height: auto;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .hero-description {
        font-size: 0.95rem;
    }
    
    .hero-badge {
        font-size: 0.7rem;
        padding: 4px 14px;
    }
    
    .hero-stats {
        gap: 20px;
        margin-top: 25px;
    }
    
    .hero-stat .stat-number {
        font-size: 1.6rem;
    }
    
    .hero-stat:not(:last-child)::after {
        right: -10px;
        height: 25px;
    }
    
    .hero-buttons {
        gap: 10px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 10px 22px;
        font-size: 14px;
    }
    
    /* ===== BANNER ===== */
    .banner-slide .banner-content {
        bottom: 12px;
        left: 12px;
        padding: 10px 14px;
    }
    
    .banner-slide .banner-content h2 {
        font-size: 1.2rem;
    }
    
    .banner-slide .banner-content p {
        font-size: 0.8rem;
    }
    
    .banner-dots .dot {
        width: 10px;
        height: 10px;
    }
    
    .banner-dots .dot.active {
        width: 28px;
    }
    
    /* ===== WHY CHOOSE US ===== */
    .why-choose-us {
        padding: 40px 0;
    }
    
    .why-choose-us h2 {
        font-size: 1.6rem;
    }
    
    .why-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 14px;
    }
    
    .why-card {
        padding: 18px 12px;
    }
    
    .why-card .why-icon {
        font-size: 32px;
    }
    
    .why-card h3 {
        font-size: 0.95rem;
    }
    
    .why-card p {
        font-size: 0.8rem;
    }
    
    /* ===== COURSES ===== */
    .courses-section {
        padding: 40px 0;
    }
    
    .courses-section h2 {
        font-size: 1.6rem;
    }
    
    .courses-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }
    
    .course-card {
        padding: 16px;
    }
    
    .course-card img {
        height: 130px;
    }
    
    .course-card h3 {
        font-size: 1.05rem;
    }
    
    .course-card .course-fees {
        font-size: 1rem;
    }
    
    /* ===== TESTIMONIALS ===== */
    .testimonials-section {
        padding: 40px 0;
    }
    
    .testimonials-section h2 {
        font-size: 1.6rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .testimonial-card {
        padding: 20px;
    }
    
    .testimonial-card::before {
        font-size: 48px;
    }
    
    /* ===== GALLERY ===== */
    .gallery-section {
        padding: 40px 0;
    }
    
    .gallery-section h2 {
        font-size: 1.6rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
    
    /* ===== MAP ===== */
    .map-section {
        padding: 40px 0;
    }
    
    .map-section h2 {
        font-size: 1.6rem;
    }
    
    .map-container iframe {
        height: 250px;
    }
    
    /* ===== COURSE DETAILS ===== */
    .course-details-page {
        padding: 12px 0 30px;
    }
    
    .course-header {
        padding: 20px;
    }
    
    .course-header h1 {
        font-size: 1.5rem;
    }
    
    .course-header .course-subtitle {
        font-size: 0.9rem;
    }
    
    .course-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .course-info-item {
        padding: 12px 14px;
    }
    
    .course-info-item .info-value {
        font-size: 0.9rem;
    }
    
    .course-description,
    .course-syllabus,
    .documents-section,
    .benefits-section {
        padding: 18px 20px;
    }
    
    .syllabus-list {
        grid-template-columns: 1fr;
    }
    
    .admission-section {
        padding: 20px;
    }
    
    .admission-section h2 {
        font-size: 1.2rem;
    }
    
    .related-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 14px;
    }
    
    /* ===== FOOTER ===== */
    .main-footer {
        padding: 30px 0 16px;
        margin-top: 30px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-bottom: 20px;
    }
    
    .footer-brand p {
        max-width: 100%;
    }
    
    .footer-social {
        justify-content: flex-start;
    }
    
    .footer-social a {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        padding-top: 16px;
        font-size: 0.75rem;
    }
    
    #developerCredit {
        justify-content: center;
    }
    
    /* ===== BREADCRUMB ===== */
    .breadcrumb {
        font-size: 12px;
        padding: 8px 0 14px;
    }
}

/* ============================================
   SMALL MOBILE (480px and below)
   ============================================ */

@media (max-width: 480px) {
    /* ===== HEADER ===== */
    .header-row {
        gap: 6px;
        min-height: 38px;
    }
    
    .logo .logo-text {
        font-size: 0.75rem;
    }
    
    .logo img {
        width: 26px;
        height: 26px;
    }
    
    .header-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .back-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .header-center {
        max-width: 120px;
        min-width: 60px;
    }
    
    .search-wrapper {
        padding: 0 8px;
        border-radius: 20px;
    }
    
    .search-wrapper input {
        font-size: 11px;
        min-height: 24px;
        padding: 3px 0;
    }
    
    .search-wrapper input::placeholder {
        font-size: 10px;
    }
    
    .search-wrapper .search-icon {
        font-size: 11px;
        margin-right: 4px;
    }
    
    /* ===== SIDEBAR ===== */
    .sidebar {
        width: 240px;
        left: -240px;
    }
    
    .sidebar-header {
        padding: 14px 16px;
    }
    
    .sidebar-header .sidebar-logo {
        font-size: 0.9rem;
    }
    
    .sidebar-link {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .sidebar-link .link-icon {
        font-size: 16px;
        width: 24px;
    }
    
    /* ===== HERO ===== */
    .hero-section {
        padding: 30px 12px 25px;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .hero-content .hero-description {
        font-size: 0.85rem;
    }
    
    .hero-badge {
        font-size: 0.6rem;
        padding: 3px 12px;
    }
    
    .hero-stats {
        gap: 10px;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stat:not(:last-child)::after {
        display: none;
    }
    
    .hero-stat .stat-number {
        font-size: 1.3rem;
    }
    
    .hero-stat .stat-label {
        font-size: 0.75rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    /* ===== WHY CHOOSE US ===== */
    .why-choose-us h2 {
        font-size: 1.3rem;
    }
    
    .why-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .why-card {
        padding: 12px 10px;
    }
    
    .why-card .why-icon {
        font-size: 28px;
    }
    
    .why-card h3 {
        font-size: 0.85rem;
    }
    
    .why-card p {
        font-size: 0.75rem;
    }
    
    /* ===== COURSES ===== */
    .courses-section h2 {
        font-size: 1.3rem;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .course-card {
        padding: 14px;
    }
    
    .course-card img {
        height: 170px;
    }
    
    .course-card h3 {
        font-size: 1rem;
    }
    
    /* ===== TESTIMONIALS ===== */
    .testimonials-section h2 {
        font-size: 1.3rem;
    }
    
    .testimonial-card {
        padding: 16px;
    }
    
    .testimonial-card::before {
        font-size: 36px;
        left: 12px;
    }
    
    .testimonial-card .rating {
        font-size: 18px;
    }
    
    .testimonial-card .comment {
        font-size: 0.85rem;
    }
    
    /* ===== GALLERY ===== */
    .gallery-section h2 {
        font-size: 1.3rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .gallery-item::after {
        font-size: 18px;
        padding: 8px;
    }
    
    /* ===== MAP ===== */
    .map-section h2 {
        font-size: 1.3rem;
    }
    
    .map-container iframe {
        height: 180px;
    }
    
    /* ===== COURSE DETAILS ===== */
    .course-header {
        padding: 14px;
    }
    
    .course-header h1 {
        font-size: 1.2rem;
    }
    
    .course-header .course-subtitle {
        font-size: 0.8rem;
    }
    
    .course-info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .course-info-item {
        padding: 10px 8px;
    }
    
    .course-info-item .info-icon {
        font-size: 20px;
    }
    
    .course-info-item .info-value {
        font-size: 0.8rem;
    }
    
    .course-description,
    .course-syllabus,
    .documents-section,
    .benefits-section {
        padding: 12px 14px;
    }
    
    .course-description h2,
    .course-syllabus h2,
    .documents-section h2,
    .benefits-section h2 {
        font-size: 1rem;
    }
    
    .course-description p {
        font-size: 0.85rem;
    }
    
    .syllabus-list li,
    .documents-grid li,
    .benefits-grid li {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    
    .admission-section {
        padding: 14px;
    }
    
    .admission-section h2 {
        font-size: 1rem;
    }
    
    .admission-section .admission-subtitle {
        font-size: 0.8rem;
    }
    
    .admission-form input,
    .admission-form textarea {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .admission-form .btn-primary {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    /* ===== FOOTER ===== */
    .main-footer {
        padding: 20px 0 12px;
        margin-top: 20px;
    }
    
    .footer-brand img {
        width: 40px;
        height: 40px;
    }
    
    .footer-brand h3 {
        font-size: 1rem;
    }
    
    .footer-brand p {
        font-size: 0.8rem;
    }
    
    .footer-links a,
    .footer-contact p {
        font-size: 0.75rem;
    }
    
    .footer-bottom {
        font-size: 0.65rem;
    }
    
    .footer-social a {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    #developerCredit {
        font-size: 0.7rem;
        flex-wrap: wrap;
    }
    
    /* ===== BREADCRUMB ===== */
    .breadcrumb {
        font-size: 10px;
        padding: 6px 0 10px;
    }
}

/* ============================================
   LANDSCAPE PHONE (768px and below, landscape)
   ============================================ */

@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        padding: 30px 16px 25px;
        min-height: auto;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .hero-content .hero-description {
        font-size: 0.85rem;
    }
    
    .hero-stats {
        gap: 15px;
        flex-direction: row;
    }
    
    .hero-stat .stat-number {
        font-size: 1.2rem;
    }
    
    .header-center {
        max-width: 200px;
    }
}

/* ============================================
   REDUCED MOTION - RESPONSIVE
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   PRINT
   ============================================ */

@media print {
    .main-header,
    .main-footer,
    .sidebar,
    .sidebar-overlay,
    .banner-section,
    .ad-container,
    .back-to-top,
    .search-wrapper,
    .dark-toggle,
    .menu-toggle {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt !important;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .card,
    .course-card,
    .why-card,
    .testimonial-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}