/* Reset default margins and paddings */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 14px;
}

body {
  margin: 0 !important;
  padding: 0 !important;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* Slider Styles */
.carousel-item {
    transition: transform 0.6s ease-in-out;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    z-index: 10;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    background-size: 20px 20px;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.carousel-indicators {
    bottom: -50px;
    margin-bottom: 0;
}

.carousel-indicators [data-bs-target] {
    background-color: #007bff;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    border: none;
    opacity: 0.5;
}

.carousel-indicators .active {
    background-color: #0056b3;
    opacity: 1;
}

/* Carousel container spacing */
#eventsCarousel {
    margin-bottom: 60px;
}

/* Slider Image Responsive */
.slider-image-responsive {
    height: 400px;
    object-fit: cover;
    object-position: center;
    width: 100%;
    border-radius: 0.5rem 0.5rem 0 0;
    transition: transform 0.3s ease;
}

.slider-image-responsive:hover {
    transform: scale(1.02);
}

/* Enhanced Responsive Carousel */
@media (max-width: 768px) {
    .carousel-control-prev,
    .carousel-control-next {
        width: 10%;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 35px;
        height: 35px;
        background-size: 15px 15px;
    }

    .carousel-indicators {
        bottom: -40px;
    }

    /* Mobile slider image fixes */
    .slider-image-responsive {
        height: 250px !important;
        object-fit: cover;
        object-position: center;
        width: 100%;
        border-radius: 0.5rem 0.5rem 0 0;
    }

    .carousel-item .card-img-top {
        height: 250px !important;
        object-fit: cover;
        object-position: center;
        width: 100%;
    }

    /* Mobile slider card adjustments */
    .carousel-item .col-md-10.col-lg-8 {
        padding-left: 15px;
        padding-right: 15px;
    }

    .carousel-item .card {
        margin: 0 10px;
        border-radius: 1rem;
        overflow: hidden;
    }

    .carousel-item .card-body {
        padding: 1.5rem 1rem;
    }

    .carousel-item .card-title {
        font-size: 1.25rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .carousel-item .card-text {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }

    .carousel-item .btn {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
    }
}

/* Extra small mobile adjustments */
@media (max-width: 576px) {
    .slider-image-responsive {
        height: 200px !important;
    }

    .carousel-item .card-img-top {
        height: 200px !important;
    }

    .carousel-item .card {
        margin: 0 5px;
    }

    .carousel-item .card-body {
        padding: 1.25rem 0.875rem;
    }

    .carousel-item .card-title {
        font-size: 1.1rem;
    }

    .carousel-item .card-text {
        font-size: 0.85rem;
        margin-bottom: 1.25rem;
    }

    .carousel-item .btn {
        font-size: 0.85rem;
        padding: 0.625rem 1.25rem;
    }

    /* Adjust carousel container for very small screens */
    #eventsCarousel {
        margin-bottom: 50px;
    }

    .carousel-indicators {
        bottom: -35px;
    }

    .carousel-indicators [data-bs-target] {
        width: 10px;
        height: 10px;
        margin: 0 3px;
    }
}

/* Additional Mobile Slider Improvements */
@media (max-width: 768px) {
    /* Ensure full width on mobile */
    .carousel-item .row {
        margin-left: 0;
        margin-right: 0;
    }

    .carousel-item .col-md-10.col-lg-8 {
        max-width: 100%;
        flex: 0 0 100%;
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Section padding adjustments */
    section.py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    /* Carousel section specific */
    .carousel-item .card {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    }
}

@media (max-width: 576px) {
    /* Very small mobile optimizations */
    .carousel-item .col-md-10.col-lg-8 {
        padding-left: 5px;
        padding-right: 5px;
    }

    section.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    /* Container padding for very small screens */
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Hero Section Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh !important;
        background-attachment: scroll; /* Fix for mobile performance */
        padding: 3rem 0 !important;
    }

    .hero-section .display-4 {
        font-size: 2rem !important;
        line-height: 1.2;
        margin-bottom: 1.5rem !important;
    }

    .hero-section .lead {
        font-size: 1rem !important;
        line-height: 1.4;
        margin-bottom: 2rem !important;
    }

    .hero-section .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 50vh !important;
        padding: 2rem 0 !important;
    }

    .hero-section .display-4 {
        font-size: 1.75rem !important;
        margin-bottom: 1rem !important;
    }

    .hero-section .lead {
        font-size: 0.9rem !important;
        margin-bottom: 1.5rem !important;
    }
}

