/* EDUCONECX site footer design (PF1, 2026-10-07): a COPY of the <style> in layouts/footer.blade.php, linked in the <head>
   so the footer is styled from the first paint. The inline <style> stays in the footer and keeps the final look as before. */
        /* Root Variables - Your Beautiful Colors */
        :root {
            --bright-amber: #FBC60C;
            --khaki-beige: #9F9A87;
            --pure-white: #FEFDFE;
            --prussian-blue: #0A1D44;
            --regal-navy: #18386E;
            --sky-blue: #5AD1E4;
            --pale-slate: #CBD1DA;
            --dark-slate: #2E5C61;
            --ivory: #F9F7E9;
            --light-gold: #EBD789;
            
            --primary: var(--regal-navy);
            --primary-dark: var(--prussian-blue);
            --primary-light: var(--dark-slate);
            --secondary: var(--sky-blue);
            --accent: var(--bright-amber);
            --accent-soft: var(--light-gold);
            --dark: var(--prussian-blue);
            --dark-light: var(--regal-navy);
            --gray: var(--khaki-beige);
            --gray-light: var(--pale-slate);
            --light: var(--ivory);
            --white: var(--pure-white);
            
            /* Gradients */
            --gradient-1: linear-gradient(135deg, #0A1D44 0%, #18386E 50%, #2E5C61 100%);
            --gradient-2: linear-gradient(45deg, #FBC60C 0%, #EBD789 50%, #F9F7E9 100%);
            --gradient-3: linear-gradient(135deg, #5AD1E4 0%, #CBD1DA 50%, #FEFDFE 100%);
            
            /* Shadows */
            --shadow-sm: 0 2px 8px rgba(10, 29, 68, 0.08);
            --shadow-md: 0 4px 12px rgba(10, 29, 68, 0.12);
            --shadow-lg: 0 8px 24px rgba(10, 29, 68, 0.15);
            --shadow-hover: 0 12px 28px rgba(251, 198, 12, 0.2);
            
            /* Border Radius */
            --radius-sm: 8px;
            --radius-md: 12px;
            --radius-lg: 16px;
            --radius-xl: 24px;
            --radius-full: 9999px;
            
            /* Transitions */
            --transition: all 0.3s ease;
            
            /* Container Padding */
            --container-padding: 15px;
        }

        /* Container */
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 var(--container-padding);
            box-sizing: border-box;
        }

        /* Footer Base */
        .footer {
            background: var(--prussian-blue);
            color: var(--pure-white);
            position: relative;
            overflow: hidden;
            width: 100%;
        }

        /* Newsletter Section - Liquid Style */
        .newsletter-section {
            background: var(--gradient-1);
            padding: 60px 0;
            position: relative;
            overflow: hidden;
            border-bottom: 1px solid rgba(251, 198, 12, 0.2);
        }

        .newsletter-section::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -10%;
            width: 400px;
            height: 400px;
            background: rgba(251, 198, 12, 0.1);
            border-radius: 50%;
            animation: float 10s ease-in-out infinite;
        }

        .newsletter-section::after {
            content: '';
            position: absolute;
            bottom: -50%;
            left: -10%;
            width: 300px;
            height: 300px;
            background: rgba(90, 209, 228, 0.1);
            border-radius: 50%;
            animation: float 8s ease-in-out infinite reverse;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-20px); }
        }

        .newsletter-content {
            position: relative;
            z-index: 1;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 40px;
            flex-wrap: wrap;
        }

        .newsletter-text {
            flex: 1;
            min-width: 300px;
        }

        .newsletter-text h3 {
            font-size: clamp(1.5rem, 4vw, 2.2rem);
            margin-bottom: 10px;
            color: var(--pure-white);
            font-weight: 700;
            line-height: 1.3;
        }

        .newsletter-text h3 span {
            color: var(--bright-amber);
        }

        .newsletter-text p {
            opacity: 0.9;
            font-size: clamp(0.95rem, 2.5vw, 1.1rem);
            color: var(--ivory);
            line-height: 1.6;
        }

        .newsletter-form {
            flex: 1;
            min-width: 280px;
        }

        .form-group {
            display: flex;
            gap: 10px;
            background: rgba(255, 255, 255, 0.1);
            padding: 5px;
            border-radius: var(--radius-full);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(251, 198, 12, 0.2);
        }

        .form-group input {
            flex: 1;
            border: none;
            padding: 15px 20px;
            border-radius: var(--radius-full);
            font-size: 1rem;
            outline: none;
            background: var(--pure-white);
            color: var(--prussian-blue);
            min-width: 0; /* Prevents flex overflow */
        }

        .form-group input::placeholder {
            color: var(--khaki-beige);
        }

        .form-group .btn {
            padding: 15px 30px;
            white-space: nowrap;
            background: var(--gradient-2);
            color: var(--prussian-blue);
            border: none;
            border-radius: var(--radius-full);
            font-weight: 600;
            transition: var(--transition);
            cursor: pointer;
            font-size: 0.95rem;
        }

        .form-group .btn:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-hover);
        }

        /* Main Footer */
        .footer-main {
            padding: 60px 0 40px;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1.5fr;
            gap: 40px;
        }

        /* Footer Columns */
        .footer-col {
            transition: var(--transition);
        }

        .footer-logo {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .footer-logo img {
            height: 45px;
            width: auto;
            border-radius: var(--radius-sm);
        }

        .footer-logo span {
            font-size: 1.5rem;
            font-weight: 700;
            background: var(--gradient-2);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .footer-desc {
            margin-bottom: 20px;
            line-height: 1.8;
            opacity: 0.9;
            color: var(--ivory);
            font-size: 0.95rem;
        }

        .footer-social {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .social-icon {
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
            color: var(--pure-white);
            text-decoration: none;
            border: 1px solid rgba(251, 198, 12, 0.2);
        }

        .social-icon:hover {
            background: var(--bright-amber);
            color: var(--prussian-blue);
            transform: translateY(-5px);
            border-color: transparent;
        }

        .footer-col h4 {
            font-size: 1.2rem;
            margin-bottom: 25px;
            position: relative;
            padding-bottom: 10px;
            color: var(--pure-white);
        }

        .footer-col h4::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 40px;
            height: 3px;
            background: var(--gradient-2);
            border-radius: var(--radius-full);
        }

        .footer-links {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .footer-links li {
            margin-bottom: 12px;
        }

        .footer-links a {
            color: var(--ivory);
            opacity: 0.9;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
            font-size: 0.95rem;
            word-break: break-word;
        }

        .footer-links a:hover {
            opacity: 1;
            transform: translateX(5px);
            color: var(--bright-amber);
        }

        .footer-links i {
            font-size: 0.75rem;
            color: var(--bright-amber);
            flex-shrink: 0;
        }

        .footer-contact {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .footer-contact li {
            display: flex;
            gap: 15px;
            margin-bottom: 20px;
        }

        .footer-contact li i {
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--bright-amber);
            font-size: 1.1rem;
            flex-shrink: 0;
        }

        .footer-contact li div {
            flex: 1;
            min-width: 0; /* Prevents text overflow */
        }

        .footer-contact li span {
            display: block;
            font-size: 0.8rem;
            opacity: 0.7;
            margin-bottom: 5px;
            color: var(--khaki-beige);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .footer-contact li a,
        .footer-contact li p {
            color: var(--pure-white);
            opacity: 0.9;
            transition: var(--transition);
            text-decoration: none;
            font-size: 0.95rem;
            line-height: 1.5;
            word-break: break-word;
        }

        .footer-contact li a:hover {
            color: var(--bright-amber);
            opacity: 1;
        }

        /* Footer Bottom */
        .footer-bottom {
            background: rgba(0, 0, 0, 0.2);
            padding: 20px 0;
            border-top: 1px solid rgba(251, 198, 12, 0.1);
        }

        .footer-bottom-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
        }

        .footer-bottom-content p {
            color: var(--ivory);
            font-size: 0.9rem;
            opacity: 0.9;
            margin: 0;
        }

        .footer-bottom-links {
            display: flex;
            gap: 25px;
            flex-wrap: wrap;
        }

        .footer-bottom-links a {
            color: var(--ivory);
            opacity: 0.8;
            transition: var(--transition);
            text-decoration: none;
            font-size: 0.9rem;
        }

        .footer-bottom-links a:hover {
            opacity: 1;
            color: var(--bright-amber);
        }

        /* Back to Top Button */
        .back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            background: var(--gradient-2);
            border: none;
            border-radius: 50%;
            color: var(--prussian-blue);
            font-size: 1.2rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: var(--transition);
            z-index: 999;
            box-shadow: var(--shadow-lg);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .back-to-top.show {
            opacity: 1;
            visibility: visible;
        }

        .back-to-top:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
            background: var(--gradient-1);
            color: var(--pure-white);
        }

        /* Enhanced Responsive Breakpoints */
        @media (max-width: 1200px) {
            .footer-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 30px;
            }
        }

        @media (max-width: 992px) {
            .newsletter-content {
                flex-direction: column;
                text-align: center;
                gap: 30px;
            }

            .newsletter-text {
                text-align: center;
            }

            .newsletter-form {
                width: 100%;
                max-width: 500px;
                margin: 0 auto;
            }

            .form-group {
                width: 100%;
            }
        }

        @media (max-width: 768px) {
            .container {
                --container-padding: 20px;
            }

            .newsletter-section {
                padding: 50px 0;
            }

            .newsletter-text h3 {
                font-size: 1.8rem;
            }

            .newsletter-text p {
                font-size: 1rem;
            }

            .form-group {
                flex-direction: column;
                background: transparent;
                padding: 0;
                gap: 15px;
            }

            .form-group input {
                width: 100%;
                padding: 14px 20px;
                border-radius: var(--radius-full);
            }

            .form-group .btn {
                width: 100%;
                padding: 14px 20px;
            }

            .footer-grid {
                grid-template-columns: 1fr;
                gap: 40px;
            }

            .footer-col {
                text-align: center;
                max-width: 500px;
                margin: 0 auto;
                width: 100%;
            }

            .footer-logo {
                justify-content: center;
            }

            .footer-col h4::after {
                left: 50%;
                transform: translateX(-50%);
            }

            .footer-links a {
                justify-content: center;
            }

            .footer-contact li {
                justify-content: center;
                text-align: left;
                max-width: 350px;
                margin-left: auto;
                margin-right: auto;
            }

            .footer-social {
                justify-content: center;
            }

            .footer-bottom-content {
                flex-direction: column;
                text-align: center;
                gap: 15px;
            }

            .footer-bottom-links {
                justify-content: center;
                gap: 20px;
            }

            .back-to-top {
                bottom: 20px;
                right: 20px;
                width: 45px;
                height: 45px;
                font-size: 1rem;
            }
        }

        @media (max-width: 576px) {
            .container {
                --container-padding: 15px;
            }

            .newsletter-section {
                padding: 40px 0;
            }

            .newsletter-text h3 {
                font-size: 1.6rem;
            }

            .newsletter-text p {
                font-size: 0.95rem;
            }

            .footer-main {
                padding: 40px 0 30px;
            }

            .footer-logo img {
                height: 40px;
            }

            .footer-logo span {
                font-size: 1.3rem;
            }

            .footer-desc {
                font-size: 0.9rem;
                line-height: 1.7;
            }

            .footer-col h4 {
                font-size: 1.1rem;
                margin-bottom: 20px;
            }

            .footer-links a {
                font-size: 0.9rem;
            }

            .footer-contact li {
                flex-direction: column;
                align-items: center;
                text-align: center;
                gap: 10px;
            }

            .footer-contact li i {
                margin-bottom: 5px;
            }

            .footer-contact li div {
                text-align: center;
            }

            .footer-bottom-links {
                gap: 15px;
                flex-wrap: wrap;
                justify-content: center;
            }

            .footer-bottom-links a {
                font-size: 0.85rem;
            }

            .footer-bottom-content p {
                font-size: 0.85rem;
            }
        }

        @media (max-width: 480px) {
            .newsletter-text h3 {
                font-size: 1.4rem;
            }

            .newsletter-text p {
                font-size: 0.9rem;
            }

            .footer-logo span {
                font-size: 1.2rem;
            }

            .footer-desc {
                font-size: 0.85rem;
            }

            .footer-social {
                gap: 8px;
            }

            .social-icon {
                width: 36px;
                height: 36px;
                font-size: 0.9rem;
            }

            .footer-bottom-links {
                flex-direction: column;
                gap: 10px;
            }

            .footer-bottom-links a {
                font-size: 0.8rem;
            }

            .back-to-top {
                bottom: 15px;
                right: 15px;
                width: 40px;
                height: 40px;
                font-size: 0.9rem;
            }
        }

        /* Touch-friendly improvements */
        @media (hover: none) and (pointer: coarse) {
            .footer-links a,
            .social-icon,
            .footer-bottom-links a,
            .back-to-top {
                padding: 12px 0;
                min-height: 44px;
                display: flex;
                align-items: center;
            }

            .form-group .btn {
                min-height: 50px;
            }

            .form-group input {
                min-height: 50px;
            }
        }

        /* Landscape mode fixes */
        @media (max-width: 900px) and (orientation: landscape) {
            .newsletter-section {
                padding: 40px 0;
            }

            .newsletter-content {
                flex-direction: row;
                flex-wrap: wrap;
            }

            .newsletter-text,
            .newsletter-form {
                flex: 1 1 300px;
            }
        }

        /* Ensure images don't overflow */
        img {
            max-width: 100%;
            height: auto;
        }

        /* Smooth scrolling */
        html {
            scroll-behavior: smooth;
        }

        /* Accessibility improvements */
        .back-to-top:focus-visible,
        .footer-links a:focus-visible,
        .social-icon:focus-visible {
            outline: 2px solid var(--bright-amber);
            outline-offset: 2px;
        }
