/* 
 * Legal N Taxes - Public Website Styles
 * Main stylesheet for public pages
 */

:root {
    --primary-color: #142B49;
    --secondary-color: #C5A253;
    --gold-color: #C5A253;
    --navy-color: #142B49;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #C5A253;
    --light-color: #ecf0f1;
    --dark-color: #142B49;
    --gold-hover: #D4B264;
    --navy-hover: #1A3A5F;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    padding-top: 90px; /* Increased to match header height */
}

/* CRITICAL FIX: Desktop Navigation Center Alignment */
@media (min-width: 992px) {
    .site-header .navbar {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }
    
    .site-header .container-fluid {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        flex-wrap: nowrap !important;
        position: relative !important;
    }
    
    .site-header .navbar-brand {
        position: absolute !important;
        left: 1rem !important;
        margin: 0 !important;
        padding: 0 0.5rem !important;
    }
    
    .site-header .navbar-collapse {
        display: flex !important;
        flex-grow: 0 !important;
        justify-content: center !important;
        position: static !important;
        width: auto !important;
        background: transparent !important;
        flex-basis: auto !important;
        margin: 0 auto !important;
    }
    
    .site-header .navbar-nav {
        display: flex !important;
        flex-direction: row !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
        width: auto !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .site-header .nav-item {
        display: inline-block !important;
        margin: 0 0.8rem !important;
        width: auto !important;
    }
    
    .site-header .nav-link {
        display: inline-block !important;
        padding: 0.5rem 1rem !important;
        width: auto !important;
        margin: 0 !important;
        white-space: nowrap !important;
    }
    
    /* Hide mobile hamburger on desktop */
    .site-header .navbar-toggler {
        display: none !important;
    }
    
    /* Desktop Dropdown Mega Menu */
    .site-header .dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
        min-width: 200px;
        padding: 0.5rem 0;
        margin: 0;
        background: white;
        border: none;
        border-top: 3px solid #C5A253;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 8px 24px rgba(20, 43, 73, 0.2);
    }
    
    .site-header .dropdown:hover .dropdown-menu {
        display: block;
    }
    
    /* Mega Menu specific styling */
    .site-header .mega-menu {
        min-width: 900px;
        width: 900px;
        left: 50%;
        transform: translateX(-50%);
        padding: 0;
    }
    
    /* Regular dropdown menu styling */
    .site-header .dropdown-menu:not(.mega-menu) {
        min-width: 240px;
    }
    
    .site-header .dropdown-divider {
        margin: 0.5rem 0;
        border-top: 1px solid #e9ecef;
    }
    
    .site-header .dropdown-header {
        font-weight: 600;
        font-size: 1rem;
        padding: 0.75rem 1rem;
        margin-bottom: 0.5rem;
        border-bottom: 2px solid #C5A253;
        color: #142B49;
        background: linear-gradient(90deg, rgba(197, 162, 83, 0.1) 0%, transparent 100%);
    }
    
    .site-header .dropdown-item {
        padding: 0.6rem 1rem;
        color: #142B49;
        transition: all 0.3s;
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        border-left: 3px solid transparent;
    }
    
    .site-header .dropdown-item i {
        width: 20px;
        text-align: center;
        color: #C5A253;
        transition: all 0.3s;
    }
    
    .site-header .dropdown-item:hover {
        background: linear-gradient(90deg, rgba(197, 162, 83, 0.15) 0%, transparent 100%);
        color: #142B49;
        padding-left: 1.5rem;
        border-left: 3px solid #C5A253;
    }
    
    .site-header .dropdown-item:hover i {
        transform: translateX(3px);
        color: #142B49;
    }
    
    .site-header .dropdown-toggle::after {
        margin-left: 0.3rem;
        color: #C5A253;
    }
}

