/* assets/css/style.css - Bootstrap 5 Overrides for WhatsApp Green Style */

:root {
    --wa-green: #25D366;
    --wa-green-dark: #1EAB53;
    --navy: #0b2b5c;
    --navy-dark: #071c3d;
    --primary: #25D366;
    --secondary: #0b2b5c; /* Using navy as secondary accent */
    --light-bg: #f8f9fa;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

/* Custom Colors */
.bg-wa-green {
    background-color: var(--wa-green) !important;
}

.text-wa-green {
    color: var(--wa-green) !important;
}

.bg-navy {
    background-color: var(--navy) !important;
}

.text-navy {
    color: var(--navy) !important;
}

/* Navbar styling */
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: 0.5rem 1rem;
    font-size: 15px;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #fff;
    background-color: var(--wa-green-dark);
    border-radius: 4px;
}

/* Dropdown styling */
.dropdown-menu {
    border-top: 3px solid var(--secondary) !important;
    border-radius: 0 0 4px 4px;
    padding: 0;
}

.dropdown-item {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 400;
    border-bottom: 1px solid #f1f1f1;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: var(--light-bg);
    color: var(--secondary);
    padding-left: 25px; /* Subtle hover effect */
    transition: padding 0.3s ease;
}

/* Multi-level dropdown logic */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -3px; /* Align with top border */
}

/* If the submenu should open to the left (to prevent going off-screen) */
.dropdown-submenu .submenu-left {
    left: auto;
    right: 100%;
}

/* Show submenu on hover for desktop */
@media (min-width: 992px) {
    .dropdown:hover > .dropdown-menu {
        display: block;
    }
    
    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
    }
}

/* News Marquee */
.news-marquee {
    border-top: 1px solid #dee2e6;
}

.news-label {
    white-space: nowrap;
    z-index: 2;
}

/* Section Styling */
.section-title {
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary);
}

.section-title.mx-auto::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Carousel Overrides */
.carousel-caption {
    background: rgba(18, 140, 126, 0.75);
    bottom: 20%;
    left: 10%;
    right: auto;
    padding: 30px;
    border-radius: 8px;
    text-align: left;
    max-width: 600px;
    border-left: 4px solid var(--secondary);
}

@media (max-width: 768px) {
    .carousel-caption {
        bottom: 10%;
        left: 5%;
        right: 5%;
        padding: 20px;
    }
}
