/* ==========================
   NAVBAR & MENU STYLES
========================== */

.navbar {
    background-color: #000 !important;
    border-bottom: 3px solid #004080;
}

.navbar-nav>li {
    white-space: nowrap;
}

.navbar-nav>li>a,
.navbar .dropdown-toggle {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff !important;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease-in-out;
}

.navbar .nav-link:hover,
.navbar .dropdown-toggle:hover {
    color: #ffe600 !important;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    text-decoration: none;
}

.navbar .dropdown-menu {
    background-color: rgba(0, 0, 0, 0.85);
    border: none;
    min-width: 180px;
}

.navbar .dropdown-menu a {
    color: #fff;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.navbar .dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffe600;
}

/* ==========================
   FLOATING LOGO
========================== */

.logo-floating-wrapper {
    position: absolute;
    top: var(--logo-top, -25px);
    z-index: 30;
}

.logo-floating {
    height: var(--logo-height, 100px);
    max-height: 25vh;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

/* ==========================
   RESPONSIVE
========================== */

@media (max-width: 768px) {
    .logo-floating {
        height: var(--logo-height-mobile, 70px);
    }

    .logo-floating-wrapper {
        top: var(--logo-top-mobile, -15px);
    }
}

:root {
    --logo-height: 150px;
    --logo-height-mobile: 100px;
    --logo-top: 10px;
    --logo-top-mobile: 5px;
    --logo-side: 1.5rem;
}

/* ==========================
   BANNER IMAGE
========================== */

.fullwidth-banner {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin-top: 0;
}

/* ==========================
   OFFCANVAS MENU
========================== */

.offcanvas {
    background-color: #1e1e1e;
    color: #fff;
    width: 250px;
}

.offcanvas .offcanvas-title {
    font-weight: bold;
    font-size: 1.1rem;
}

.offcanvas .nav-link {
    color: #fff !important;
    font-weight: 600;
}

.offcanvas .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffe600 !important;
}

.btn-close {
    filter: invert(1);
}

p {
    text-align: justify;
}

/* ==========================
   BLOCK STYLES
========================== */