/* Header Styles */
.site-header {
    background: linear-gradient(135deg, #142B49 0%, #1A3A5F 50%, #142B49 100%);
    color: white;
    padding: 0.8rem 0;
    box-shadow: 0 2px 10px rgba(20, 43, 73, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    height: 90px; /* Fixed height for consistency */
    display: flex;
    align-items: center;
    border-bottom: 3px solid #C5A253;
}

.site-header .navbar {
    height: 100%;
}

.site-header .container-fluid {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center; /* Center everything */
    padding-left: 1rem;
    padding-right: 1rem;
    position: relative; /* For absolute positioned logo */
}

.site-header .navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: white !important;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* Mobile default - will be overridden by media queries */
.site-header .navbar-collapse {
    flex-grow: 0;
}

.site-header .navbar-nav {
    margin-left: 0;
}

.site-header .nav-link {
    color: rgba(255,255,255,0.9) !important;
    transition: all 0.3s;
    position: relative;
}

.site-header .nav-link:hover {
    color: #C5A253 !important;
}

.site-header .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #C5A253;
    transition: width 0.3s;
}

.site-header .nav-link:hover::after {
    width: 80%;
}

/* ===================================
   HERO SECTION - MOBILE RESPONSIVE
   =================================== */

.hero-section {
    position: relative;
    padding: 0;
    margin: 0;
    margin-top: 2.5rem;
    overflow: hidden;
    width: 100%;
}

/* Carousel Container - Desktop */
.hero-section .carousel {
    width: 100%;
    height: 750px;
    position: relative;
}

.hero-section .carousel-inner {
    height: 100%;
    width: 100%;
}

.hero-section .carousel-item {
    height: 100%;
    width: 100%;
    position: relative;
}

/* Image Styling - Desktop */
.hero-section .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* No zoom animation for better mobile performance */
.hero-section .carousel-item.active img {
    transform: scale(1);
}

/* Dark Overlay for text readability - REMOVED for clear image display */
/*
.hero-section .carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(44, 62, 80, 0.75) 0%, 
        rgba(52, 152, 219, 0.65) 50%,
        rgba(44, 62, 80, 0.75) 100%
    );
    z-index: 1;
}
*/

/* Caption Container */
.hero-section .carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1200px;
    text-align: center;
    z-index: 2;
    bottom: auto;
    padding: 2rem;
}

/* Hero Content Animation */
.hero-section .hero-content {
    opacity: 0;
    transform: translateY(50px);
}

.hero-section .carousel-item.active .hero-content {
    animation: slideUpFade 0.8s ease-out 0.3s forwards;
}

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

/* Typography */
.hero-section .hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 3px 3px 10px rgba(0,0,0,0.7);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero-section .hero-content p {
    font-size: 1.4rem;
    color: rgba(255,255,255,0.95);
    text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

/* Buttons with Hover Effects */
.hero-section .hero-buttons .btn {
    font-size: 1.1rem;
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-width: 2px;
}

.hero-section .hover-lift {
    position: relative;
    overflow: hidden;
}

.hero-section .hover-lift::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hero-section .hover-lift:hover::before {
    width: 300px;
    height: 300px;
}

.hero-section .hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3) !important;
}

/* Left & Right Arrow Controls - Ecommerce Style */
.hero-section .carousel-control-prev,
.hero-section .carousel-control-next {
    width: 70px;
    height: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    opacity: 0.7;
    transition: all 0.4s ease;
    z-index: 3;
    border: 2px solid rgba(255,255,255,0.3);
}

.hero-section .carousel-control-prev {
    left: 30px;
}

.hero-section .carousel-control-next {
    right: 30px;
}

.hero-section .carousel-control-prev:hover,
.hero-section .carousel-control-next:hover {
    background: rgba(255,255,255,0.35);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    border-color: rgba(255,255,255,0.6);
}

