/* ==========================================
   EDUHUB OVERSEAS CONSULTANCY
   Responsive Styles
   ========================================== */

/* ==========================================
   LARGE DESKTOP (1400px+)
   ========================================== */
@media (min-width: 1400px) {
    :root {
        --container: 1400px;
    }
    
    .container {
        max-width: var(--container);
    }
}

/* ==========================================
   DESKTOP (1200px - 1399px)
   ========================================== */
@media (max-width: 1399px) {
    :root {
        --container: 1200px;
    }
}

/* ==========================================
   LAPTOP (992px - 1199px)
   ========================================== */
@media (max-width: 1199px) {
    :root {
        --container: 960px;
        --section-spacing: 4rem;
    }
    
    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: span 3;
        padding-right: 0;
    }
    
    .split-section {
        gap: 3rem;
    }
}

/* ==========================================
   TABLET (768px - 991px)
   ========================================== */
@media (max-width: 991px) {
    :root {
        --container: 720px;
        --section-spacing: 3.5rem;
    }
    
    /* Header */
    .nav {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .mobile-nav {
        display: block;
    }
    
    /* Hero */
    .hero {
        min-height: 500px;
        margin-top: 70px;
    }

    .hero-slider {
        margin-top: 70px;
    }

    .slider-container {
        height: 625px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.125rem;
    }

    .slider-btn {
        width: 44px;
        height: 44px;
    }

    .slider-btn svg {
        width: 20px;
        height: 20px;
    }

    .slider-prev {
        left: 10px;
    }

    .slider-next {
        right: 10px;
    }

    .map-container iframe {
        height: 350px;
    }

    /* Contact Page */
    .grid-2.contact-section {
        grid-template-columns: 1fr;
    }
    
    /* Grid */
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Split Section */
    .split-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .split-section-image,
    .split-section-content {
        order: unset;
    }
    
    .split-section.reverse .split-section-image,
    .split-section.reverse .split-section-content {
        order: unset;
    }
    
    /* Timeline */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 60px;
        padding-right: 0;
        text-align: left;
    }
    
    .timeline-item:nth-child(odd) {
        padding-right: 0;
        text-align: left;
    }
    
    .timeline-marker {
        left: 20px;
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: span 2;
    }
    
    /* Floating Contact */
    .floating-contact {
        bottom: 1rem;
        right: 1rem;
    }
    
    .floating-contact-btn {
        width: 48px;
        height: 48px;
    }
    
    .floating-contact-btn svg {
        width: 24px;
        height: 24px;
    }
}

/* ==========================================
   MOBILE (480px - 767px)
   ========================================== */
@media (max-width: 767px) {
    :root {
        --container: 100%;
        --section-spacing: 3rem;
    }
    
    html {
        font-size: 15px;
    }
    
    /* Container */
    .container,
    .container-sm,
    .container-lg {
        padding: 0 1rem;
    }
    
    /* Header */
    .header-inner {
        padding: 0.75rem 1rem;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .logo svg {
        width: 32px;
        height: 32px;
    }
    
    /* Hero */
    .hero {
        min-height: 450px;
        margin-top: 65px;
    }

    .hero-slider {
        margin-top: 65px;
    }

    .slider-container {
        height: 562px;
    }
    
    .hero-content {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
    }

    .slider-btn svg {
        width: 18px;
        height: 18px;
    }

    .slider-prev {
        left: 8px;
    }

    .slider-next {
        right: 8px;
    }

    .slider-dots {
        bottom: 20px;
    }

    .slider-dot {
        width: 10px;
        height: 10px;
    }

    .map-container iframe {
        height: 350px;
    }
    
    /* Section */
    .section {
        padding: var(--section-spacing) 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle,
    .section-description {
        font-size: 1rem;
    }
    
    /* Grid */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    /* Cards */
    .card-body {
        padding: 1.25rem;
    }
    
    .card-title {
        font-size: 1.125rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 0.875rem 2rem;
    }
    
    /* Forms */
    .form {
        max-width: 100%;
    }
    
    /* Timeline */
    .timeline-item {
        padding: 1.5rem 1.5rem 1.5rem 50px;
    }
    
    .timeline-marker {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* CTA Section */
    .cta-section {
        padding: 3rem 1.5rem;
    }
    
    /* Footer */
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
    
    /* Floating Contact */
    .floating-contact {
        bottom: 1rem;
        right: 1rem;
        flex-direction: column-reverse;
    }
    
    .floating-contact-btn {
        width: 50px;
        height: 50px;
    }
    
    .floating-contact-btn svg {
        width: 24px;
        height: 24px;
    }
    
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
}

/* ==========================================
   SMALL MOBILE (below 480px)
   ========================================== */
@media (max-width: 479px) {
    :root {
        --section-spacing: 2.5rem;
    }
    
    html {
        font-size: 14px;
    }
    
    /* Hero */
    .hero {
        min-height: 400px;
    }

    .hero-slider {
        margin-top: 60px;
    }

    .slider-container {
        height: 500px;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }

    .slider-btn {
        width: 36px;
        height: 36px;
    }

    .slider-btn svg {
        width: 16px;
        height: 16px;
    }

    .slider-dots {
        bottom: 15px;
    }

    .slider-dot {
        width: 8px;
        height: 8px;
    }

    .map-container iframe {
        height: 300px;
    }
    
    /* Section */
    .section-header {
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    /* Cards */
    .card-body {
        padding: 1rem;
    }
    
    /* Service Card */
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 56px;
        height: 56px;
    }
    
    .service-icon svg {
        width: 28px;
        height: 28px;
    }
    
    /* Country Card */
    .country-card-overlay {
        padding: 1.5rem 1rem;
    }
    
    .country-card-title {
        font-size: 1.25rem;
    }
    
    /* Forms */
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .form-control {
        padding: 0.75rem 0.875rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    /* Footer */
    .footer-brand h3 {
        font-size: 1.25rem;
    }
    
    .footer-title {
        font-size: 1rem;
    }
    
    .footer-contact-item {
        font-size: 0.875rem;
    }
    
    /* Social Links */
    .footer-social-link {
        width: 36px;
        height: 36px;
    }
    
    .footer-social-link svg {
        width: 18px;
        height: 18px;
    }
}

/* ==========================================
   LANDSCAPE MOBILE
   ========================================== */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        min-height: 350px;
    }

    .hero-slider {
        margin-top: 60px;
    }

    .slider-container {
        height: 437px;
    }
    
    .hero-content {
        padding: 2rem 0;
    }
    
    .section {
        padding: 2rem 0;
    }
}

/* ==========================================
   TABLET LANDSCAPE
   ========================================== */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .hero {
        min-height: 400px;
    }

    .hero-slider {
        margin-top: 70px;
    }

    .slider-container {
        height: 500px;
    }
}

/* ==========================================
   REDUCED MOTION
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================
   HIGH CONTRAST MODE
   ========================================== */
@media (prefers-contrast: high) {
    :root {
        --border: #000000;
        --text: #000000;
    }
    
    .btn-primary,
    .btn-accent {
        border: 2px solid currentColor;
    }
    
    .card {
        border: 2px solid var(--border);
    }
}

/* ==========================================
   DARK MODE (future enhancement)
   ========================================== */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here when needed */
}

/* ==========================================
   PRINT
   ========================================== */
@media print {
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .section {
        page-break-inside: avoid;
        padding: 1rem 0;
    }
    
    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
