@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

/* ==================== */
/* CSS VARIABLES START */
/* ==================== */
:root {
    --main-color: #d4af37;
    --text-color: black;
    /* Define a variable for the mobile navbar height to easily adjust fixes */
    --mobile-nav-height: 70px; 
     --brand: #0b1e33;     /* Dark Navy Blue */
    --accent: #cfa32a;    /* Gold Accent */
    --light-text: #e5e7eb;
    --muted-text: #9ca3af;
    --footer-bg: #000000; /* Even deeper dark */
}

/* ==================== */
/* RESET & BASE STYLES */
/* ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Ubuntu", sans-serif;

}

body {
    line-height: 1.6;
    color: var(--text-color);
    font-family: "Ubuntu", sans-serif;
}

/* ==================== */
/* NAVIGATION STYLES */
/* ==================== */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: black;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: white;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 5%;
    max-width: 1400px;
    margin: 0 auto;
    color: white;
    /* FIX: Give the navbar a specific min-height for consistent mobile display */
    min-height: var(--mobile-nav-height); 
}

.logo {
    padding: 5px;
}

.forLogo {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 360px; /* Original preserved for desktop */
}

.logo h1 {
    font-size: 24px;
    color: white;
    font-weight: 600;
}

.logo img {
    width: 50px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links li a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links li a:hover {
    /* Corrected to only use existing CSS properties for a cleaner effect */
    border: 2px solid rgba(212, 186, 35, 0.637);
    padding: 5px;
    border-radius: 3px;
    box-shadow: 0 0 10px;
    transition: all 0.2s ease-in-out;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--main-color);
    transition: width 0.3s ease;
}

.nav-links li a:hover::after {
    width: 100%;
}

/* ==================== */
/* HAMBURGER MENU */
/* ==================== */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--main-color);
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* Hamburger active state transitions (preserved) */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px); /* Adjusted translation for better centering */
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px); /* Adjusted translation for better centering */
}

.close-btn {
    display: none;
    font-size: 40px;
    color: var(--text-color);
    cursor: pointer;
    padding: 10px;
    text-align: right;
    line-height: 1;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #e74c3c;
}

/* ==================== */
/* FOOTER STYLES */
/* ==================== */



