/* Enhanced Mobile Responsiveness */
@media (max-width: 992px) {
    div[style*="grid-template-columns: 2fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
    .curriculum-grid, .tech-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    .page-title { font-size: 36px !important; }
}

@media (max-width: 768px) {
    .a4-container { margin: 20px 10px !important; box-shadow: none !important; }
    .a4-sheet { padding: 20px 15px !important; }
    div[style*="grid-template-columns: 2fr 1fr"],
    .stats-grid, .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .course-section-title { font-size: 24px !important; }
    .gap-40px { gap: 25px !important; }
}

@media (max-width: 480px) {
    /* Phone optimization */
    div[style*="grid-template-columns: 2fr 1fr"] {
        display: block !important;
        gap: 0 !important;
    }
    .content-card { padding: 20px 15px !important; margin-bottom: 20px !important; }
    .price-card, .stats-grid, .contact-item { 
        order: 1 !important; 
        margin-top: 20px !important; 
    }
    .curriculum-grid, .tech-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .highlight-badge { font-size: 11px !important; padding: 8px 12px !important; }
    .cta-button { padding: 12px 20px !important; font-size: 14px !important; }
    .print-button { padding: 12px 25px !important; font-size: 14px !important; }
}

        @page {
            size: A4 portrait;
            margin: 12mm;
            background: white;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Nunito', sans-serif;
            line-height: 1.6;
            color: #333;
        }
        
        /* Navbar Custom Override */
        .navbar-nav .nav-link {
            color: #333 !important;
            font-weight: 600 !important;
            text-transform: uppercase !important;
            font-size: 14px !important;
            margin: 0 10px !important;
        }
        
        .navbar-nav .nav-link:hover,
        .navbar-nav .nav-link.active {
            color: #273FF5 !important;
        }
        
        .navbar-toggler {
            border: 2px solid #273FF5 !important;
        }
        
        /* Page Header */
        .page-header {
            background: linear-gradient(135deg, rgba(39,63,245,0.95), rgba(30,58,138,0.95)), 
                        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 300"><rect fill="%23f0f9ff" width="1000" height="300"/><path fill="%23e0f2fe" d="M0 0L500 100L1000 0V300H0z"/></svg>');
            color: white;
            padding: 80px 0;
            text-align: center;
        }
        
        .page-title {
		color:white;
            font-size: 42px;
            font-weight: 800;
            margin-bottom: 10px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }
        
        /* Print Button */
        .print-button-container {
            text-align: center;
            margin: 20px 0;
            display: block;
        }
        
        .print-button {
            background: linear-gradient(135deg, #273FF5, #1e3a8a);
            color: white;
            padding: 15px 40px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 700;
            font-size: 16px;
            border: none;
            cursor: pointer;
            transition: all 0.3s;
            display: inline-block;
            box-shadow: 0 10px 30px rgba(39,63,245,0.3);
        }
        
        .print-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 40px rgba(39,63,245,0.4);
            text-decoration: none;
            color: white;
        }
        
        /* A4 Brochure Container */
        .a4-container {
            max-width: 210mm;
            margin: 40px auto;
            background: white;
            box-shadow: 0 20px 60px rgba(0,0,0,0.15);
            overflow: hidden;
            position: relative;
        }
        
        .a4-sheet {
            padding: 25px;
            background: white;
        }
        
        /* PRINT BRANDING */
        .print-header {
            text-align: center;
            padding: 25px 20px;
            margin-bottom: 30px;
            border-bottom: 4px solid #273FF5;
            background: linear-gradient(135deg, rgba(39,63,245,0.08), rgba(30,58,138,0.08));
            border-radius: 16px;
        }
        
        .print-logo {
            height: 80px;
            margin-bottom: 15px;
            display: block;
        }
        /* Perfect Logo Centering & Responsiveness */
.navbar-brand img,
.print-logo {
    display: block !important;
    margin: 0 auto !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}

.navbar-brand {
    justify-content: center !important;
    flex: 1 !important;
    text-align: center !important;
}

.print-header {
    text-align: center !important;
    padding: 25px 20px !important;
}

@media (max-width: 768px) {
    .navbar-brand img { height: 40px !important; max-width: 180px !important; }
    .print-logo { height: 60px !important; max-width: 200px !important; }
}

@media (max-width: 480px) {
    .navbar-brand img { height: 35px !important; max-width: 160px !important; }
    .print-logo { height: 50px !important; max-width: 180px !important; }
}

        .institute-name {
            font-size: 32px;
            font-weight: 800;
            color: #273FF5;
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 2px;
        }
        
        .institute-tagline {
            font-size: 15px;
            color: #666;
            font-weight: 600;
        }
        
        /* Course Hero */
        .course-hero {
            text-align: center;
            margin-bottom: 40px;
            padding: 30px;
            background: linear-gradient(135deg, #f8fcff 0%, #f0f7ff 100%);
            border-radius: 20px;
            border: 2px solid rgba(39,63,245,0.2);
        }
        
        .course-image {
            width: 100%;
            height: 220px;
           
            border-radius: 20px;
            margin-bottom: 25px;
            box-shadow: 0 15px 40px rgba(0,0,0,0.2);
        }
        
        .highlight-badge {
            background: linear-gradient(135deg, #f69050, #f59e0b);
            color: white;
            padding: 10px 20px;
            border-radius: 25px;
            font-size: 13px;
            font-weight: 700;
            display: inline-block;
            margin: 8px 6px;
            text-transform: uppercase;
        }
        
        .course-section-title {
            font-size: 28px;
            font-weight: 800;
            color: #273FF5;
            margin-bottom: 25px;
            text-align: center;
            text-transform: uppercase;
            letter-spacing: 1px;
            position: relative;
        }
        
        .course-section-title::after {
            content: '';
            display: block;
            width: 80px;
            height: 4px;
            background: linear-gradient(135deg, #273FF5, #f69050);
            margin: 10px auto;
            border-radius: 2px;
        }
        
        /* NEW: Technologies Overview */
        .tech-overview {
            background: linear-gradient(135deg, #273FF5 0%, #1e3a8a 100%);
            border: 3px solid #273FF5;
            border-radius: 20px;
            padding: 35px;
            margin-bottom: 40px;
            text-align: center;
        }
        
        .tech-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 20px;
            margin-top: 25px;
        }
        
        .tech-item {
            background: white;
            padding: 20px 15px;
            border-radius: 15px;
            box-shadow: 0 8px 25px rgba(39,63,245,0.15);
            transition: all 0.3s;
            border: 2px solid rgba(39,63,245,0.1);
        }
        
        .tech-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(39,63,245,0.25);
        }
        
        .tech-icon {
            font-size: 32px;
            color: #273FF5;
            margin-bottom: 10px;
            display: block;
        }
        
        .tech-name {
            font-weight: 700;
            color: #273FF5;
            font-size: 14px;
        }
        
        /* Content Cards */
        .content-card {
            background: rgba(255,255,255,0.95);
            padding: 30px;
            border-radius: 20px;
            border: 2px solid rgba(39,63,245,0.1);
            box-shadow: 0 15px 40px rgba(39,63,245,0.1);
            backdrop-filter: blur(15px);
            margin-bottom: 30px;
        }
        
        .curriculum-card {
            background: linear-gradient(135deg, #f8fcff 0%, #f0f7ff 100%);
            border: 2px solid rgba(39,63,245,0.2);
        }
        
        .card-title {
            font-size: 22px;
            font-weight: 700;
            color: #273FF5;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .card-title i {
            color: #f69050;
            font-size: 24px;
        }
        
        /* Price Card - SCREEN VERSION */
        .price-card {
            background: linear-gradient(135deg, #273FF5 0%, #1e3a8a 100%);
            color: white;
            text-align: center;
        }
        
        .price-card .card-title {
            color: white;
            justify-content: center;
        }
        
        .price-card .card-title i {
            color: #f69050;
        }
        
        .price-text {
            font-size: 16px;
            opacity: 0.95;
            margin-bottom: 25px;
            color: white;
        }
        
        .price-text del {
            opacity: 0.8;
        }
        
        .price {
            font-size: 64px;
            font-weight: 800;
            margin-bottom: 20px;
            color: white;
        }
        
        .cta-button {
            display: inline-block;
            background: rgba(255,255,255,0.2);
            color: white;
            padding: 18px 40px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 700;
            font-size: 16px;
            border: 2px solid rgba(255,255,255,0.3);
            margin: 15px 5px 10px;
            transition: all 0.3s;
            width: 100%;
            box-sizing: border-box;
        }
        
        .cta-button:hover {
            background: rgba(255,255,255,0.3);
            transform: translateY(-3px);
            text-decoration: none;
            color: white;
        }
        
        /* Curriculum Grid */
        .curriculum-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
            margin-top: 30px;
        }
        
        .curriculum-module {
            background: rgba(255,255,255,0.8);
            padding: 25px;
            border-radius: 18px;
            border: 2px solid rgba(39,63,245,0.15);
            box-shadow: 0 10px 30px rgba(39,63,245,0.08);
            transition: all 0.3s;
        }
        
        .curriculum-module:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(39,63,245,0.15);
        }
        
        .module-header {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 3px solid #f69050;
        }
        
        .module-number {
            background: linear-gradient(135deg, #273FF5, #1e3a8a);
            color: white;
            width: 45px;
            height: 45px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            font-size: 18px;
        }
        
        .module-title {
            color: #273FF5;
            font-size: 20px;
            font-weight: 700;
        }
        
        .module-icon {
            color: #f69050;
            font-size: 26px;
        }
        
        .curriculum-list {
            list-style: none;
        }
        
        .curriculum-list li {
            padding: 12px 0;
            display: flex;
            align-items: flex-start;
            gap: 12px;
            font-size: 14px;
            border-bottom: 1px solid rgba(39,63,245,0.1);
            transition: all 0.3s;
        }
        
        .curriculum-list li:hover {
            padding-left: 8px;
            background: rgba(39,63,245,0.05);
            border-radius: 8px;
        }
        
        .curriculum-list li:last-child {
            border-bottom: none;
        }
        
        .curriculum-list li i {
            color: #f69050;
            width: 20px;
            font-size: 16px;
            margin-top: 2px;
        }
        
        /* Stats & Contact */
        .stats-grid, .footer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-top: 25px;
        }
        
        .stat-item, .contact-item {
            text-align: center;
            padding: 25px;
            background: rgba(39,63,245,0.05);
            border-radius: 15px;
            border: 1px solid rgba(39,63,245,0.1);
        }
        
        .stat-number {
            font-size: 36px;
            font-weight: 800;
            color: #273FF5;
            display: block;
            margin-bottom: 8px;
        }
        
        .contact-item i {
            color: #273FF5;
            font-size: 24px;
            margin-bottom: 12px;
            display: block;
        }
        
        /* Responsive */
        @media (max-width: 992px) {
            .curriculum-grid, .tech-grid {
                grid-template-columns: 1fr;
            }
            .page-title {
                font-size: 36px;
            }
        }
        
        @media (max-width: 768px) {
            .a4-container {
                margin: 20px 10px;
                box-shadow: none;
            }
            .a4-sheet {
                padding: 20px 15px;
            }
        }
        
        /* PERFECT A4 PRINT */
        @media print {
            * {
                -webkit-print-color-adjust: exact !important;
                color-adjust: exact !important;
                print-color-adjust: exact !important;
            }
            
            .print-button-container, .navbar, .page-header {
                display: none !important;
            }
            
            body {
                background: white !important;
                margin: 0 !important;
                padding: 0 !important;
                font-size: 11pt !important;
                line-height: 1.4 !important;
            }
            
            .a4-container {
                box-shadow: none !important;
                margin: 0 !important;
                max-width: none !important;
                width: 100% !important;
                border-radius: 0 !important;
            }
            
            .a4-sheet {
                padding: 12mm !important;
                break-after: avoid !important;
            }
            
            .content-card {
                break-inside: avoid !important;
                page-break-inside: avoid !important;
                margin-bottom: 15px !important;
                background: white !important;
                border: 2px solid #273FF5 !important;
                box-shadow: none !important;
                padding: 25px !important;
            }
            
            .curriculum-module, .print-header, .course-hero, .tech-overview {
                break-inside: avoid !important;
                page-break-inside: avoid !important;
                margin-bottom: 15px !important;
            }
            
            /* PRICE CARD PRINT */
            .price-card {
                background: linear-gradient(135deg, #273FF5 0%, #1e3a8a 100%) !important;
                border: 2px solid #273FF5 !important;
                padding: 30px !important;
                border-radius: 20px !important;
                text-align: center !important;
                break-inside: avoid !important;
                page-break-inside: avoid !important;
                margin-bottom: 15px !important;
            }
            
            .price-card .card-title {
                color: white !important;
                justify-content: center !important;
            }
            
            .price-card .card-title i {
                color: #f69050 !important;
            }
            
            .price-card .price {
                color: white !important;
                font-size: 56px !important;
                font-weight: 800 !important;
                margin-bottom: 20px !important;
            }
            
            .price-card .price-text {
                color: white !important;
                opacity: 1 !important;
                margin-bottom: 25px !important;
                font-size: 16px !important;
            }
            
            .price-card .price-text del {
                opacity: 0.9 !important;
                color: white !important;
            }
            
            .price-card .price-text strong {
                color: white !important;
            }
            
            .price-card .cta-button {
                background: rgba(255,255,255,0.25) !important;
                color: white !important;
                border: 2px solid rgba(255,255,255,0.4) !important;
                padding: 18px 40px !important;
                display: block !important;
                width: 100% !important;
                text-align: center !important;
                margin: 12px 0 !important;
                text-decoration: none !important;
                font-weight: 700 !important;
            }
            
            /* TECH OVERVIEW PRINT */
            .tech-overview {
                background: linear-gradient(135deg, #273FF5 0%, #1e3a8a 10%) !important;
                border: 3px solid #273FF5 !important;
                padding: 25px !important;
            }
            
            .tech-item {
                background: white !important;
                border: 2px solid #273FF5 !important;
                box-shadow: none !important;
            }
            
            .tech-icon {
                color: #273FF5 !important;
            }
            
            .tech-name {
                color: #273FF5 !important;
            }
            
            .curriculum-grid {
                grid-template-columns: repeat(auto-fit, minmax(48%, 1fr)) !important;
                gap: 12px !important;
            }
            
            .tech-grid {
                grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
                gap: 12px !important;
            }
            
            .print-header {
                display: block !important;
                background: white !important;
                border: 4px solid #273FF5 !important;
                padding: 20px !important;
            }
            
            .curriculum-card {
                background: #f8fcff !important;
                border: 2px solid #273FF5 !important;
            }
            
            .curriculum-module {
                background: white !important;
                border: 2px solid #273FF5 !important;
                padding: 20px !important;
            }
            
            .course-section-title, .card-title, .module-title {
                color: #273FF5 !important;
            }
            
            .a4-sheet::after {
                content: 'ITCloudExpert.com | An Online IT Training Academy' !important;
                display: block !important;
                text-align: center !important;
                font-size: 12px !important;
                color: #273FF5 !important;
                margin-top: 30px !important;
                padding-top: 20px !important;
                border-top: 3px solid #273FF5 !important;
            }
        }