/* 
   Zanzibar Investment Summit 2026 - Custom Redesign 
   Strict Brand Colors & Design Guidelines
*/

/* 1. Brand Colors & Variables */
:root {
    --primary-blue: #0064FF;
    --secondary-green: #42B43A;
    --white: #FFFFFF;
    --light-bg-blue: rgba(0, 100, 255, 0.05);
    /* 5% opacity blue */
    --text-dark: #111111;
    --text-grey: #555555;
    --border-radius: 4px;
    /* Square/Subtle rounded corners as per image */
    --font-primary: 'Helvetica', 'Helvetica Neue', Arial, sans-serif;
}

/* 2. Typography - Strict Helvetica Only */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
div,
li,
button,
input,
textarea,
select {
    font-family: var(--font-primary) !important;
}

/* 3. Global Resets & Basics */
body {
    color: var(--text-dark);
    background-color: #f9f9f9;
    overflow-x: hidden;
}

a {
    color: var(--primary-blue);
    transition: all 0.3s ease-in-out;
}

a:hover {
    color: var(--secondary-green);
    text-decoration: none;
}

/* 4. Buttons */
.btn-primary-custom {
    background-color: var(--primary-blue) !important;
    color: var(--white) !important;
    border: none !important;
    border-radius: var(--border-radius) !important;
    padding: 12px 30px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 100, 255, 0.3);
}

.btn-primary-custom:hover {
    background-color: var(--white) !important;
    color: var(--primary-blue) !important;
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(0, 100, 255, 0.5);
}

.btn-secondary-custom {
    background-color: var(--secondary-green) !important;
    color: var(--white) !important;
    border: none !important;
    border-radius: var(--border-radius) !important;
    padding: 8px 15px !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
    display: inline-block;
}

.btn-secondary-custom:hover {
    background-color: #389B31 !important;
    /* Darker green */
    color: var(--white) !important;
}

/* 5. White Header Customization */
header.header {
    background-color: #ffffff !important;
    box-shadow: none;
    border-bottom: 2px solid var(--secondary-green) !important;
}

.sf-menu>li>a {
    color: var(--primary-blue) !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    padding: 30px 15px !important;
}

.sf-menu>li.active>a,
.sf-menu>li>a:hover {
    color: var(--secondary-green) !important;
    background-color: transparent !important;
}

/* 6. Section Styling */
.section-title {
    color: var(--primary-blue) !important;
    font-weight: 700 !important;
    text-transform: capitalize;
    font-size: 24px;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--white);
    /* White underline for blue bg */
    margin: 10px auto 0;
}

/* 7. Cards (Rounded & Soft Shadows) */
.custom-card {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;
    padding: 30px 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.custom-card:hover {
    border-color: var(--white);
    background-color: rgba(255, 255, 255, 0.1);
}

/* 8. Slider / Hero Improvements */
.ag-hero-section {
    position: relative;
    margin-bottom: 0 !important;
    /* Connect to countdown */
}

/* 9. Countdown Timer Styling */
.countdown-section {
    position: relative;
    z-index: 20;
    margin-top: -120px;
    /* Aggressive pull-up to eliminate gap on all screens */
    padding: 40px 0 !important;
    /* Add padding for blue background area */

    /* Blue background to match registration */
    display: flex;
    /* Force Flexbox */
    justify-content: center;
    /* Center horizontally */
    align-items: center;
    width: 100%;
    margin-bottom: 0px;
}

#countdown-timer-v2 {
    display: flex;
    justify-content: center;
    width: 100%;
    /* Ensure it doesn't get constrained weirdly */
    max-width: 100%;
}

