/* ===================== */
/* COMMON HEADER & FOOTER STYLES */
/* ===================== */
:root {
    --primary-color: #1a3a5f;
    --secondary-color: #4a6fa5;
    --accent-color: #d35400;
    --sherpa-orange: #e67e22;
    --light-color: #f8f9fa;
    --dark-color: #121c25;
    --himalayan-blue: #3498db;
}

/* Base styles */
body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    overflow-x: hidden;
    padding-top: 0;
}

h1, h2, h3, h4, h5, .navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* MODERN HEADER STYLES */
.navbar {
    background-color: rgba(26, 58, 95, 0.95) !important;
    transition: all 0.3s ease;
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: rgba(26, 58, 95, 0.98) !important;
}

.navbar-brand {
    font-size: 1.8rem;
    color: white !important;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.navbar-brand:hover {
    color: var(--sherpa-orange) !important;
    transform: translateY(-2px);
}

/* Desktop Navigation Links */
.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    margin: 0 8px;
    transition: all 0.3s;
    position: relative;
    padding: 8px 12px !important;
    border-radius: 4px;
}

.nav-link:hover, .nav-link.active {
    color: var(--sherpa-orange) !important;
    background-color: rgba(230, 126, 34, 0.1);
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--sherpa-orange);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.nav-link:hover:after, .nav-link.active:after {
    width: 80%;
}

/* IMPROVED: Modern Two-Line Hamburger with less gap */
.hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 16px; /* Reduced height to bring lines closer */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.hamburger-menu:focus {
    outline: none;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* IMPROVED: Lines are now closer together */
.hamburger-line:nth-child(1) {
    transform-origin: 0% 0%;
    margin-top: 1px; /* Adjust to control spacing */
}

.hamburger-line:nth-child(2) {
    transform-origin: 0% 100%;
    margin-bottom: 1px; /* Adjust to control spacing */
}

/* Hamburger Animation to X */
.navbar-toggler[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(2px, -1px);
    width: 100%;
}

.navbar-toggler[aria-expanded="true"] .hamburger-line:nth-child(2) {
    transform: rotate(-45deg) translate(2px, 1px);
    width: 100%;
}

/* Full Screen Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(26, 58, 95, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1020;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    text-align: center;
    width: 100%;
    padding: 20px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav-link {
    display: block;
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    padding: 15px 0;
    margin: 10px 0;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    font-family: 'Montserrat', sans-serif;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
    color: var(--sherpa-orange);
    transform: translateX(10px);
}

.mobile-nav-link:after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--sherpa-orange);
    transition: all 0.3s;
}

.mobile-nav-link:hover:after, .mobile-nav-link.active:after {
    width: 100%;
}

.mobile-menu-social {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.mobile-social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.mobile-social-icon:hover {
    background-color: var(--sherpa-orange);
    transform: translateY(-5px);
}

/* Close Button for Mobile Menu */
.mobile-close-btn {
    position: absolute;
    top: 25px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s;
}

.mobile-close-btn:hover {
    background-color: var(--sherpa-orange);
    transform: rotate(90deg);
}

.close-icon {
    display: block;
    width: 20px;
    height: 2px;
    background-color: white;
    position: relative;
    transform: rotate(45deg);
}

.close-icon:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: white;
    top: 0;
    left: 0;
    transform: rotate(90deg);
}

/* Body scroll lock when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Page content padding to account for fixed navbar */
.page-content {
    padding-top: 76px;
}

/* Responsive Adjustments for Header */
@media (max-width: 992px) {
    /* Hide desktop nav on mobile */
    .desktop-nav {
        display: none !important;
    }
    
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
}

@media (min-width: 993px) {
    /* Hide mobile toggle on desktop */
    .mobile-menu-toggle {
        display: none !important;
    }
    
    /* Ensure desktop nav is visible */
    .desktop-nav {
        display: flex !important;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .mobile-nav-link {
        font-size: 1.5rem;
    }
    
    .mobile-close-btn {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
    
    /* Even tighter hamburger on small screens */
    .hamburger-menu {
        height: 14px;
    }
}

/* ===================== */
/* COMMON FOOTER STYLES */
/* ===================== */
footer {
    background-color: var(--dark-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 30px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--sherpa-orange);
    padding-left: 5px;
}

/* Social Icons */
.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: white;
    margin-right: 10px;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: var(--sherpa-orange);
    transform: translateY(-5px);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--sherpa-orange);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 1000;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

/* Page transition */
.page-transition {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.page-loaded {
    opacity: 1;
}

/* Common button styles */
.btn-primary {
    background-color: var(--sherpa-orange);
    border-color: var(--sherpa-orange);
    padding: 14px 35px;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s;
    font-size: 1.1rem;
}

.btn-primary:hover {
    background-color: #d35400;
    border-color: #d35400;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.btn-outline-light {
    padding: 14px 35px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* Common section title */
.section-title {
    color: var(--primary-color);
    position: relative;
    margin-bottom:10px;
    text-align: center;
}

/* .section-title:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: var(--sherpa-orange);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
} */

/* Common responsive adjustments */
@media (max-width: 768px) {
    .btn-primary, .btn-outline-light {
        padding: 12px 30px;
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .section-title:after {
        bottom: -10px;
    }
}

@media (max-width: 576px) {
    .btn-primary, .btn-outline-light {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}
.breadcrumb-item+.breadcrumb-item::before{color:#fff!important;}