/* Card Hover Effects */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Logo Styles */
.navbar-logo {
    height: 40px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}

.footer-logo {
    height: 30px;
    width: auto;
    max-width: 90px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}

.admin-logo {
    height: 30px;
    width: auto;
    max-width: 90px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}

/* Legacy navbar-brand img support */
.navbar-brand img {
    height: 40px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}

.sidebar-heading img {
    max-height: 30px;
    width: auto;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}

footer h5 img {
    max-height: 30px;
    width: auto;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}

/* Responsive logo adjustments */
@media (max-width: 768px) {
    .navbar-logo {
        height: 35px;
        max-width: 100px;
    }

    .navbar-brand img {
        height: 35px;
        max-width: 100px;
    }

    .navbar-brand span {
        font-size: 1.1rem;
    }

    .footer-logo {
        height: 25px;
        max-width: 75px;
    }

    .admin-logo {
        height: 25px;
        max-width: 75px;
    }
}

/* Schedule Table Styles */
.table-primary th {
    background-color: #ffffff !important;
    color: rgb(0, 0, 0) !important;
    border-color: #0056b3 !important;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

.schedule-table .badge {
    font-size: 0.85em;
}

.schedule-table td {
    vertical-align: middle;
}

/* Admin Table Improvements */
.btn-toggle-status {
    min-width: 80px;
    transition: all 0.3s ease;
}

.btn-toggle-status:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

html {
  position: relative;
  min-height: 100%;
}

/* body {
  margin-bottom: 60px;
} */

/* Override Bootstrap Colors */
.text-primary {
    color: #000000 !important;
}

.bg-primary {
    background-color: #800000 !important;
}

/* ===== RESPONSIVE NAVBAR STYLES ===== */

/* Header Container */
.header-responsive {
    position: relative;
    z-index: 1000;
}

/* Top Bar Styles */
.top-bar {
    background: linear-gradient(135deg, #800000 0%, #600000 100%);
    color: white;
    padding: 8px 0;
    font-size: 0.875rem;
}

.contact-info a {
    color: white;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #ffd700;
}

.social-links-top .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.social-links-top .social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: #ffd700;
}

/* Main Navbar */
.responsive-navbar {
    padding: 1.25rem 0;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative !important;
    width: 100%;
    z-index: 1030;
}

.responsive-navbar.scrolled {
    padding: 0.75rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(15px);
}

/* Brand Section */
.navbar-brand-wrapper {
    flex: 1;
}

.navbar-brand {
    text-decoration: none !important;
    color: #800000 !important;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: #600000 !important;
    transform: translateY(-1px);
}

.responsive-navbar .navbar-logo {
    height: 60px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.brand-text {
    margin-left: 0.75rem;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #800000;
    line-height: 1.2;
    display: block;
}

.brand-tagline {
    font-size: 0.75rem;
    color: #666;
    line-height: 1;
    display: block;
    margin-top: 2px;
}

/* Mobile Contact Button */
.mobile-contact .btn {
    border-color: #800000;
    color: #800000;
    transition: all 0.3s ease;
}

.mobile-contact .btn:hover {
    background-color: #800000;
    border-color: #800000;
    color: white;
}

/* Custom Hamburger Menu */
.navbar-toggler-icon-custom {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
}

.navbar-toggler-icon-custom .line {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #800000;
    border-radius: 1px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
}

/* Improved hamburger animation */
.navbar-toggler[aria-expanded="true"] .line-1 {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggler[aria-expanded="true"] .line-2 {
    opacity: 0;
    transform: scaleX(0);
}

.navbar-toggler[aria-expanded="true"] .line-3 {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Ensure smooth transition back */
.navbar-toggler[aria-expanded="false"] .line-1,
.navbar-toggler[aria-expanded="false"] .line-2,
.navbar-toggler[aria-expanded="false"] .line-3 {
    transform: none;
    opacity: 1;
}

/* Mobile Header */
.mobile-header {
    padding: 1rem 0;
    text-align: center;
}

.mobile-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.mobile-logo {
    height: 50px;
    width: auto;
}

.mobile-brand-text h6 {
    color: #800000;
    font-weight: 700;
}

/* Navigation Links */
.nav-link-responsive {
    display: flex !important;
    align-items: center;
    padding: 0.75rem 1rem !important;
    color: #333 !important;
    text-decoration: none;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    margin: 0.125rem 0;
}

.nav-link-responsive:hover {
    color: #800000 !important;
    transform: translateY(-1px);
}

.nav-link-responsive.active {
    font-weight: 600 !important;
    position: relative;
}

.nav-link-responsive.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0.5rem;
    z-index: -1;
}

.nav-link-responsive.active .nav-icon {
    color: #000000 !important;
    font-weight: 600;
}

/* Ensure active state overrides hover */
.nav-link-responsive.active:hover {
    color: #800000 !important;
    transform: none !important;
}

.nav-icon {
    width: 18px;
    text-align: center;
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.nav-text {
    flex: 1;
}

/* Dropdown Menu */
.dropdown-menu-responsive {
    border: none;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-radius: 0.75rem;
    padding: 0.75rem;
    margin-top: 0.25rem;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    min-width: 220px;
    z-index: 1050;
    position: absolute;
    top: 100%;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(128, 0, 0, 0.1);
}

.dropdown-menu-responsive.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item-responsive {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    color: #333;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 0.25rem;
    cursor: pointer;
    position: relative;
    min-height: 48px;
    white-space: nowrap;
}

.dropdown-item-responsive:last-child {
    margin-bottom: 0;
}

.dropdown-item-responsive:hover,
.dropdown-item-responsive:focus {
    background-color: rgba(128, 0, 0, 0.1);
    color: #800000 !important;
    transform: translateX(8px);
    text-decoration: none;
    outline: none;
}

.dropdown-item-responsive:active {
    background-color: rgba(128, 0, 0, 0.15);
    transform: translateX(4px);
}

.dropdown-item-responsive i {
    margin-right: 0.75rem;
    width: 18px;
    text-align: center;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.dropdown-item-responsive:hover i {
    color: #800000;
    transform: scale(1.1);
}

/* Dropdown Parent Hover - Controlled by JavaScript only */
/* Removed automatic CSS hover to prevent unwanted dropdown opening */

/* Dropdown Toggle - Let Bootstrap handle it */
.dropdown-toggle {
    cursor: pointer;
}

.dropdown-toggle::after {
    transition: transform 0.3s ease;
}

.dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* Enhanced Dropdown Positioning */
.nav-item.dropdown {
    position: relative;
}

/* Dropdown Hover Area Extension */
.nav-item.dropdown::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: -10px;
    z-index: 1;
    pointer-events: none;
}

.nav-item.dropdown:hover::before {
    pointer-events: auto;
}

/* Mobile Footer */
.mobile-footer {
    padding: 1rem 0;
    text-align: center;
}

.mobile-contact-full .contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.mobile-contact-full a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-contact-full a:hover {
    color: #800000;
}

.mobile-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* WhatsApp Link Styling */
.whatsapp-link {
    color: #25D366;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-link:hover {
    color: #128C7E;
    text-decoration: none;
    transform: scale(1.05);
}

.whatsapp-link i {
    transition: transform 0.3s ease;
}

.whatsapp-link:hover i {
    transform: scale(1.1);
}

/* WhatsApp button styling */
.btn-whatsapp {
    background-color: #25D366;
    border-color: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    border-color: #128C7E;
    color: white;
}

.mobile-social .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #800000;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.mobile-social .social-link:hover {
    background: #600000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(128, 0, 0, 0.3);
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .responsive-navbar .container {
        max-width: 1140px;
    }

    .responsive-navbar .navbar-logo {
        height: 70px;
        max-width: 180px;
    }

    .brand-name {
        font-size: 1.6rem;
    }

    .nav-link-responsive {
        padding: 0.75rem 1.25rem !important;
    }
}

/* Desktop (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .brand-tagline {
        font-size: 0.7rem;
    }

    .nav-link-responsive {
        padding: 0.75rem 1rem !important;
    }
}

/* Fixed Navbar Body Adjustments - REMOVED to fix spacing */

/* Tablet (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .top-bar {
        display: none !important;
    }

    .responsive-navbar {
        padding: 0.75rem 0;
    }

    .responsive-navbar .navbar-logo {
        height: 50px;
        max-width: 130px;
    }

    .brand-name {
        font-size: 1.3rem;
    }

    .brand-tagline {
        display: none !important;
    }

    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }

    .navbar-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
    }

    .nav-link-responsive {
        justify-content: flex-start;
        padding: 1rem !important;
        margin: 0.125rem 0;
    }

    .dropdown-menu-responsive {
        position: static !important;
        transform: none !important;
        box-shadow: none;
        background-color: rgba(128, 0, 0, 0.05);
        margin: 0.5rem 0;
        border-radius: 0.5rem;
        opacity: 1 !important;
        visibility: visible !important;
        min-width: auto;
        width: 100%;
        padding: 0.5rem;
    }

    .dropdown-item-responsive {
        padding: 1rem 1.5rem;
        margin-bottom: 0.125rem;
        min-height: 52px;
        font-size: 0.95rem;
    }

    .dropdown-item-responsive:hover,
    .dropdown-item-responsive:focus {
        transform: translateX(10px);
        background-color: rgba(128, 0, 0, 0.15);
    }

    /* Desktop hover behavior disabled on mobile - controlled by JavaScript */
}

/* Mobile (576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .responsive-navbar .navbar-logo {
        height: 45px;
        max-width: 110px;
    }

    .brand-name {
        font-size: 1.2rem;
    }

    .mobile-contact .btn {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }
}

/* MOBILE DROPDOWN - MINIMAL STYLING */
@media (max-width: 991px) {
    /* Only style dropdown when inside collapsed navbar */
    .navbar-collapse .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin: 0.5rem 0;
        border-left: 4px solid #800000;
        background: rgba(128, 0, 0, 0.05);
    }

    .dropdown-item {
        padding: 12px 16px !important;
        margin: 2px 0 !important;
        color: #333333 !important;
        text-decoration: none !important;
        border-radius: 6px !important;
        transition: all 0.3s ease !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        display: flex !important;
        align-items: center !important;
    }

    .dropdown-item:hover,
    .dropdown-item:focus {
        background: linear-gradient(135deg, #800000 0%, #a00000 100%) !important;
        color: #ffffff !important;
        text-decoration: none !important;
        transform: translateX(4px) !important;
        box-shadow: 0 2px 8px rgba(128, 0, 0, 0.3) !important;
    }

    .dropdown-item i {
        margin-right: 8px !important;
        width: 16px !important;
        text-align: center !important;
        color: #800000 !important;
        transition: color 0.3s ease !important;
        font-size: 14px !important;
    }

    .dropdown-item:hover i {
        color: #ffffff !important;
    }

    /* Animation for dropdown */
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Improve touch targets for mobile */
    .nav-link-responsive {
        min-height: 48px !important;
        display: flex !important;
        align-items: center !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    /* Dropdown toggle styling */
    .dropdown-toggle::after {
        margin-left: 0.5rem !important;
        transition: transform 0.3s ease !important;
    }

    .dropdown-toggle[aria-expanded="true"]::after {
        transform: rotate(180deg) !important;
    }
}

/* Small Mobile (up to 575px) */
@media (max-width: 575px) {
    .responsive-navbar {
        padding: 0.5rem 0;
    }

    .responsive-navbar .navbar-logo {
        height: 42px;
        max-width: 100px;
    }

    .brand-text {
        display: none !important;
    }

    .mobile-contact .btn {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }

    .navbar-toggler-icon-custom {
        width: 20px;
        height: 16px;
    }

    .mobile-header {
        padding: 0.75rem 0;
    }

    .mobile-brand {
        flex-direction: column;
        gap: 0.5rem;
    }

    .mobile-logo {
        height: 45px;
    }

    .nav-link-responsive {
        padding: 0.875rem 0.75rem !important;
        font-size: 0.9rem;
    }

    .nav-icon {
        width: 16px;
        font-size: 0.8rem;
    }

    .mobile-social {
        gap: 0.75rem;
    }

    .mobile-social .social-link {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    /* Small screen dropdown adjustments */
    .dropdown-menu {
        margin: 0.5rem 0 !important;
        padding: 0.5rem !important;
        border-radius: 0.5rem !important;
    }

    .dropdown-item {
        padding: 0.75rem 1rem !important;
        margin-bottom: 0.125rem !important;
        min-height: 44px !important;
        font-size: 0.85rem !important;
    }

    .dropdown-item i {
        margin-right: 0.5rem !important;
        width: 14px !important;
    }
}

/* Extra Small Mobile (up to 375px) */
@media (max-width: 375px) {
    .responsive-navbar .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .responsive-navbar .navbar-logo {
        height: 38px;
        max-width: 90px;
    }

    .mobile-contact .btn {
        display: none;
    }

    .navbar-toggler-icon-custom {
        width: 18px;
        height: 14px;
    }

    .nav-link-responsive {
        padding: 0.75rem 0.5rem !important;
        font-size: 0.85rem;
    }

    .mobile-social {
        gap: 0.5rem;
    }

    .mobile-social .social-link {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .mobile-header {
        padding: 0.5rem 0;
    }

    .mobile-footer {
        padding: 0.5rem 0;
    }

    .nav-link-responsive {
        padding: 0.5rem 1rem !important;
    }
}

/* Touch-friendly styles */
.nav-link-responsive.touch-active {
    background-color: rgba(128, 0, 0, 0.1) !important;
    transform: scale(0.98) !important;
}

/* Improve tap targets for mobile */
@media (max-width: 991px) {
    .nav-link-responsive,
    .dropdown-item {
        min-height: 48px !important;
        padding: 12px 16px !important;
        -webkit-tap-highlight-color: rgba(128, 0, 0, 0.1) !important;
        tap-highlight-color: rgba(128, 0, 0, 0.1) !important;
    }

    .navbar-toggler {
        min-height: 48px !important;
        min-width: 48px !important;
        padding: 12px !important;
        -webkit-tap-highlight-color: transparent !important;
        tap-highlight-color: transparent !important;
    }
}

/* SIMPLE NAVBAR STYLING FOR NEW LAYOUT */
.navbar {
    padding: 1rem 0;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.nav-link {
    padding: 0.5rem 1rem;
    color: #333;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #800000;
}

/* Ensure dropdown arrow is visible */
.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.5rem;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

/* Mobile adjustments for new simple navbar */
@media (max-width: 991px) {

    .navbar-collapse .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin: 0.5rem 0;
        border-left: 4px solid #800000;
        background: rgba(128, 0, 0, 0.05);
        border: 1px solid rgba(128, 0, 0, 0.2);
        border-radius: 0.5rem;
    }

    .dropdown-item {
        padding: 0.75rem 1rem;
        color: #333;
    }

    .dropdown-item:hover {
        background-color: rgba(128, 0, 0, 0.1);
        color: #800000;
    }
}