/* Custom Arrow Icons */
.hero-section .carousel-control-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.hero-section .carousel-control-icon i {
    font-size: 2rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Round Circle Indicators at Bottom */
.hero-section .carousel-indicators {
    bottom: 40px;
    z-index: 3;
    margin: 0;
    gap: 12px;
    display: flex;
    justify-content: center;
}

.hero-section .carousel-indicators button {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    border: 3px solid rgba(255,255,255,0.8);
    margin: 0;
    padding: 0;
    transition: all 0.4s ease;
    opacity: 1;
}

.hero-section .carousel-indicators button:hover {
    background-color: rgba(255,255,255,0.8);
    transform: scale(1.2);
}

.hero-section .carousel-indicators button.active {
    background-color: white;
    width: 40px;
    border-radius: 10px;
    transform: scale(1);
}

/* Slide Transition Effect */
.hero-section .carousel-item {
    transition: transform 0.8s ease-in-out;
}

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

/* Tablet View */
@media (max-width: 991px) {
    .hero-section .carousel {
        height: 600px;
    }
    
    .hero-section .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .hero-content p {
        font-size: 1.2rem;
    }
    
    .hero-section .hero-buttons .btn {
        font-size: 1rem;
        padding: 0.75rem 2rem;
    }
    
    .hero-section .carousel-control-prev,
    .hero-section .carousel-control-next {
        width: 55px;
        height: 55px;
    }
    
    .hero-section .carousel-control-icon i {
        font-size: 1.5rem;
    }
    
    .hero-section .carousel-control-prev {
        left: 15px;
    }
    
    .hero-section .carousel-control-next {
        right: 15px;
    }
}

/* Mobile Large (Tablets and Large Phones) */
@media (max-width: 768px) {
    .hero-section .carousel {
        height: 500px;
    }
    
    .hero-section .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    .hero-section .carousel-caption {
        bottom: 80px;
        padding: 0 1rem;
    }
    
    .hero-section .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-section .hero-content p {
        font-size: 1.05rem;
        margin-bottom: 1.8rem;
    }
    
    .hero-section .hero-buttons .btn {
        font-size: 0.95rem;
        padding: 0.7rem 1.5rem;
        margin: 0.3rem !important;
    }
    
    .hero-section .carousel-indicators {
        bottom: 25px;
        gap: 8px;
    }
    
    .hero-section .carousel-indicators button {
        width: 12px;
        height: 12px;
        border-width: 2px;
    }
    
    .hero-section .carousel-indicators button.active {
        width: 30px;
    }
    
    .hero-section .carousel-control-prev,
    .hero-section .carousel-control-next {
        width: 45px;
        height: 45px;
    }
    
    .hero-section .carousel-control-icon i {
        font-size: 1.2rem;
    }
}

/* Mobile Small (Standard Phones) */
@media (max-width: 576px) {
    .hero-section .carousel {
        height: 450px;
    }
    
    .hero-section .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    .hero-section .carousel-caption {
        padding: 1rem;
    }
    
    .hero-section .hero-content h1 {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-section .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-section .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.7rem;
        align-items: center;
    }
    
    .hero-section .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        margin: 0 !important;
        font-size: 0.9rem;
        padding: 0.65rem 1.2rem;
    }
    
    .hero-section .carousel-control-prev,
    .hero-section .carousel-control-next {
        width: 40px;
        height: 40px;
        background: rgba(255,255,255,0.2);
    }
    
    .hero-section .carousel-control-prev {
        left: 10px;
    }
    
    .hero-section .carousel-control-next {
        right: 10px;
    }
    
    .hero-section .carousel-control-icon i {
        font-size: 1rem;
    }
    
    .hero-section .carousel-indicators {
        bottom: 20px;
        gap: 6px;
    }
    
    .hero-section .carousel-indicators button {
        width: 10px;
        height: 10px;
    }
    
    .hero-section .carousel-indicators button.active {
        width: 25px;
    }
}

