/* ============================================
   RESPONSIVE STYLES FOR ALL SCREEN SIZES
   ============================================ */

/* Large Desktop (1200px and above) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
}

/* Tablet Landscape (992px - 1199px) */
@media (max-width: 1199px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .course-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Portrait (768px - 991px) */
@media (max-width: 991px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-stats {
        gap: 40px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .course-hero h1 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Mobile Landscape & Small Tablet (576px - 767px) */
@media (max-width: 767px) {
    .header-content {
        position: relative;
        justify-content: flex-start;
    }
    
    .logo {
        flex: 1;
        max-width: calc(100% - 60px);
    }
    
    .mobile-menu-toggle {
        display: flex;
        position: relative;
        right: 0;
        top: 0;
        transform: none;
        z-index: 1001;
        margin-left: auto;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        width: 100%;
    }
    
    .main-nav.active {
        max-height: 500px;
    }
    .logo img {
        height: 50px;
        width: 50px;
    }
    
    .logo-text h1 {
        font-size: 1.2rem;
    }
    
    .logo-text p {
        font-size: 0.8rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: rgba(255,255,255,0.1);
        margin-top: 10px;
    }
    
    .dropdown-menu a {
        color: var(--white);
        padding: 8px 20px;
    }
    
    .dropdown-menu a:hover {
        background: rgba(255,255,255,0.1);
    }
    
    .hero-banner {
        padding: 60px 20px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-text {
        font-size: 0.95rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 30px;
        margin: 30px 0;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .btn-hero {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .course-grid {
        grid-template-columns: 1fr;
    }
    
    .highlights-grid {
        grid-template-columns: 1fr;
    }
    
    .course-hero {
        padding: 60px 20px;
    }
    
    .course-hero h1 {
        font-size: 1.8rem;
    }
    
    .back-home {
        top: 10px;
        left: 10px;
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .partner-section {
        padding: 30px 20px;
    }
    
    .partner-logo {
        font-size: 1.5rem;
    }
    
    .course-table {
        font-size: 0.85rem;
        display: block;
        overflow-x: auto;
    }
    
    .course-table th,
    .course-table td {
        padding: 10px 8px;
    }
    
    .faq-question {
        font-size: 1.1rem;
        padding: 15px 40px 15px 20px;
    }
    
    .faq-question::after {
        right: 15px;
        font-size: 1.5rem;
    }
    
    .faq-answer p {
        padding: 0 20px 15px 20px;
        font-size: 0.95rem;
    }
    
    /* Contact Page */
    .contact-form-grid {
        grid-template-columns: 1fr !important;
    }
    
    .highlight-box {
        padding: 20px;
    }
    
    .highlight-box h4 {
        font-size: 1.1rem;
    }
}

/* Mobile Portrait (320px - 575px) */
@media (max-width: 575px) {
    .container {
        padding: 0 15px;
    }
    
    header {
        padding: 15px 0;
    }
    
    .logo {
        gap: 10px;
    }
    
    .logo img {
        height: 45px;
        width: 45px;
    }
    
    .logo-text h1 {
        font-size: 1rem;
    }
    
    .logo-text p {
        font-size: 0.75rem;
    }
    
    nav ul {
        gap: 8px;
    }
    
    nav a {
        font-size: 0.9rem;
    }
    
    .hero-banner {
        padding: 50px 15px;
    }
    
    .hero-title {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .hero-text {
        font-size: 0.85rem;
        margin-bottom: 30px;
    }
    
    .hero-stats {
        gap: 25px;
        margin: 25px 0;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .btn-hero {
        padding: 10px 25px;
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
    
    .course-card {
        margin-bottom: 20px;
    }
    
    .course-content {
        padding: 20px;
    }
    
    .course-content h3 {
        font-size: 1.2rem;
    }
    
    .course-content p {
        font-size: 0.9rem;
    }
    
    .course-hero {
        padding: 50px 15px;
    }
    
    .course-hero h1 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .course-hero p {
        font-size: 0.95rem;
    }
    
    .back-home {
        top: 8px;
        left: 8px;
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .content-section {
        padding: 40px 15px;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .content-section p {
        font-size: 0.95rem;
    }
    
    .partner-section {
        padding: 25px 15px;
    }
    
    .partner-section h3 {
        font-size: 1.4rem;
    }
    
    .partner-logo {
        font-size: 1.3rem;
        margin: 15px 0;
    }
    
    .highlight-box {
        padding: 20px 15px;
    }
    
    .highlight-box h4 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .highlight-box p {
        font-size: 0.9rem;
    }
    
    .eligibility-section {
        padding: 25px 20px;
    }
    
    .eligibility-section h3 {
        font-size: 1.5rem;
    }
    
    .course-table {
        font-size: 0.8rem;
    }
    
    .course-table th,
    .course-table td {
        padding: 8px 6px;
    }
    
    .faq-section {
        padding: 40px 15px;
    }
    
    .faq-question {
        font-size: 1rem;
        padding: 12px 35px 12px 15px;
    }
    
    .faq-question::after {
        right: 12px;
        font-size: 1.3rem;
    }
    
    .faq-answer p {
        padding: 0 15px 12px 15px;
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    footer {
        padding: 30px 15px;
    }
    
    .footer-content {
        gap: 20px;
    }
    
    /* Contact Form */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    select,
    textarea {
        font-size: 0.9rem !important;
        padding: 10px !important;
    }
    
    /* Vision/Mission Cards */
    div[style*="grid-template-columns"] {
        gap: 20px !important;
    }
}

/* Extra Small Mobile (320px and below) */
@media (max-width: 374px) {
    .hero-title {
        font-size: 1.4rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-text {
        font-size: 0.8rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .course-hero h1 {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .back-home {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
}

/* Landscape Orientation for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-banner {
        padding: 40px 20px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .hero-text {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: 30px;
        margin: 20px 0;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .course-hero {
        padding: 40px 20px;
    }
}

/* Print Styles */
@media print {
    header,
    footer,
    .btn,
    .back-home,
    .dropdown-menu {
        display: none;
    }
    
    .course-hero,
    .hero-banner {
        background: none !important;
        color: #000 !important;
    }
    
    body {
        font-size: 12pt;
    }
}
