/* Importing Google Fonts */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');

/* General Styles */

/* ========== Root Variables ========== */
:root {
    --primary-color: #034d7e;
    --primary-hover: #377097;
    --primary-background: #f6f8f7;
    --secondary-color: #f39c5c;
    --secondary-hover: #d48b5d;
    --text-dark: #333;
    --text-light: #ffffff;
    --font-size-heading: 3rem;
    --font-size-subheading: 1.5rem;
    --font-size-paragraph: 1rem;
    --bg-light: #f9f9f9;
    --btn-bg: #4CAF50;
    --btn-hover: #6a7b5f;
    --overlay-dark: rgba(0, 0, 0, 0.5);
}

/* ========== Reset & Base Styles ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Noto Sans", sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}


/* ========== Header & Navbar ========== */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    padding-top: 30px;
    padding-bottom: 30px;
    padding-left: 70px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-text {
    display: flex;
    flex-direction: column;/
}

.site-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0;
    color: var(--primary-color);
}

.site-tagline {
    font-size: 1rem;
    margin: 0;
    color: #444;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-light);
    text-decoration: none;
    cursor: pointer;
}

.logo img {
    object-fit: contain;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

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

.logo span {
    font-size: 1.3rem;
    color: var(--text-light);
    letter-spacing: 1px;
}

.nav-menu {
    list-style: none;
    font-family: Open Sans, sans-serif;
    padding: 3px;
}

.nav-menu>li {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-menu li a {
    padding: 0.55rem 1rem;
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.3s ease-in-out;
}

.nav-menu>li>a:hover {
    color: #ffff;
    background: var(--primary-hover);
}

.nav-menu .menu-item-has-children>a {
    position: relative;
    padding-right: 2.5rem;
}

.nav-menu .menu-item-has-children>a::after {
    content: "";
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 24 24'%3E%3Cpath d='M12.53 16.28a.75.75 0 0 1-1.06 0l-7.5-7.5a.75.75 0 1 1 1.06-1.06L12 14.69l6.97-6.97a.75.75 0 0 1 1.06 1.06l-7.5 7.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: transform 0.3s ease;
}

.nav-menu .menu-item-has-children>a:hover::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23facc15' viewBox='0 0 24 24'%3E%3Cpath d='M12.53 16.28a.75.75 0 0 1-1.06 0l-7.5-7.5a.75.75 0 1 1 1.06-1.06L12 14.69l6.97-6.97a.75.75 0 0 1 1.06 1.06l-7.5 7.5z'/%3E%3C/svg%3E");
}

/* Dropdown menu */
.nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: #ffffff;
    border: 1px solid var(--primary-hover);
    border-radius: 0.5rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    padding: 0.5rem 0;
    z-index: 999;
    list-style: none;
    margin: 0;
    animation: fadeIn 0.2s ease-in-out;
}

.nav-menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    margin-left: 0.25rem;
}

.nav-menu .sub-menu li a {
    display: block;
    color: var(--text-dark);
    padding: 0.6rem 1rem;
    white-space: nowrap;
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
    font-size: 0.95rem;
}

.nav-menu .sub-menu li a:hover {
    background-color: var(--primary-hover);
    color: var(--text-light);
    padding-left: 1.25rem;
}

.nav-menu li:hover>.sub-menu {
    display: block;
}

.current-menu-item {
    color: var(--secondary-hover);
    text-decoration: underline;
    text-underline-offset: 10px;
    text-decoration-color: var(--secondary-hover);
    text-decoration-thickness: 3px;
}




@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-light);
    margin-left: 20px;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
}

.hero-slider .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.1s ease-in-out;
}

.hero-slider .slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slider .slide:first-child.active {
    transition: none;
}

.hero-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slider .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-slider .hero-text {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
}

.hero-slider .hero-text h1 {
    font-size: 3rem;
    font-weight: bold;
}

.hero-slider .dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.hero-slider .dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: inline-block;
    transition: background 0.2s;
}

.hero-slider .dots span.active {
    background: #fff;
    box-shadow: 0 0 4px #222;
}

@media (max-width: 992px) {
    nav ul {
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .navbar {
        position: relative;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        background: var(--primary-color, #d2f5d2);
        position: absolute;
        top: 60px;
        right: 0;
        width: 220px;
        padding: 15px 0;
    }

    .nav-menu li {
        text-align: center;
    }

    .nav-menu li a {
        display: block;
        padding: 10px;
        color: #fff;
    }

    .menu-toggle {
        display: block;
    }

    .navbar.active .nav-menu {
        display: flex;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8rem;
        padding: 0 10px;
    }
}

/* Mobile View Fixes - Only for screens below 1024px */
@media (max-width: 1023px) {
    .mobile-nav-menu {
        list-style: none !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .mobile-nav-menu li {
        width: 100%;
        display: block !important;
    }

    .mobile-nav-menu li a {
        display: block;
        padding: 12px 15px;
        color: white;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-weight: 500;
    }

    /* Sub-menu styling for mobile */
    .mobile-nav-menu .sub-menu {
        display: block !important;
        /* Show sub-menus by default in mobile for simplicity */
        position: static !important;
        background: rgba(0, 0, 0, 0.05) !important;
        box-shadow: none !important;
        border: none !important;
        padding-left: 20px !important;
        min-width: 100% !important;
        opacity: 1 !important;
        transform: none !important;
    }

    /* Hide the dropdown arrow on mobile to save space */
    .mobile-nav-menu .menu-item-has-children>a::after {
        display: none;
    }
}

@media (max-width: 1023px) {

    /* Mobile title link reset */
    .navbar a {
        text-decoration: none !important;
    }

    .mobile-nav-menu {
        list-style: none !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 0 1rem;
    }

    .mobile-nav-menu li a {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: block;
        color: white;
    }

    /* Sub-menu (Dropdown) on Mobile */
    .mobile-nav-menu .sub-menu {
        background: rgba(0, 0, 0, 0.1) !important;
        padding-left: 15px !important;
        display: block !important;
        position: static !important;
        box-shadow: none !important;
    }
}

/* Overlay wrapper */
.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s ease;
}

/* Overlay text */
.overlay-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    padding: 0 0.5rem;
}

/* Hover effect */
.relative:hover .overlay {
    opacity: 1;
}