/* Extra Small Mobile (Very Small Phones) */
@media (max-width: 400px) {
    .hero-section .carousel {
        height: 400px;
    }
    
    .hero-section .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    .hero-section .hero-content h1 {
        font-size: 1.4rem;
    }
    
    .hero-section .hero-content p {
        font-size: 0.9rem;
    }
    
    /* Extra padding for very small screens */
    .navbar > .container-fluid {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    
    .navbar-brand img {
        height: 35px !important;
        margin-right: 6px !important;
    }
    
    .navbar-brand span {
        font-size: 0.9rem !important;
    }
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(20, 43, 73, 0.1);
    transition: all 0.3s;
    border-top: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(20, 43, 73, 0.15);
    border-top: 3px solid #C5A253;
}

.service-card h3 {
    color: #142B49;
    margin-bottom: 1rem;
}

.service-card i {
    font-size: 3rem;
    color: #C5A253;
    margin-bottom: 1rem;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #C5A253 0%, #D4B264 100%);
    border: 2px solid #C5A253;
    color: #142B49;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(197, 162, 83, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #D4B264 0%, #C5A253 100%);
    border-color: #D4B264;
    color: #142B49;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(197, 162, 83, 0.4);
}

/* Login Button - Special hover styling */
.site-header .nav-link.btn-primary {
    background: linear-gradient(135deg, #C5A253 0%, #D4B264 100%);
    border: 2px solid #C5A253;
    color: #142B49;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
}

.site-header .nav-link.btn-primary:hover {
    background: #28a745 !important;
    border-color: #28a745 !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.site-header .nav-link.btn-primary::after {
    display: none;
}

.btn-outline-primary {
    border: 2px solid #C5A253;
    color: #C5A253;
    background: transparent;
}

.btn-outline-primary:hover {
    background: #C5A253;
    color: #142B49;
    border-color: #C5A253;
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    background: transparent;
    font-weight: 600;
}

.btn-outline-light:hover {
    background: white;
    color: #142B49;
    border-color: white;
}

/* Forms */
.form-container {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(20, 43, 73, 0.1);
    margin-bottom: 2rem;
    border-top: 3px solid #C5A253;
}

.form-label {
    font-weight: 600;
    color: #142B49;
}

.form-control:focus {
    border-color: #C5A253;
    box-shadow: 0 0 0 0.2rem rgba(197, 162, 83, 0.25);
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, #142B49 0%, #1A3A5F 100%);
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 3px solid #C5A253;
}

.site-footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.site-footer a:hover {
    color: #C5A253;
}

/* Utility Classes */
.section-padding {
    padding: 4rem 0;
}

.text-primary-custom {
    color: #142B49;
}

.text-gold {
    color: #C5A253;
}

.bg-light-custom {
    background-color: #f8f9fa;
}

.bg-navy {
    background: #142B49;
}

.bg-gold {
    background: #C5A253;
}

/* Responsive */
@media (max-width: 768px) {
    /* Hero Section Mobile - Add gap between header and hero */
    .hero-section {
        margin-top: 1rem !important;
    }
    
    .hero-section .carousel {
        height: 400px;
    }
    
    .hero-section .carousel-item img {
        object-fit: cover;
        height: 400px;
    }
    
    .hero-section .carousel-caption {
        width: 95%;
        padding: 1rem;
        top: 50%;
    }
    
    .hero-section .hero-content h1 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
        line-height: 1.3;
    }
    
    .hero-section .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-section .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .hero-section .hero-buttons .btn {
        font-size: 0.9rem;
        padding: 0.7rem 1.5rem;
        width: 100%;
        margin: 0 !important;
    }
    
    .hero-section .carousel-control-prev,
    .hero-section .carousel-control-next {
        width: 40px;
        opacity: 0.7;
    }
    
    .hero-section .carousel-control-icon {
        width: 30px;
        height: 30px;
    }
    
    .hero-section .carousel-control-icon i {
        font-size: 1rem;
    }
    
    .hero-section .carousel-indicators {
        bottom: 10px;
    }
    
    .hero-section .carousel-indicators [data-bs-target] {
        width: 8px;
        height: 8px;
    }
    
    /* Services Section Mobile */
    .section-padding {
        padding: 2.5rem 0;
    }
    
    .service-card {
        margin-bottom: 1.5rem;
        padding: 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .service-card i.fas:first-child {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }
    
    .service-card ul {
        font-size: 0.9rem;
    }
    
    .service-card li {
        padding: 0.5rem 0;
    }
    
    .clickable-service-item,
    .clickable-service {
        padding: 0.4rem;
        font-size: 0.85rem;
    }
    
    /* Service Tabs Mobile */
    .nav-pills {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-pills .nav-link {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
        width: 100%;
        text-align: left;
        border-radius: 8px;
    }
    
    .nav-pills .nav-link i {
        min-width: 20px;
    }
    
    /* Service Subcategory Cards Mobile */
    .service-subcategory-card {
        padding: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .subcategory-title {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .service-list {
        font-size: 0.85rem;
    }
    
    .service-list li {
        padding: 0.4rem 0;
    }
    
    /* Why Choose Us Mobile */
    .bg-light-custom .col-md-4 {
        margin-bottom: 2rem;
    }
    
    .bg-light-custom i.fa-3x {
        font-size: 2rem;
    }
    
    .bg-light-custom h4 {
        font-size: 1.1rem;
        margin-top: 1rem;
    }
    
    .bg-light-custom p {
        font-size: 0.9rem;
    }
    
    /* Call to Action Mobile */
    .container.text-center h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .container.text-center .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .container.text-center .btn-lg {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }
    
    /* Section Headings Mobile */
    h2.text-primary-custom {
        font-size: 1.8rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Buttons Mobile */
    .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    /* Tab Content Mobile */
    .tab-content {
        padding-top: 1rem;
    }
    
    .tab-pane {
        animation: fadeIn 0.3s ease-in;
    }
    
    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 576px) {
    /* Add more gap for extra small devices */
    .hero-section {
        margin-top: 0.8rem !important;
    }
    
    .hero-section .carousel {
        height: 350px;
    }
    
    .hero-section .carousel-item img {
        height: 350px;
    }
    
    .hero-section .hero-content h1 {
        font-size: 1.2rem;
    }
    
    .hero-section .hero-content p {
        font-size: 0.85rem;
    }
    
    .hero-section .hero-buttons .btn {
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
    }
    
    .section-padding {
        padding: 2rem 0;
    }
    
    .service-card {
        padding: 1.2rem;
    }
    
    .service-subcategory-card {
        padding: 1rem;
    }
    
    h2.text-primary-custom {
        font-size: 1.5rem;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .nav-pills .nav-link {
        font-size: 0.85rem;
        padding: 0.5rem 0.8rem;
    }
    
    .subcategory-title {
        font-size: 1rem;
    }
}

/* Tablet Devices */
@media (min-width: 769px) and (max-width: 991px) {
    .hero-section .carousel {
        height: 500px;
    }
    
    .hero-section .carousel-item img {
        height: 500px;
    }
    
    .hero-section .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .hero-content p {
        font-size: 1.2rem;
    }
    
    .hero-section .hero-buttons .btn {
        font-size: 1rem;
        padding: 0.8rem 2rem;
    }
    
    .nav-pills {
        flex-wrap: wrap;
        gap: 0.8rem;
    }
    
    .nav-pills .nav-link {
        flex: 0 0 auto;
    }
}


/* Mobile Navigation Drawer Styles */
@media (max-width: 991px) {
    /* Header height adjustment for mobile */
    .site-header {
        height: 85px;
        padding: 0.6rem 0;
        margin-bottom: 0;
    }
    
    body {
        padding-top: 85px;
    }
    
    /* Logo styling for mobile */
    .navbar-brand {
        font-size: 1.1rem !important;
        flex-grow: 1;
        justify-content: center;
    }
    
    .navbar-brand img {
        height: 50px !important;
        margin-right: 0 !important;
    }
    
    .navbar-brand i {
        font-size: 1.3rem !important;
    }
    
    .navbar-brand span {
        font-size: 1rem !important;
    }
    
    /* Hamburger button on left - smaller size */
    .navbar-toggler {
        display: block !important;
        border: 2px solid rgba(255,255,255,0.5);
        padding: 0.4rem 0.5rem;
        order: -1;
        margin-right: 0.8rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(255,255,255,0.3);
    }
    
    .navbar-toggler-icon {
        width: 1.1em;
        height: 1.1em;
    }
    
    /* Drawer menu from left */
    .navbar-collapse {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 280px !important;
        height: 100vh !important;
        background: linear-gradient(135deg, #142B49 0%, #1A3A5F 100%) !important;
        z-index: 9999 !important;
        padding: 2rem 1rem !important;
        transition: left 0.3s ease-out !important;
        overflow-y: auto !important;
        box-shadow: none !important;
        pointer-events: auto !important;
        border-right: 3px solid #C5A253 !important;
    }
    
    .navbar-collapse.show {
        left: 0 !important;
        box-shadow: 4px 0 15px rgba(0,0,0,0.3) !important;
        pointer-events: auto !important;
    }
    
    /* Drawer overlay backdrop */
    .drawer-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: transparent;
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
        pointer-events: none !important;
    }
    
    .drawer-overlay.show {
        opacity: 1;
        visibility: visible;
        pointer-events: none !important;
    }
    
    /* Menu items styling */
    .navbar-nav {
        flex-direction: column !important;
        width: 100% !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
    }
    
    .nav-item {
        width: 100% !important;
        margin: 0.3rem 0 !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
    }
    
    .nav-link {
        padding: 0.8rem 1rem !important;
        border-radius: 5px !important;
        display: block !important;
        width: 100% !important;
        color: rgba(255,255,255,0.9) !important;
        text-align: left !important;
        pointer-events: auto !important;
        position: relative !important;
        z-index: 10001 !important;
        cursor: pointer !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: rgba(197, 162, 83, 0.2) !important;
        user-select: none !important;
    }
    
    .nav-link:hover {
        background: rgba(197, 162, 83, 0.2) !important;
        color: #C5A253 !important;
    }
    
    .nav-link.btn {
        text-align: center;
        margin-top: 1rem;
        background: linear-gradient(135deg, #C5A253 0%, #D4B264 100%) !important;
        border: 2px solid #C5A253 !important;
        color: #142B49 !important;
    }
    
    .nav-link.btn:hover {
        background: linear-gradient(135deg, #D4B264 0%, #C5A253 100%) !important;
    }
    
    /* Mobile Dropdown Submenu */
    .navbar-collapse .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin: 0.5rem 0;
        background: rgba(255,255,255,0.1) !important;
        border: none;
        box-shadow: none;
        padding: 0.5rem 0;
        border-radius: 5px;
    }
    
    .navbar-collapse .dropdown-menu .container {
        padding: 0;
    }
    
    .navbar-collapse .dropdown-menu .row {
        margin: 0;
    }
    
    .navbar-collapse .dropdown-menu .col-md-3,
    .navbar-collapse .dropdown-menu .col-md-4 {
        padding: 0.5rem;
    }
    
    .navbar-collapse .dropdown-header {
        color: #C5A253 !important;
        font-weight: 700;
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
        border-bottom: 1px solid rgba(197, 162, 83, 0.5);
        margin-bottom: 0.3rem;
        background: rgba(197, 162, 83, 0.1);
    }
    
    .navbar-collapse .dropdown-divider {
        border-color: rgba(197, 162, 83, 0.3);
        margin: 0.5rem 0;
    }
    
    .navbar-collapse .dropdown-item {
        color: rgba(255,255,255,0.85) !important;
        padding: 0.5rem 1rem 0.5rem 1.5rem;
        font-size: 0.85rem;
        display: flex;
        align-items: center;
    }
    
    .navbar-collapse .dropdown-item i {
        color: #C5A253;
        margin-right: 0.5rem;
    }
    
    .navbar-collapse .dropdown-item:hover {
        background: rgba(197, 162, 83, 0.2) !important;
        color: #C5A253 !important;
    }
    
    .navbar-collapse .dropdown-item:hover i {
        color: #D4B264;
    }
    
    .navbar-collapse .dropdown-toggle::after {
        display: none !important;
    }
    
    /* Submenu Toggle Icon (+/-) for Mobile */
    .submenu-toggle {
        position: absolute;
        right: 1rem;
        font-size: 1rem;
        color: #C5A253;
        transition: transform 0.3s ease;
        pointer-events: none;
    }
    
    .has-submenu.open .submenu-toggle {
        transform: rotate(45deg);
    }
    
    /* Hide submenu by default on mobile */
    .navbar-collapse .dropdown-menu {
        display: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
    
    .navbar-collapse .has-submenu.open .dropdown-menu {
        display: block;
        max-height: 1000px;
        transition: max-height 0.5s ease-in;
    }
    
    /* Mega menu button on mobile */
    .navbar-collapse .mega-menu .btn {
        background: linear-gradient(135deg, #C5A253 0%, #D4B264 100%) !important;
        border-color: #C5A253 !important;
        color: #142B49 !important;
        font-weight: 600;
    }
    
    .navbar-collapse .mega-menu .btn:hover {
        background: linear-gradient(135deg, #D4B264 0%, #C5A253 100%) !important;
    }
    
    /* Close button for drawer */
    .navbar-collapse::after {
        content: '\f00d';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        top: 1rem;
        right: 1rem;
        font-size: 1.5rem;
        color: white;
        cursor: pointer;
        padding: 0.5rem;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 5px;
        transition: background 0.3s;
        z-index: 10002;
        pointer-events: auto;
    }
    
    .navbar-collapse::after:hover {
        background: rgba(255,255,255,0.2);
    }
}

/* Desktop - Logo medium size */
@media (min-width: 992px) {
    .navbar-brand {
        padding: 0 0.5rem !important;
        margin: 0 !important;
        position: absolute !important;
        left: 1rem !important;
    }
    
    .navbar-brand i {
        font-size: 1.8rem;
    }
    
    .navbar-brand span {
        font-size: 1.3rem;
    }
    
    /* Force menu items to center */
    .site-header .navbar-collapse {
        display: flex !important;
        flex-basis: auto !important;
        flex-grow: 0 !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        left: auto !important;
        background: transparent !important;
        padding: 0 !important;
        box-shadow: none !important;
        justify-content: center !important;
        margin: 0 auto !important;
    }
    
    .site-header .navbar-nav {
        margin-left: 0 !important;
        margin-right: 0 !important;
        flex-direction: row !important;
        display: flex !important;
        width: auto !important;
        justify-content: center !important;
    }
    
    .site-header .nav-item {
        margin: 0 0.8rem !important;
        display: inline-block !important;
        width: auto !important;
    }
    
    .site-header .nav-link {
        display: inline-block !important;
        padding: 0.5rem 1rem !important;
        width: auto !important;
        border-radius: 0 !important;
    }
    
    /* Hide mobile close button on desktop */
    .navbar-collapse::after {
        display: none !important;
    }
}

/* Ensure full-width container on mobile */
@media (max-width: 991px) {
    .navbar > .container-fluid {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    .site-header .navbar-brand {
        padding-left: 0.3rem;
        padding-right: 0.3rem;
    }
    
    .navbar-toggler {
        margin-left: 0;
        margin-right: 0.5rem;
    }
}