.image-block {
    width: 100vw;
    margin-inline-start: calc(-50vw + 50%);
    margin-inline-end: calc(-50vw + 50%);
    padding: 80px 0;
    color: #fff;
    position: relative;
    z-index: 0;
    border-radius: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.normal-block {
    padding: 40px 0;
    background-color: inherit;
    border-radius: 0;
}

.overlay-white {
    background: rgba(255, 255, 255, 0.70);
    padding: 40px 30px;
    color: #000;
    border-radius: 8px;
    
}

.overlay-dark {
    background: rgba(0, 0, 0, 0.6);
    padding: 40px 30px;
    color: #fff;
    border-radius: 8px;
    
}

/* Light Gray */
.style-box-1 {
    background: #f5f5f5;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Light Beige */
.style-box-2 {
    background: #fdf6ec;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Soft Blue */
.style-box-3 {
    background: #e5edf0;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Frosted White */
.style-box-4 {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Soft Green */
.style-box-5 {
    background: #e8f4ea;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
/* ==========================
   FOOTER
========================== */

.footer-section {
    background-color: #111;
    color: #eee;
    padding: 40px 0;
    font-size: 14px;
}

.footer-section a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #00c2ff;
}

.footer-heading {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #fff;
}

.footer-description {
    margin-top: 10px;
    color: #aaa;
}

.footer-logo {
    max-width: 120px;
    margin-bottom: 10px;
}

.footer-menu {
    list-style: none;
    padding-left: 0;
}

.footer-menu li {
    margin-bottom: 6px;
}

.social-icons a {
    color: #ccc;
    font-size: 16px;
    margin-right: 10px;
    display: inline-block;
    transition: color 0.3s, transform 0.3s;
}

.social-icons a:hover {
    color: #00c2ff;
    transform: scale(1.2);
}
/* Default (Desktop) */
.block-wrapper.bg-image {
    padding: 60px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    /* top/bottom = height driver */
}

/* Tablet */
@media (max-width: 992px) {
    .block-wrapper.bg-image {
        padding: 80px 20px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .block-wrapper.bg-image {
        padding: 60px 15px;
    }
}
/* Remove border radius globally for all blocks */
.block-wrapper,
.overlay-white,
.overlay-dark,
.style-box-1,
.style-box-2,
.style-box-3,
.card-body,
.card,
img,
img.rounded {
    border-radius: 0 !important;
}
.footer-section .footer-heading+.row a {
    font-size: 16px;
    display: block;
    margin-bottom: 8px;
    line-height: 1.6;
}
/* Sublink green style */
.sublink {
    color: #28a745;
    /* Bootstrap success green */
    text-decoration: none;
    position: relative;
    font-weight: 500;
}

.sublink::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #28a745;
    transition: width 0.3s;
    position: absolute;
    bottom: -2px;
    left: 0;
}

.sublink:hover {
    color: #28a745;
    /* keep green on hover */
}

.sublink:hover::after {
    width: 100%;
}
/* Make offcanvas wider */
.offcanvas {
    background-color: #1e1e1e;
    color: #fff;
    width: 320px;
    /* increased from 250px */
}

/* Improve submenu padding */
.offcanvas .dropdown-menu {
    background-color: rgba(0, 0, 0, 0.85);
    border: none;
    min-width: 100%;
    /* make it match parent width */
    padding-right: 15px;
    /* add right padding */
    box-sizing: border-box;
    /* ensure padding doesn't break width */
}

/* Ensure submenu links look aligned */
.offcanvas .dropdown-menu a {
    color: #fff;
    font-weight: 500;
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    /* right padding increased */
    display: block;
    width: 100%;
}

/* Optional: slightly indent sublinks for better hierarchy look */
.offcanvas .dropdown-menu a::before {
    content: '↳ ';
    color: #28a745;
    /* small green arrow */
    margin-right: 4px;
}

/* Keep hover effect consistent */
.offcanvas .dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffe600;
}
/* Make submenu width match parent (English) */
.offcanvas .dropdown-menu {
    min-width: 100%; /* force it to match parent width */
    width: 100%; /* ensure full width */
    padding-right: 15px; /* add some right space */
    box-sizing: border-box; /* make padding count inside width */
    background-color: rgba(0, 0, 0, 0.85);
}

/* Adjust submenu links */
.offcanvas .dropdown-menu a {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem; /* balanced padding */
    color: #fff;
    font-weight: 500;
    text-align: left; /* ensure left alignment for English */
}

/* Hover effect */
.offcanvas .dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffe600;
}

.offcanvas .dropdown-menu a {
    white-space: normal;
    /* allow wrapping to multiple lines */
    word-wrap: break-word;
    /* break long words if needed */
    line-height: 1.4;
    /* slightly increase line spacing for clarity */
}
.offcanvas .dropdown-menu a {
    white-space: normal;
    /* allow multi-line */
    word-wrap: break-word;
    /* break long words if needed */
    line-height: 1.4;
    /* improve readability */
    text-indent: 0;
    /* ensure no indent on second line */
    padding-left: 1rem;
    /* space for icon/arrow if needed */
    position: relative;
}

/* If you use an arrow or icon, position it absolutely */
.offcanvas .dropdown-menu a::before {
    content: '↳ ';
    /* optional: submenu arrow */
    position: absolute;
    left: 1rem;
    /* fixed left position */
}
/* Target Arabic (RTL) menus */
html[lang="ar"] .offcanvas .dropdown-menu a {
    text-align: right;
    /* align text to the right */
    padding-right: 1rem;
    /* add right padding */
    padding-left: 0.5rem;
    /* less left padding */
    direction: rtl;
    /* ensure correct flow */
}