/* Professional Corporate Red Theme - Mobile Styles */
/* Remove underlines from all links */
a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

@media (max-width: 768px) {
    .desktop-header,
    .desktop-footer {
        display: none !important;
    }
    
    /* Hero Slider Mobile */
    .hero-slider-wrapper {
        padding: 15px 10px 25px;
        background: #101828;
    }

    .hero-slider {
        max-width: 100%;
        margin: 0;
    }

    .slider-container {
        border-radius: 15px;
        touch-action: pan-y pinch-zoom;
        -webkit-overflow-scrolling: touch;
        user-select: none;
        -webkit-user-select: none;
    }
    
    /* Mobile Header */
    .mobile-header {
        display: block !important;
        background: #101828;
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
        position: sticky;
        top: 0;
        z-index: 1000;
        transition: all 0.3s ease;
    }
    
    .mobile-header.scrolled .mobile-header-top-bar,
    .mobile-header.scrolled .mobile-search-container,
    .mobile-header.scrolled .mobile-header-buttons {
        display: none !important;
    }
    
    .mobile-header-top-bar,
    .mobile-search-container,
    .mobile-header-buttons {
        transition: all 0.3s ease;
    }
    
    /* Mobile Top Utility Bar */
    .mobile-header-top-bar {
        background: #101828;
        color: white;
        padding: 8px 0;
        font-size: 11px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .mobile-header-top-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        gap: 10px;
    }
    
    .mobile-header-utility-links {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 15px;
        flex-wrap: nowrap;
        flex: 1;
    }
    
    .mobile-header-utility-links a {
        color: white;
        text-decoration: none;
        transition: color 0.2s;
        font-weight: 400;
        font-size: 13px;
        white-space: nowrap;
    }
    
    .mobile-header-utility-links a:hover {
        color: #fed800;
    }
    
    .mobile-header-utility-links a.privacy-link {
        font-size: 13px;
    }
    
    .mobile-language-selector {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        cursor: pointer;
        padding: 0;
        border-radius: 0;
        transition: color 0.2s;
        flex: 0 0 auto;
        white-space: nowrap;
        border: none;
        background: transparent;
        margin-left: auto;
    }
    
    .mobile-language-selector span {
        color: white;
        font-size: 13px;
        font-weight: 400;
    }
    
    .mobile-language-selector:hover span {
        color: #fed800;
    }
    
    .mobile-language-selector .flag-icon {
        font-size: 14px;
    }
    
    .mobile-language-selector i {
        font-size: 10px;
        margin-left: 4px;
        color: white;
    }
    
    .mobile-language-selector:hover i {
        color: #fed800;
    }
    
    .mobile-header-top-right {
        display: none;
    }
    
    .mobile-header-buttons {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        flex-wrap: nowrap;
        margin-top: 10px;
        width: 100%;
    }
    
    /* Mobile Search Container */
    .mobile-search-container {
        margin-top: 10px;
        padding: 0;
    }
    
    .mobile-search-form {
        width: 100%;
    }
    
    .mobile-search-wrapper {
        display: flex;
        align-items: stretch;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 25px;
        overflow: hidden;
        transition: all 0.3s ease;
        min-height: 42px;
    }
    
    .mobile-search-wrapper:focus-within {
        background: rgba(255, 255, 255, 0.15);
        border-color: #fed800;
        box-shadow: 0 0 0 2px rgba(254, 216, 0, 0.2);
    }
    
    .mobile-search-input {
        flex: 1;
        background: transparent;
        border: none;
        color: white;
        padding: 10px 16px;
        font-size: 13px;
        outline: none;
        display: flex;
        align-items: center;
    }
    
    .mobile-search-input::placeholder {
        color: rgba(255, 255, 255, 0.6);
    }
    
    .mobile-search-btn {
        background: #fed800;
        border: none;
        color: #101828;
        padding: 0 20px;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        height: 100%;
        min-height: 42px;
    }
    
    .mobile-search-btn:hover {
        background: #e0c000;
    }
    
    .mobile-search-btn i {
        font-size: 16px;
        font-weight: 700;
    }
    
    .mobile-btn-top-request {
        padding: 8px 14px;
        border-radius: 20px;
        text-decoration: none;
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        transition: all 0.3s ease;
        white-space: nowrap;
        flex: 1;
        min-width: 0;
        text-align: center;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
    }

    .mobile-btn-top-request i {
        font-size: 11px;
    }

    .mobile-btn-k12 {
        background: white;
        color: #101828;
        border: 1px solid rgba(16, 24, 40, 0.1);
    }

    .mobile-btn-k12:hover {
        background: #101828;
        color: white;
        border-color: #101828;
    }

    .mobile-btn-prereg {
        background: linear-gradient(135deg, #fed800, #f5c800);
        color: #101828;
        border: 1px solid #f5c800;
    }

    .mobile-btn-prereg:hover {
        box-shadow: 0 4px 8px rgba(254, 216, 0, 0.4);
        transform: translateY(-2px);
    }

    .mobile-btn-job {
        background: transparent;
        color: #101828;
        border: 1.5px solid rgba(16, 24, 40, 0.4);
    }

    .mobile-btn-job:hover {
        background: #101828;
        color: white;
        border-color: #101828;
        transform: translateY(-2px);
    }

    /* Mobile Main Navigation Bar */
    .mobile-header-main {
        padding: 12px 0;
        background: #101828;
    }
    
    .mobile-header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 50px;
    }
    
    .mobile-header-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0;
        background: transparent;
        border-bottom: none;
        gap: 50px;
    }
    
    .mobile-logo {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 8px 0;
    }
    
    .mobile-logo a {
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 12px;
        transition: transform 0.3s ease;
    }
    
    .mobile-logo a:hover {
        transform: scale(1.02);
    }
    
    .mobile-logo img {
        height: 55px;
        width: auto;
        display: block;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    }
    
    .mobile-logo .logo-text {
        font-size: 26px;
        font-weight: 700;
        color: white;
        letter-spacing: -0.5px;
        text-decoration: none;
        display: inline-block;
        text-transform: uppercase;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
    
    .mobile-menu-toggle {
        background: rgba(255, 255, 255, 0.1);
        border: 2px solid rgba(255, 255, 255, 0.2);
        cursor: pointer;
        display: flex;
        flex-direction: column;
        gap: 5px;
        padding: 12px 10px;
        border-radius: 8px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }
    
    .mobile-menu-toggle::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.15);
        transition: left 0.3s ease;
    }
    
    .mobile-menu-toggle:hover {
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.3);
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
    
    .mobile-menu-toggle:hover::before {
        left: 100%;
    }
    
    .mobile-menu-toggle span {
        width: 26px;
        height: 3px;
        background: white;
        border-radius: 2px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
        position: relative;
        z-index: 1;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(9px, 9px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }
    
    .mobile-nav {
        display: none;
        background: #101828;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        max-height: calc(100vh - 85px);
        overflow-y: auto;
    }
    
    .mobile-nav.active {
        display: block;
    }
    
    .mobile-nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .mobile-nav > ul > li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .mobile-nav > ul > li > a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 16px 15px;
        color: white;
        text-decoration: none;
        font-weight: 600;
        font-size: 16px;
        transition: all 0.3s;
        position: relative;
    }
    
    .mobile-nav > ul > li > a .menu-icon-wrapper {
        display: none;
    }
    
    .mobile-nav > ul > li > a .menu-text {
        flex: 1;
    }
    
    .mobile-nav > ul > li > a .icon-chevron-down {
        font-size: 12px;
        color: white;
        margin-left: auto;
    }
    
    .mobile-nav > ul > li > a::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: #fed800;
        transform: scaleY(0);
        transition: transform 0.3s;
    }
    
    .mobile-nav > ul > li > a:hover,
    .mobile-nav > ul > li > a.active {
        background: rgba(255, 255, 255, 0.1);
        color: white;
        padding-left: 25px;
    }
    
    .mobile-nav > ul > li > a:hover::before,
    .mobile-nav > ul > li > a.active::before {
        transform: scaleY(1);
    }
    
    .has-dropdown-mobile .dropdown-menu-mobile {
        display: none;
        background: #101828;
        padding: 8px 0;
        border-top: 2px solid rgba(255, 255, 255, 0.1);
        border-bottom: 2px solid rgba(255, 255, 255, 0.1);
        margin-top: 4px;
        border-left: 4px solid #fed800;
        margin-left: 20px;
        border-radius: 0 8px 8px 0;
    }
    
    .has-dropdown-mobile.active .dropdown-menu-mobile {
        display: block;
        animation: slideDown 0.3s ease-out;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .dropdown-menu-mobile li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin: 0;
    }
    
    .dropdown-menu-mobile li:last-child {
        border-bottom: none;
    }
    
    .dropdown-menu-mobile a {
        display: flex;
        align-items: center;
        padding: 14px 20px;
        font-size: 15px;
        color: white;
        font-weight: 600;
        position: relative;
        transition: all 0.3s;
        text-decoration: none;
        gap: 12px;
    }
    
    .dropdown-menu-mobile a i {
        display: none;
        flex-shrink: 0;
        margin-right: 6px;
    }
    
    .dropdown-menu-mobile a span {
        flex: 1;
    }
    
    .dropdown-menu-mobile a::before {
        content: '→';
        position: absolute;
        left: 0;
        opacity: 0;
        transform: translateX(-10px);
        transition: all 0.3s;
        color: #fed800;
        font-weight: 700;
        font-size: 16px;
        margin-left: 8px;
    }
    
    .dropdown-menu-mobile a:hover,
    .dropdown-menu-mobile a:active {
        color: white;
        background: rgba(255, 255, 255, 0.1);
        padding-left: 36px;
        transform: translateX(4px);
    }
    
    .dropdown-menu-mobile a:hover i,
    .dropdown-menu-mobile a:active i {
        display: none;
    }
    
    .dropdown-menu-mobile a:hover::before,
    .dropdown-menu-mobile a:active::before {
        opacity: 1;
        transform: translateX(0);
    }
    
    .btn-request-info-mobile {
        background: #fed800;
        color: #101828 !important;
        margin: 20px;
        border-radius: 6px;
        text-align: center;
        display: block;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        box-shadow: 0 4px 15px rgba(254, 216, 0, 0.25);
    }
    
    .mobile-social {
        display: flex;
        justify-content: center;
        gap: 20px;
        padding: 30px 20px;
        border-top: 2px solid #f0f0f0;
        margin-top: 15px;
        background: #fafafa;
    }
    
    .mobile-social .social-icon {
        width: 45px;
        height: 45px;
        background: #101828;
        color: white;
        border: 2px solid rgba(255, 255, 255, 0.2);
    }
    
    .mobile-social .social-icon:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 12px rgba(16, 24, 40, 0.3);
    }
    
    /* Mobile Footer */
    .mobile-footer {
        display: block;
        background: #1a1a1a;
        color: white;
        padding: 50px 20px 25px;
        margin-top: 0;
        border-top: none;
    }

    .mobile-footer-content {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .mobile-footer-section {
        margin-bottom: 35px;
        text-align: left;
    }
    
    .mobile-footer-section h4 {
        margin-bottom: 18px;
        font-size: 20px;
        font-weight: 700;
        border-bottom: 2px solid #fed800;
        padding-bottom: 10px;
        display: inline-block;
        color: white;
    }

    .mobile-footer .footer-logo {
        max-width: 180px;
        height: auto;
        margin-bottom: 18px;
    }
    
    .mobile-footer-section h5 {
        margin-bottom: 15px;
        font-size: 18px;
        font-weight: 600;
        color: white;
        border-bottom: 1px solid #fed800;
        padding-bottom: 8px;
        display: inline-block;
    }
    
    .mobile-footer-section p {
        color: rgba(255, 255, 255, 0.8);
        line-height: 1.8;
        margin-bottom: 20px;
        font-size: 14px;
    }
    
    .mobile-footer-social {
        display: flex;
        justify-content: flex-start;
        gap: 12px;
        margin-top: 20px;
    }
    
    .mobile-footer-social .social-link {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(254, 216, 0, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fed800;
        text-decoration: none;
        transition: all 0.3s;
        border: 2px solid rgba(254, 216, 0, 0.3);
    }

    .mobile-footer-social .social-link:hover {
        background: #fed800;
        transform: translateY(-3px);
        border-color: #fed800;
        color: #101828;
        box-shadow: 0 4px 12px rgba(254, 216, 0, 0.3);
    }
    
    .mobile-footer-links {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin: 20px 0;
    }
    
    .mobile-footer-links a {
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        padding: 12px 0;
        transition: all 0.3s;
        font-size: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        align-items: center;
    }
    
    .mobile-footer-links a i {
        margin-right: 10px;
        color: #fed800;
        font-size: 16px;
        width: 20px;
    }
    
    .mobile-footer-links a:hover {
        color: white;
        padding-left: 10px;
        border-bottom-color: rgba(254, 216, 0, 0.3);
    }
    
    .mobile-footer-contact {
        margin-top: 15px;
    }
    
    .mobile-footer-contact p {
        display: flex;
        align-items: flex-start;
        margin-bottom: 15px;
        color: rgba(255, 255, 255, 0.8);
        font-size: 14px;
        line-height: 1.6;
    }
    
    .mobile-footer-contact p i {
        color: #fed800;
        margin-right: 12px;
        margin-top: 4px;
        font-size: 16px;
        width: 20px;
        flex-shrink: 0;
    }
    
    .mobile-footer-contact p a {
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        transition: color 0.3s;
    }
    
    .mobile-footer-contact p a:hover {
        color: white;
    }
    
    .mobile-footer-bottom {
        margin-top: 35px;
        padding-top: 25px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.7);
        font-size: 13px;
        text-align: center;
    }
    
    /* Hero Section Mobile */
    .hero-section {
        padding: 70px 20px;
        background: #101828;
    }
    
    .hero-section h1 {
        font-size: 36px;
        line-height: 1.2;
    }
    
    .hero-section p {
        font-size: 18px;
    }
    
    /* Sections Mobile */
    .categories-section,
    .featured-courses-section {
        padding: 60px 20px;
    }
    
    h2 {
        font-size: 32px;
        margin-bottom: 40px;
    }
    
    h2::after {
        width: 60px;
        height: 3px;
    }
    
    .categories-grid,
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .category-card img,
    .course-card img {
        height: 200px;
    }
    
    /* Courses Page Mobile */
    .courses-page {
        padding: 40px 15px;
    }
    
    .courses-layout {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }
    
    .categories-sidebar {
        order: 2;
        margin-top: 20px;
        padding: 15px;
    }
    
    .categories-sidebar h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .categories-sidebar ul {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .categories-sidebar li {
        margin: 0;
    }
    
    .categories-sidebar a {
        display: inline-block;
        padding: 8px 16px;
        background: #f5f5f5;
        border-radius: 6px;
        font-size: 14px;
        transition: all 0.3s;
    }
    
    .categories-sidebar a:hover {
        background: #101828;
        color: white;
    }
    
    .courses-list {
        order: 1;
        width: 100%;
    }
    
    .category-card h3,
    .course-card h3 {
        padding: 24px;
        font-size: 22px;
    }
    
    .course-info {
        padding: 24px;
    }
    
    .course-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .price {
        font-size: 22px;
    }
    
    /* Container Mobile */
    .container {
        padding: 0 10px;
    }
    
    /* Hero Slider Container Mobile */
    .hero-slider-wrapper .container {
        padding: 0 10px;
        max-width: 100%;
    }
}

/* Mobile Dropdown Toggle */
@media (max-width: 768px) {
    .has-dropdown-mobile > a {
        cursor: pointer;
    }
    
    .has-dropdown-mobile > a .icon-chevron-down {
        transition: transform 0.3s;
    }
    
    .has-dropdown-mobile.active > a .icon-chevron-down {
        transform: rotate(180deg);
    }
    
    /* News Section Mobile */
    .news-section {
        padding: 50px 15px;
    }
    
    .news-section .section-header {
        margin-bottom: 40px;
    }
    
    .news-section .section-header h2 {
        font-size: 28px;
        margin-bottom: 10px;
    }
    
    .news-section .section-subtitle {
        font-size: 14px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .news-card {
        border-radius: 12px;
    }
    
    .news-image {
        height: 180px;
    }
    
    .news-date {
        top: 10px;
        right: 10px;
        padding: 10px 12px;
        min-width: 50px;
    }
    
    .news-date .day {
        font-size: 20px;
    }
    
    .news-date .month {
        font-size: 10px;
    }
    
    .news-content {
        padding: 20px;
    }
    
    .news-title {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .news-excerpt {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .news-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding-top: 12px;
    }
    
    .news-meta {
        font-size: 12px;
    }
    
    .news-read-more {
        font-size: 13px;
    }
    
    /* Categories Section Mobile */
    .categories-section {
        background: white;
        background-image: 
            linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
            linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
        background-size: 40px 40px;
        background-position: 0 0, 0 0;
        padding: 60px 15px;
    }
    
    .categories-grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }
    
    .category-card {
        background: transparent;
        border: none;
        box-shadow: none;
    }
    
    .category-image-wrapper {
        position: relative;
        overflow: hidden;
        height: 300px;
        min-height: 300px;
        border-radius: 0;
        box-shadow: none;
        border: none;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent !important;
    }
    
    .category-image-wrapper img {
        width: 100% !important;
        height: 100% !important;
        min-height: 300px !important;
        max-width: 100% !important;
        object-fit: cover !important;
        object-position: center top !important;
        display: block;
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        background: transparent !important;
        background-color: transparent !important;
        background-image: none !important;
        border: none;
        outline: none;
        mix-blend-mode: normal;
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
        image-rendering: high-quality;
        image-rendering: pixelated;
        -ms-interpolation-mode: nearest-neighbor;
        image-rendering: -moz-crisp-edges;
        image-rendering: crisp-edges;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        will-change: transform;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        filter: contrast(1.05) brightness(1.02);
    }
    
    .category-content {
        padding: 20px 0 0 0;
        background: transparent;
    }
    
    .category-header {
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .category-header h3 {
        font-size: 18px;
        text-align: center;
        margin: 0 auto;
        width: 100%;
    }
    
    .category-content p {
        font-size: 13px;
        text-align: center;
    }
    
    .category-meta {
        justify-content: center;
        font-size: 12px;
    }
    
    .category-overlay {
        padding: 15px;
    }
    
    .category-link {
        font-size: 12px;
        padding: 10px 18px;
        background: #fed800 !important;
        color: #101828 !important;
        border: none;
    }
    
    @media (max-width: 480px) {
        .categories-grid-4 {
            grid-template-columns: 1fr !important;
            gap: 25px;
        }
        
        .category-image-wrapper {
            height: 280px;
            min-height: 280px;
        }
        
        .category-image-wrapper img {
            width: 100% !important;
            height: 100% !important;
            min-height: 280px !important;
            max-width: 100% !important;
            object-fit: cover !important;
            object-position: center top !important;
            image-rendering: -webkit-optimize-contrast;
            image-rendering: crisp-edges;
            image-rendering: high-quality;
            -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
            transform: translateZ(0);
            -webkit-transform: translateZ(0);
        }
    }

    /* ===== Page Banner Mobile ===== */
    .page-banner {
        padding: 40px 20px 35px;
    }

    .page-banner h1 {
        font-size: 30px;
    }

    .page-banner p {
        font-size: 15px;
    }

    .banner-breadcrumb {
        font-size: 12px;
        gap: 6px;
        flex-wrap: wrap;
    }
}

/* === 480px ve altı: header butonlarını sıkıştır === */
@media (max-width: 480px) {
    .mobile-header-top-bar {
        padding: 6px 0;
    }

    .mobile-header-buttons {
        gap: 6px;
        margin-top: 8px;
    }

    .mobile-btn-top-request {
        padding: 7px 8px;
        font-size: 9.5px;
        gap: 4px;
        letter-spacing: 0.2px;
        border-radius: 18px;
    }

    .mobile-btn-top-request i {
        font-size: 10px;
    }

    /* Çok dar telefonlar (iPhone SE 1. nesil vs.) — gizleme yerine sadece icon küçült + padding daha sıkı */
}

@media (max-width: 360px) {
    .mobile-header-buttons {
        gap: 4px;
    }

    .mobile-btn-top-request {
        padding: 7px 6px;
        font-size: 9px;
        gap: 3px;
    }

    .mobile-btn-top-request i {
        font-size: 9px;
    }

    .mobile-header-utility-links {
        gap: 10px;
    }

    .mobile-header-utility-links a {
        font-size: 12px;
    }
}

/* === FAZ 2: Form touch targets + iOS zoom önleme + genel mobil iyileştirmeler === */
@media (max-width: 768px) {
    /* iOS Safari, font 16px'in altında olunca otomatik zoom yapar — engelle */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="password"],
    input[type="date"],
    input[type="search"],
    input[type="url"],
    select,
    textarea,
    .form-control {
        font-size: 16px !important;
    }

    /* Touch target — min 48x48 (Apple HIG / Material) */
    .form-control,
    input.form-control,
    select.form-control {
        min-height: 48px;
    }

    .btn-submit,
    button[type="submit"],
    .btn-primary,
    .btn-secondary {
        min-height: 48px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    /* TC kimlik / telefon gibi numerik alanlarda native keypad */
    input[inputmode="numeric"],
    input[name="tc_no"],
    input[name="parent_phone"],
    input[name*="phone"],
    input[name*="telefon"] {
        -webkit-text-size-adjust: 100%;
    }
}

/* === FAZ 2: 480px ve altı — i\u00e7 sayfa fine-tune === */
@media (max-width: 480px) {
    /* Container padding sıkışsın */
    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    /* Page banner / hero başlıkları — sub-agent: 30px sabit, küçük telefonda büyük */
    .page-banner h1 {
        font-size: 24px !important;
    }
    .page-banner p {
        font-size: 13px !important;
    }

    /* Bölüm başlıkları */
    h1 { font-size: 24px; line-height: 1.25; }
    h2 { font-size: 20px; line-height: 1.3; }
    h3 { font-size: 17px; line-height: 1.35; }

    /* Form section / kart padding */
    .form-section,
    .prereg-form-wrapper {
        padding: 18px 14px !important;
    }

    /* Kart grid'leri — gap küçült */
    .branches-grid,
    .courses-grid,
    .news-grid,
    .quick-actions-grid {
        gap: 10px !important;
    }

    /* Footer sütunları — zaten dikey, padding küçült */
    .footer-section {
        padding: 12px 0;
    }

    /* Buton font kurumsal kalsın ama 480 altı küçülsün */
    .btn-submit {
        font-size: 14px;
        letter-spacing: 0.3px;
    }
}

/* === FAZ 3: Global iframe + img safety + video embed responsive === */
@media (max-width: 768px) {
    /* Hiçbir görsel/iframe parent'ından taşmasın — yatay scroll önle */
    img, video, iframe, embed, object {
        max-width: 100%;
    }

    img {
        height: auto;
    }

    /* YouTube/Vimeo embed wrapper — 16:9 koru */
    .video-embed-container,
    .responsive-iframe-wrapper,
    .video-wrapper,
    .embed-responsive {
        position: relative;
        width: 100%;
        aspect-ratio: 16 / 9;
        overflow: hidden;
        border-radius: 8px;
    }

    .video-embed-container iframe,
    .responsive-iframe-wrapper iframe,
    .video-wrapper iframe,
    .embed-responsive iframe,
    .video-embed-container video,
    .video-wrapper video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }

    /* Body — yatay scroll'u kesin engelle (son güvenlik ağı) */
    body {
        overflow-x: hidden;
    }
}