/* New rule for the inner row generated by JS */
.countdown-row {
    background-color: var(--primary-blue);
    display: flex;
    justify-content: center;
    align-items: stretch;
    padding: 0;
    width: auto;
    /* Allow content to dictate width */
    min-width: 600px;
    /* Minimum width for desktop */
    max-width: 90%;
    /* Prevent overflow on slightly smaller screens */
    margin: 0 auto !important;
    /* Force centering horizontally just in case */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.countdown-block {
    flex: 1;
    text-align: center;
    padding: 15px 20px;
    color: var(--white);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

.countdown-block:last-child {
    border-right: none;
}

.countdown-amount {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    display: block;
    margin-bottom: 5px;
}

.countdown-period {
    font-size: 11px;
    text-transform: capitalize;
    opacity: 0.9;
    display: block;
}

/* 10. Registration Section Redesign */
.registration-section {
    background-color: var(--primary-blue) !important;
    padding: 60px 0 80px !important;
    color: var(--white) !important;
    margin-top: -80px;
    /* Aggressive overlap to eliminate white gap completely */
}

.registration-section .section-title {
    color: var(--white) !important;
    font-size: 20px;
    margin-bottom: 40px;
}

.registration-card h3 {
    color: var(--white) !important;
    font-size: 22px !important;
    font-weight: 700;
    margin-bottom: 20px;
}

/* 11. Organized By Section */
.organizers-row {
    display: flex;
    justify-content: center;
    align-items: center;
}

.organizer-item {
    border-right: 1px solid #eee;
}

.organizer-item:last-child {
    border-right: none;
}

/* Responsive Organizers */
@media (max-width: 991px) {
    .organizers-row {
        flex-direction: column !important;
    }

    .organizer-item {
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid #eee !important;
        padding-bottom: 20px !important;
        margin-bottom: 20px !important;
    }

    .organizer-item:last-child {
        border-bottom: none !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
}

/* 12. Summit Features (Blue Header + Cards) */
.summit-features-section {
    background-color: #EAF4FF;
    /* Light blue bg */
    padding: 0 !important;
}

.summit-header-strip {
    background-color: var(--primary-blue);
    color: var(--white);
    text-align: center;
    padding: 15px 0;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 16px;
    margin-bottom: 50px;
    width: 100%;
}

.summit-feature-card {
    background: var(--white);
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.summit-feature-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.summit-feature-card div {
    padding: 20px;
}

.summit-feature-card h3 {
    color: var(--primary-blue);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.summit-feature-card a {
    font-size: 12px;
    font-weight: 600;
}

/* 13. Statistics Bar */
.summit-stats-bar {
    background-color: var(--primary-blue);
    border-radius: 10px;
    padding: 30px 0;
    margin-top: 30px;
    margin-bottom: 50px;
    color: var(--white);
}

.summit-stats-bar h2 {
    font-size: 40px;
    font-weight: 700;
    margin: 0;
}

.summit-stats-bar p {
    font-size: 14px;
    opacity: 0.9;
    margin: 5px 0 0;
}

/* 14. Sponsors */
.sponsors-partners-section {
    padding: 40px 0;
    border-top: 1px solid #eee;
}

.partner-logo-item img {
    max-height: 50px !important;

    opacity: 0.7;
    transition: all 0.3s;
}

.partner-logo-item:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {

    /* Fixed Countdown Mobile View */
    .countdown-section {
        padding: 40px 0 30px !important;
        margin-top: 0;
        display: block;
        /* Revert to block on mobile if needed, or keep flex but adjust margin */
    }

    #countdown-timer-v2 {
        display: block;
        /* Allow normal flow on mobile */
    }

    .countdown-row {
        min-width: 0 !important;
        /* Allow shrinking */
        width: 100% !important;
        max-width: 100% !important;
        flex-direction: row;
        /* Keep row even on mobile if possible, or wrap */
        flex-wrap: wrap;
        /* Allow wrapping for very small screens */
    }

    .countdown-block {
        flex: 1 1 50%;
        /* Grow to fill, base 50% width */
        min-width: auto;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 15px 5px;
    }

    /* Remove right border for every 2nd item (since 50% width) */
    .countdown-block:nth-child(even) {
        border-right: none;
    }

    .countdown-block:last-child {
        border-bottom: none;
    }

    /* Extra small screens (small phones) */
    @media (max-width: 480px) {
        .countdown-amount {
            font-size: 24px;
        }

        .countdown-period {
            font-size: 10px;
        }
    }

    .organizer-item {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding: 20px;
    }
}

/* 11. Sponsors & Partners Section */
.sponsors-partners-section {
    padding: 80px 0;
    background-color: #F8F9FA;
}

.sponsors-title {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 16px;
    color: #333;
    font-weight: 700;
    margin-bottom: 15px;
}

.title-underline {
    width: 60px;
    height: 3px;
    background: var(--primary-blue);
    margin: 0 auto;
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
}

.partner-logo-item {
    background: #fff;
    border: 1px solid #E5E5E5;
    border-radius: var(--border-radius);
    padding: 30px 20px;
    margin: 15px;
    text-align: center;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.partner-logo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 100, 255, 0.15);
    border-color: var(--primary-blue);
}

.partner-logo-item img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    /* Removed grayscale filter for full HD clarity */
    opacity: 1;
    transition: all 0.3s ease;
}

.partner-logo-item:hover img {
    transform: scale(1.05);
}

/* Sponsors Carousel Styling */
.sponsors-carousel {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.sponsors-carousel .owl-carousel .owl-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsors-carousel .owl-nav {
    display: none;
}

.sponsors-carousel .owl-dots {
    display: none;
}

/* 12. Footer Section */
.footer-section {
    background: var(--primary-blue);
    color: var(--white);
    padding: 15px 0 10px;
    margin-top: 0;
}

.footer-content {
    margin-bottom: 5px;
}

.footer-logo {
    margin-bottom: 15px;
}

.footer-logo img {
    max-height: 60px;
    width: auto;
}

.footer-about {
    margin-bottom: 15px;
}

.footer-about h4 {
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
}

.footer-links h4 {
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

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

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact h4 {
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--white);
}

.footer-social {
    margin-top: 25px;
}

.footer-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    margin-right: 10px;
    transition: all 0.3s ease;
    font-size: 16px;
}

.footer-social a:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
    margin-top: 5px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    margin: 0;
}

.footer-bottom a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Responsive adjustments for footer */
@media (max-width: 768px) {
    .footer-section {
        padding: 40px 0 20px;
    }

    .footer-about,
    .footer-links,
    .footer-contact {
        margin-bottom: 30px;
        text-align: center;
    }

    .footer-social {
        text-align: center;
    }
}

/* 13. Mobile Menu Customization */
@media (max-width: 991px) {

    /* Reset Header Container for Mobile */
    header .container,
    .header .container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 15px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    /* Logo Adjustments */
    .logo {
        flex: 0 1 auto;
        margin-right: auto;
        max-width: 80%;
    }

    .logo img {
        max-height: 50px;
        width: auto;
    }

    /* Show Toggle - Relative Positioning */
    .mobile-toggle {
        display: block !important;
        position: relative !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        width: 30px;
        height: 25px;
        z-index: 1002;
        cursor: pointer;
        background: transparent;
        margin-left: 15px;
    }

    .mobile-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--primary-blue);
        margin-bottom: 5px;
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    .mobile-toggle span:last-child {
        margin-bottom: 0;
    }

    /* Active State (X shape) */
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -7px);
    }

    /* Hide default nav items initially */
    .navigation {
        display: none;
        position: fixed;
        top: 100px;
        /* Header height */
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        padding: 20px 0;
        border-top: 2px solid var(--secondary-green);
    }

    /* Show when open */
    .navigation.open {
        display: block !important;
        animation: slideDown 0.3s ease-out forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Stack menu items vertical */
    .navigation ul.sf-menu {
        display: block !important;
        float: none !important;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .navigation ul.sf-menu li {
        display: block;
        float: none;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    .navigation ul.sf-menu li:last-child {
        border-bottom: none;
    }

    .navigation ul.sf-menu li a {
        display: block;
        padding: 15px !important;
        font-size: 14px !important;
    }

    /* Overlay background */
    .navigation.open::before {
        content: '';
        position: fixed;
        top: 100px;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
}