/* Common Header and Footer Styles */

/* Top Bar */
.promo-bar {
    background: linear-gradient(90deg, #2a4cb3, #263E8E);
    color: white;
    text-align: center;
    padding: 10px 40px;
    font-weight: 600;
    position: relative;
    z-index: 9999;
}

.promo-bar p {
    margin: 0;
}

.promo-btn {
    background: white;
    color: #263E8E;
    padding: 6px 14px;
    border-radius: 20px;
    margin-left: 10px;
    text-decoration: none;
    font-weight: 700;
}

.promo-btn:hover {
    background: #222;
    color: white;
}

.close-btn {
    position: absolute;
    right: 15px;
    top: 8px;
    cursor: pointer;
    font-size: 18px;
}

.top-bar {
    background: linear-gradient(90deg, #263E8E 0%, #2a4cb3 100%);
    color: white;
    padding: 12px 0;
    font-size: 0.9rem;
    position: relative;
    z-index: 1001;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-top .footer-logo img {
    max-height: 35px !important;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.top-bar-right {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.top-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    padding: 5px 10px;
    border-radius: 20px;
}

.top-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Main Header */
.main-header {
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 3px solid #0BAEFF;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(90deg, #263E8E 0%, #0BAEFF 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.logo img {
    height: 50px;
    width: auto;
}

.main-nav {
    display: flex;
    justify-content: center;
    flex-grow: 1;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    padding: 10px 0;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    font-size: 1.05rem;
}

.nav-link:hover,
.nav-link.active {
    color: #263E8E;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #263E8E 0%, #0BAEFF 100%);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.apply-btn {
    background: linear-gradient(90deg, #0BAEFF 0%, #00c6ff 100%);
    color: white;
    padding: 8px 18px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    box-shadow: 0 5px 15px rgba(0, 174, 239, 0.3);
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.apply-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 174, 239, 0.4);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #263E8E;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

.menu-toggle:hover {
    background: rgba(26, 58, 143, 0.1);
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #263E8E 0%, #1a3a8f 100%);
    color: white;
    padding: 60px 0 20px;
}

.footer-about {
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 260px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #0BAEFF;
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    text-decoration: none;
}

.footer-social a:hover {
    background: #0BAEFF;
    color: #263E8E;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #20b954;
}

.whatsapp-float i {
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .top-bar .container {
        flex-direction: column;
        gap: 10px;
    }

    .top-bar-right {
        justify-content: center;
        gap: 15px;
    }

    .logo-top .footer-logo img {
        max-height: 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-about {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-contact li {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }
}