.ribat-footer {
    background: var(--footer-bg);
    color: var(--light-text);
    padding: 60px 20px 25px;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

/* Footer Column Titles */
.footer-title {
    color: var(--accent);
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Text */
.footer-text {
    font-size: 15px;
    color: var(--muted-text);
    margin-bottom: 8px;
}
.footer-text:hover{
    color: #cfa32a;
}
/* Quick Links */
.footer-links li {
    list-style: none;
    margin: 6px 0;
}

.footer-links a {
    text-decoration: none;
    color: var(--muted-text);
    font-size: 15px;
    transition: 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}
/* ================= */
/* Social Icons */
/* ================= */
.footer-social {
    display: flex;
    gap: 10px;
}

.social-icon {
    /* width: 56px;
    height: 56px; */
    background: var(--brand);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 18px;
    transition: 0.3s ease;
}
/* .social-icon:hover {
    background: var(--accent);
    color: black;
} */

.social-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    text-decoration: none;
    color: white;
    font-size: 28px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Social Media Brand Colors (preserved) */
.facebook { background-color: #1877F2; }
.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.youtube { background-color: #FF0000; }
.tiktok { background-color: #000000; }
.linkedin { background-color: #0A66C2; }
/* 
.links {
    width: 100vw;
} */

/* Divider Line */
.footer-line {
    border: none;
    border-top: 1px solid #1f2b3a;
    margin: 35px auto;
    width: 90%;
}

/* Footer Bottom Area */
.footer-bottom {
    text-align: center;
    color: var(--muted-text);
    font-size: 14px;
}

.footer-policy a {
    color: var(--accent);
    text-decoration: none;
    margin: 0 5px;
}

.footer-policy a:hover {
    text-decoration: underline;
}
/* Mobile Optimization */
@media (max-width: 600px) {
    .footer-title {
        font-size: 16px;
    }
    .social-icon {
        width: 32px;
        height: 32px;
    }
}
/* ================================================================================================================== */
/* WHATSAPP ICON (preserved) */
/* ==================== */
.ctc-analytics {
    background-color: #25D366;
    padding: 14px;
    border-radius: 50%;
    box-shadow: 0px 0px 11px rgba(0, 0, 0, .5);
    width: 66px;
    height: 66px;
    position: fixed;
    bottom: 50px;
    right: 10px;
    cursor: pointer;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================== */
/* RESPONSIVE DESIGN (Consolidated & Fixed) */
/* ==================== */

/* Tablet and Mobile Devices (768px and below) */
@media (max-width: 768px) {
    /* ----------------------------------------------------- */
    /* Mobile Navigation Fixes */
    /* ----------------------------------------------------- */

    /* Ensure the hamburger icon is shown */
    .hamburger {
        display: flex;
    }

    /* FIX: Mobile Menu Display and Scrollability */
    .nav-links {
        position: fixed;
        top: var(--mobile-nav-height); /* Position right below the navbar */
        right: 0;
        width: 100%;
        /* FIX: Calculate full viewport height minus navbar height */
        height: calc(100vh - var(--mobile-nav-height));
        /* FIX: Enable scrolling for content overflow */
        overflow-y: auto; 
        
        background: black;
        flex-direction: column;
        padding: 0; /* Adjusted to 0 here, list items have padding */
        gap: 0; 
        
        /* Used max-height/overflow: hidden for initial state for transition (preserved original logic) */
        max-height: 0; 
        overflow: hidden; 
        transition: max-height 0.3s ease, padding 0.3s ease;
        z-index: 999;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    /* FIX: Active State to show the menu and allow scroll */
    .nav-links.active {
        max-height: 100vh; /* Set to a value greater than max possible height to reveal content */
        padding: 20px 0;
        overflow-y: auto; /* Re-enable scroll when active */
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid #333; /* Darkened border for black background */
    }
    
    .nav-links li:last-child {
        border-bottom: none;
    }
    
    .nav-links li a::after {
        display: none; /* Hide desktop hover effect on mobile menu */
    }

    /* Navbar container adjustments for mobile */
    .nav-container {
        padding: 0px 5%; /* Use only one padding declaration */
    }

    .forLogo {
        width: auto; /* FIX: Prevents stretching/takes only needed space */
        gap: 10px;
        justify-content: flex-start; /* Aligns content to the left */
    }

    .logo h1 {
        font-size: 20px;
        white-space: nowrap;
    }

    .logo img {
        width: 40px;
    }

    /* ----------------------------------------------------- */
    /* Footer & Other Adjustments */
    /* ----------------------------------------------------- */
    footer img {
        max-width: 300px;
    }

    footer p {
        margin-top: 40px;
    }

    .mbLogo {
        gap: 30px;
        justify-content: center;
    }

    .contactInfo {
        width: 100%;
        max-width: 400px;
        text-align: center;
    }
}

/* Mobile Devices (480px and below) */
@media (max-width: 480px) {
    .logo h1 {
        font-size: 18px;
    }

    .forLogo {
        width: auto; /* Cleaned up to use auto */
    }

    .nav-container {
        padding: 0px 3%;
    }

    /* Footer adjustments for mobile */
    .mbLogo {
        flex-direction: column;
        gap: 20px;
    }

    .contactInfo {
        width: 100%;
        padding: 5px;
        font-size: 14px;
    }

    .contactInfo h3 {
        font-size: 20px;
    }

    .social-container {
        gap: 15px;
        padding: 15px;
    }

    .social-link {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    footer {
        padding: 1.5rem;
    }

    footer h2 {
        margin-top: 30px;
        font-size: 1.2rem;
    }

    /* WhatsApp icon adjustments */
    .ctc-analytics {
        width: 60px;
        height: 60px;
        bottom: 30px;
        right: 15px;
        padding: 12px;
    }
}

/* Small Mobile Devices (360px and below) */
@media (max-width: 360px) {
    .logo h1 {
        font-size: 16px;
    }

    .contactInfo {
        font-size: 13px;
    }

    .contactInfo h3 {
        font-size: 18px;
    }

    .social-link {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .nav-links li a {
        font-size: 14px;
    }
}

/* Large Desktop Screens (1200px and above) */
@media (min-width: 1200px) {
    .nav-container {
        padding: 0px 3%;
    }

    .mbLogo {
        justify-content: space-around;
    }
}

/* High DPI Screens (preserved) */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .logo img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Print Styles (preserved) */
@media print {
    .ctc-analytics,
    .social-container,
    .hamburger {
        display: none !important;
    }
}