:root {
    --primary-color: #ff8c42;
    --secondary-color: #4a90e2;
    --tertiary-color: #52c41a;
    --light-color: #f8f9fa;
    --dark-color: #222a33;
    --accent-color: #ffa726;
    --text-light: #6c757d;
    --text-dark: #222a33;
    --success-color: #52c41a;
    --warning-color: #faad14;
    --danger-color: #ff4d4f;
    --gradient-primary: linear-gradient(135deg, #ff8c42 0%, #ffa726 100%);
    --gradient-secondary: linear-gradient(135deg, #4a90e2 0%, #52c41a 100%);
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.16);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Theme-wide link color overrides (Bootstrap 5 variables) */
    --bs-link-color: #ff8a4c;
    --bs-link-hover-color: #ff6b35;

    /* Pagination color variables to avoid Bootstrap blue */
    --bs-pagination-color: #ff8a4c;
    --bs-pagination-hover-color: #ff6b35;
    --bs-pagination-active-bg: #ff8a4c;
    --bs-pagination-active-border-color: #ff8a4c;

    /* Override Bootstrap's primary color to match template theme */
    --bs-primary: #ff8c42;
    --bs-primary-rgb: 255, 140, 66;
    --bs-primary-text-emphasis: #cc5a1a;
    --bs-primary-bg-subtle: #fff2e6;
    --bs-primary-border-subtle: #ffe0cc;
}

/* Screen Reader Text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Alignment */
.alignleft {
    display: inline;
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    display: inline;
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}

/* Captions */
.wp-caption {
    max-width: 100%;
    margin-bottom: 1rem;
}

.wp-caption img {
    display: block;
    max-width: 100%;
    height: auto;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: center;
    padding: 0.5rem 0;
    font-style: italic;
}


.gallery-caption {
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: center;
    padding: 0.25rem 0;
}

/* Comments */
.bypostauthor {
    background-color: rgba(255, 140, 66, 0.05);
    border-left: 3px solid var(--primary-color);
}

/* Global link colors (override Bootstrap blue) */
a {
    color: var(--bs-link-color);
}

a:hover,
a:focus {
    color: var(--bs-link-hover-color);
}

/* Accessibility: Underline links in content areas */
.entry-content a,
.post-content a,
.page-content a,
.comment-content a {
    text-decoration: underline;
    text-decoration-skip-ink: auto;
    text-underline-offset: 2px;
}

.entry-content a:hover,
.post-content a:hover,
.page-content a:hover,
.comment-content a:hover {
    text-decoration: none;
}

/* Exclude buttons and specific UI elements from content underlining */
.entry-content .btn,
.post-content .btn,
.page-content .btn,
.comment-content .btn,
.entry-content .button,
.post-content .button {
    text-decoration: none;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    color: #222a33;
    font-size: 16px;
}



/* Smooth scroll for entire page */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Ensure smooth scrolling works on all browsers */
* {
    scroll-behavior: smooth;
}

/* Prevent scroll conflicts during animations */
body.scrolling {
    overflow-x: hidden;
}

/* Global smooth transitions for all interactive elements */
a,
button,
.btn,
.card,
.blog-card,
.social-icon,
.form-control,
.form-select,
input,
textarea,
select,
.badge,
.alert,
.list-group-item,
.feature-icon-circle {
    transition: all 0.3s ease;
}

/* Enhanced hover transitions for specific elements */
.btn:hover,
.card:hover,
.blog-card:hover,
.social-icon:hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth transform transitions */
.btn,
.card,
.blog-card {
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

/* Typography Improvements */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.3;
    color: #222a33;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--text-light);
    line-height: 1.7;
}

.text-muted {
    color: var(--text-light) !important;
}

/* Button Improvements */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 12px 24px;
    transition: var(--transition);
    border: none;
    text-transform: none;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    background: var(--gradient-primary);
    filter: brightness(0.9);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* Read More button styling */
.btn-link.text-primary {
    color: var(--primary-color) !important;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.btn-link.text-primary:hover {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateX(5px);
}

.btn-link.text-primary i {
    transition: var(--transition);
}

.btn-link.text-primary:hover i {
    transform: translateX(3px);
}

.logo-text {
    font-family: 'Chewy', cursive;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    font-weight: 700;
    text-shadow: none;
}

/* ===== TOPBAR STYLES - COMPLETELY REDESIGNED ===== */

/* Base Topbar Styles */
.topbar {
    background: var(--gradient-primary);
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    position: relative;
    z-index: 1000;
    overflow: hidden;
}

.topbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.topbar:hover::before {
    left: 100%;
}

/* Desktop Topbar Styles (1200px and above) */
.topbar-desktop {
    padding: 12px 0;
}

.topbar-contact,
.topbar-info {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.topbar-info {
    justify-content: flex-end;
}

.topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 6px;
}

.topbar-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.topbar-item i {
    font-size: 0.875rem;
    width: 16px;
    text-align: center;
}

.topbar-social {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.social-link i {
    font-size: 0.75rem;
}

/* Tablet Topbar Styles (768px to 1199px) */
.topbar-tablet {
    padding: 10px 0;
}

.topbar-content-tablet {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.topbar-right {
    flex-wrap: wrap;
}

/* Mobile Topbar Styles (767px and below) */
.topbar-mobile {
    padding: 8px 0;
}

.topbar-mobile-row {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.topbar-mobile-contact,
.topbar-mobile-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.topbar-item-mobile {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.topbar-item-mobile:hover {
    background: rgba(255, 255, 255, 0.1);
}

.topbar-item-mobile i {
    font-size: 0.8rem;
    width: 14px;
    text-align: center;
}

.topbar-social-mobile {
    display: flex;
    align-items: center;
    gap: 6px;
}

.social-link-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.social-link-mobile:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.social-link-mobile i {
    font-size: 0.7rem;
}

/* ===== TOPBAR RESPONSIVE MEDIA QUERIES ===== */

/* Large Desktop (1400px and above) */
@media (min-width: 1400px) {
    .topbar-desktop {
        padding: 14px 0;
    }

    .topbar-item {
        font-size: 0.9rem;
        gap: 10px;
    }

    .social-link {
        width: 34px;
        height: 34px;
    }

    .social-link i {
        font-size: 0.8rem;
    }
}

/* Desktop (1200px to 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {

    .topbar-contact,
    .topbar-info {
        gap: 1.5rem;
    }
}

/* Tablet Landscape (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .topbar-tablet {
        padding: 9px 0;
    }

    .topbar-content-tablet {
        gap: 0.8rem;
    }

    .topbar-left,
    .topbar-right {
        gap: 1.2rem;
    }

    .topbar-item {
        font-size: 0.85rem;
        gap: 6px;
    }

    .social-link {
        width: 30px;
        height: 30px;
    }
}

/* Tablet Portrait (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .topbar-tablet {
        padding: 8px 0;
    }

    .topbar-content-tablet {
        flex-direction: column;
        gap: 0.5rem;
    }

    .topbar-left,
    .topbar-right {
        gap: 1rem;
        justify-content: center;
    }

    .topbar-item {
        font-size: 0.8rem;
        gap: 5px;
    }

    .social-link {
        width: 28px;
        height: 28px;
    }

    .social-link i {
        font-size: 0.7rem;
    }
}

/* Mobile Large (576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .topbar-mobile {
        padding: 7px 0;
    }

    .topbar-mobile-row {
        gap: 0.8rem;
        padding: 3px 0;
    }

    .topbar-mobile-contact,
    .topbar-mobile-info {
        gap: 0.8rem;
    }

    .topbar-item-mobile {
        font-size: 0.75rem;
        gap: 5px;
    }

    .social-link-mobile {
        width: 26px;
        height: 26px;
    }

    .social-link-mobile i {
        font-size: 0.65rem;
    }
}

/* Mobile Small (480px to 575px) */
@media (min-width: 480px) and (max-width: 575px) {
    .topbar-mobile {
        padding: 6px 0;
    }

    .topbar-mobile-row {
        gap: 0.6rem;
        padding: 2px 0;
    }

    .topbar-mobile-contact,
    .topbar-mobile-info {
        gap: 0.6rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .topbar-item-mobile {
        font-size: 0.7rem;
        gap: 4px;
        padding: 1px 4px;
    }

    .topbar-item-mobile i {
        font-size: 0.75rem;
        width: 12px;
    }

    .social-link-mobile {
        width: 24px;
        height: 24px;
    }

    .social-link-mobile i {
        font-size: 0.6rem;
    }
}

/* Mobile Extra Small (below 480px) */
@media (max-width: 479px) {
    .topbar-mobile {
        padding: 5px 0;
    }

    .topbar-mobile-row {
        gap: 0.4rem;
        padding: 2px 0;
        flex-direction: column;
    }

    .topbar-mobile-contact,
    .topbar-mobile-info {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: space-between;
        width: 100%;
    }

    .topbar-item-mobile {
        font-size: 0.85rem;
        gap: 3px;
        padding: 1px 3px;
    }

    .topbar-item-mobile i {
        font-size: 0.7rem;
        width: 10px;
    }

    .topbar-social-mobile {
        gap: 4px;
        margin-top: 2px;
    }

    .social-link-mobile {
        width: 22px;
        height: 22px;
    }

    .social-link-mobile i {
        font-size: 0.55rem;
    }
}




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

/* Base Navbar Styles */
.navbar {
    background-color: white !important;
    box-shadow: var(--shadow-light);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-nav .nav-link,
.navbar-expand-lg .navbar-nav .nav-link {
    color: #222a33;
    font-weight: 500;
    padding: 12px 16px;
    position: relative;
    border-radius: var(--border-radius);
    transition: var(--transition);
    margin: 0 4px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active,
.navbar-nav .dropdown-toggle:hover,
.navbar-nav .dropdown-toggle.active {
    color: var(--primary-color);
    background-color: rgba(255, 140, 66, 0.1);
    border-radius: var(--border-radius);
}

/* Active nav link underline - ONLY for regular nav links, NOT dropdown toggles */
.navbar-nav .nav-link.active:not(.dropdown-toggle):after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* ===== DROPDOWN MENU STYLES ===== */

/* Dropdown Menu Styling */
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-medium);
    border-radius: var(--border-radius);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    background: var(--content-bg);
    min-width: 200px;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    color: #222a33;
    border-left: 3px solid transparent;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(255, 140, 66, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.dropdown-item i {
    width: 20px;
    color: var(--primary-color);
}

.dropdown-item.active i {
    color: white !important;
}

.dropdown-divider {
    margin: 0.75rem 1.5rem;
    border-color: rgba(255, 140, 66, 0.15);
    border-width: 1px;
}

/* ===== DROPDOWN TOGGLE STYLES ===== */

/* Desktop Dropdown Toggle Styling */
.navbar-nav .dropdown-toggle {
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    position: relative !important;
    flex-wrap: nowrap !important;
}

.navbar-nav .dropdown-toggle::after {
    content: '\f107' !important;
    /* FontAwesome down arrow */
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
    border: none !important;
    margin-left: 0.25rem !important;
    transition: transform 0.3s ease !important;
    font-size: 0.75rem !important;
    vertical-align: middle !important;
    display: inline-block !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
}

.navbar-nav .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg) !important;
}

/* Force caret visibility for ALL dropdown toggles */
.navbar-nav .dropdown-toggle::after,
.navbar-nav .dropdown-toggle.active::after,
.navbar-nav .dropdown-toggle:hover::after,
.navbar-nav .dropdown-toggle:focus::after {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Override Bootstrap's default caret completely */
.dropdown-toggle::after {
    border-top: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    border-left: 0 !important;
    content: '\f107' !important;
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
    vertical-align: middle !important;
    margin-left: 0.25rem !important;
    margin-right: 0 !important;
    font-size: 0.75rem !important;
    transition: transform 0.3s ease !important;
    display: inline-block !important;
    line-height: 1 !important;
}

/* ===== SPLIT DROPDOWN TOGGLE BUTTON (Accessible) ===== */

/* Nav item with children uses flexbox for link + button layout */
.navbar-nav .nav-item.dropdown,
.navbar-nav .nav-item.dropend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
}

/* Desktop: nav-link and toggle button inline */
.navbar-nav .nav-item.dropdown > .nav-link,
.navbar-nav .nav-item.dropend > .nav-link {
    flex: 0 1 auto;
}

/* Dropdown menu positioning - full width below the link row */
.navbar-nav .nav-item.dropdown > .dropdown-menu {
    flex-basis: 100%;
    position: absolute;
    top: 100%;
    left: 0;
}
/* Dropdown toggle icon - inside the nav-link */
.dropdown-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin-left: 4px;
    padding: 4px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    color: inherit;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 0.6rem;
    overflow: hidden;
}

/* Hover - highlight chevron */
.dropdown-toggle-icon:hover {
    color: var(--primary-color);
    background-color: rgba(255, 140, 66, 0.15);
}

/* Focus (keyboard) - show outline */
.dropdown-toggle-icon:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 1px;
    color: var(--primary-color);
}

/* Chevron icon styling */
.dropdown-toggle-icon i {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    line-height: 1;
    transition: transform 0.3s ease;
    color: inherit;
}

/* Rotate chevron when expanded */
.dropdown-toggle-icon[aria-expanded="true"] i {
    transform: rotate(180deg);
}

/* Nested dropdown styling */
.dropdown-menu .dropend {
    position: relative;
}

/* Nested dropdown toggle icon */
.dropdown-menu .dropdown-toggle-icon {
    margin-left: 8px;
    padding: 3px;
    width: 18px;
    height: 18px;
    font-size: 0.55rem;
}

.dropdown-menu .dropdown-toggle-icon i {
    transform: rotate(-90deg);
}

.dropdown-menu .dropdown-toggle-icon[aria-expanded="true"] i {
    transform: rotate(90deg);
}

/* Nested dropdown menu positioning */
.dropdown-menu .dropend > .dropdown-menu {
    position: absolute;
    top: 0;
    left: 100%;
}

/* ===== DROPDOWN ACTIVE STATES ===== */

/* Override Bootstrap's default blue active state completely */
.dropdown-item.active,
.dropdown-item:active,
.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item:active,
.navbar-nav .dropdown-item.active,
.navbar-nav .dropdown-item:active {
    background-color: var(--primary-color) !important;
    background-image: none !important;
    color: white !important;
    border: none !important;
    outline: none;
    border-left: 4px solid rgba(255, 255, 255, 0.3) !important;
    padding-left: 1.25rem !important;
    font-weight: 600 !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* Ensure active dropdown items maintain proper styling */
.dropdown-item.active:hover,
.dropdown-item.active:focus,
.navbar-nav .dropdown-item.active:hover,
.navbar-nav .dropdown-item.active:focus {
    background-color: var(--accent-color) !important;
    color: white !important;
    background-image: none !important;
    transform: translateX(2px) !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15) !important;
}

/* Force override any Bootstrap active states */
.dropdown-menu>.active>a,
.dropdown-menu>.active>a:hover,
.dropdown-menu>.active>a:focus,
.dropdown-menu>li>a.active,
.dropdown-menu>li>a.active:hover,
.dropdown-menu>li>a.active:focus {
    background-color: var(--primary-color) !important;
    color: white !important;
    background-image: none !important;
}

/* ===== NAVBAR RESPONSIVE STYLES ===== */

/* Mobile Navbar Styles (767px and below) */
@media (max-width: 767px) {
    .navbar {
        padding: 0.75rem 0 !important;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .navbar-nav .nav-link {
        padding: 12px 16px;
        margin: 2px 0;
        color: #222a33 !important;
        font-weight: 500;
        font-size: 1rem;
        border-radius: var(--border-radius);
        transition: all 0.3s ease;
        border-bottom: none !important;
        text-decoration: none !important;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .navbar-nav .nav-link:hover {
        background-color: rgba(255, 138, 61, 0.1);
        color: var(--primary-color) !important;
        text-decoration: none !important;
    }

    .navbar-nav .nav-link.active {
        background-color: rgba(255, 138, 61, 0.15);
        color: var(--primary-color) !important;
        font-weight: 600;
        border-bottom: none !important;
        text-decoration: none !important;
    }

    .navbar-collapse {
        background: white;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow-medium);
        margin-top: 1rem;
        padding: 1rem;
        width: 100%;
        max-width: 100%;
        /* Make menu scrollable when content is taller than viewport */
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }

    /* Lock body scroll when mobile menu is open */
    body.mobile-menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

    .navbar-nav {
        width: 100%;
    }

    /* Mobile: Nav items with dropdown use flexbox */
    .navbar-nav .nav-item.dropdown {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .navbar-nav .nav-item.dropdown > .nav-link {
        flex: 1;
        width: auto;
    }

    .navbar-toggler {
        border: none;
        padding: 0.5rem;
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.5);
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }

    /* Mobile Dropdown Toggle Styling */
    .navbar-nav .dropdown-toggle {
        border-bottom: none !important;
        text-decoration: none !important;
        position: relative;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
    }

    .navbar-nav .dropdown-toggle:hover,
    .navbar-nav .dropdown-toggle:focus,
    .navbar-nav .dropdown-toggle[aria-expanded="true"] {
        background-color: rgba(255, 138, 61, 0.1);
        color: var(--primary-color) !important;
        border-bottom: none !important;
        text-decoration: none !important;
    }

    .navbar-nav .dropdown-toggle::after {
        content: '\f107' !important;
        /* FontAwesome down arrow */
        font-family: 'Font Awesome 6 Free' !important;
        font-weight: 900 !important;
        border: none !important;
        margin-left: auto !important;
        transition: transform 0.3s ease !important;
        font-size: 0.75rem !important;
        display: inline-block !important;
        vertical-align: 0 !important;
        line-height: 1 !important;
    }

    .navbar-nav .dropdown-toggle[aria-expanded="true"]::after {
        transform: rotate(180deg) !important;
    }

    /* Mobile dropdown toggle icon - larger touch target */
    .navbar-nav .dropdown-toggle-icon {
        margin-left: auto;
        padding: 8px;
        width: 32px;
        height: 32px;
        font-size: 0.7rem;
        background-color: rgba(255, 140, 66, 0.1);
    }

    .navbar-nav .dropdown-toggle-icon:hover,
    .navbar-nav .dropdown-toggle-icon:focus {
        background-color: rgba(255, 140, 66, 0.25);
    }

    /* Nested mobile dropdown icon */
    .navbar-nav .dropdown-menu .dropdown-toggle-icon {
        width: 28px;
        height: 28px;
        font-size: 0.6rem;
    }

    /* Mobile Dropdown Menu */
    .navbar-nav .dropdown-menu {
        position: static !important;
        transform: none !important;
        border: none;
        box-shadow: none;
        background: rgba(248, 249, 250, 0.95);
        margin: 0.5rem 0 0 1rem;
        border-radius: var(--border-radius);
        display: none;
        /* Hidden by default */
        opacity: 0;
        visibility: hidden;
        width: calc(100% - 1rem);
        float: none;
        transition: all 0.3s ease;
        border-left: 3px solid var(--primary-color);
        padding: 0.5rem 0;
    }

    /* Show dropdown when toggled */
    .navbar-nav .dropdown-menu.show {
        display: block !important;
        opacity: 1;
        visibility: visible;
    }

    /* Mobile Nested Submenu Support (All Levels: 2, 3, 4, etc.) */
    .navbar-nav .dropdown-menu .dropdown-menu,
    .navbar-nav .dropdown-menu .dropdown-menu .dropdown-menu,
    .navbar-nav .dropdown-menu .dropdown-menu .dropdown-menu .dropdown-menu {
        position: static !important;
        margin-left: 0.75rem;
        margin-top: 0.25rem;
        margin-bottom: 0.25rem;
        padding-left: 0.5rem;
        border-left: 2px solid var(--primary-color);
        background: transparent; /* Clean look - no gray background */
        border-radius: 0;
        box-shadow: none;
        display: none;
        opacity: 0;
        visibility: hidden;
    }

    .navbar-nav .dropdown-menu .dropdown-menu.show,
    .navbar-nav .dropdown-menu .dropdown-menu .dropdown-menu.show,
    .navbar-nav .dropdown-menu .dropdown-menu .dropdown-menu .dropdown-menu.show {
        display: block !important;
        opacity: 1;
        visibility: visible;
    }

    /* Nested items styling - smaller text for hierarchy */
    .navbar-nav .dropdown-menu .dropdown-menu .dropdown-item {
        font-size: 0.9rem;
        padding: 0.6rem 0.75rem;
        color: #444;
    }

    .navbar-nav .dropdown-menu .dropdown-menu .dropdown-menu .dropdown-item {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
        color: #555;
    }

    /* Nested toggle items with children - slightly bolder */
    .navbar-nav .dropdown-menu .dropdown-toggle {
        font-weight: 600;
        color: #222a33;
    }

    /* Nested dropdown toggle arrow */
    .navbar-nav .dropdown-menu .dropdown-toggle::after {
        content: '\f107' !important;
        font-family: 'Font Awesome 6 Free' !important;
        font-weight: 900 !important;
        border: none !important;
        transition: transform 0.3s ease !important;
        font-size: 0.7rem;
        color: var(--primary-color);
    }

    .navbar-nav .dropdown-menu .dropdown-toggle.show::after {
        transform: rotate(180deg) !important;
    }

    /* Active/expanded nested toggle highlight */
    .navbar-nav .dropdown-menu .dropdown-toggle.show {
        color: var(--primary-color);
        background: rgba(255, 140, 66, 0.08);
        border-radius: var(--border-radius);
    }

    .navbar-nav .dropdown-item {
        padding: 0.75rem 1rem;
        color: #222a33;
        font-weight: 500;
        border-radius: 0;
        margin: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .navbar-nav .dropdown-item:last-child {
        border-bottom: none;
    }

    .navbar-nav .dropdown-item:hover,
    .navbar-nav .dropdown-item:focus {
        background-color: rgba(255, 140, 66, 0.1) !important;
        color: var(--primary-color) !important;
    }

    .navbar-nav .dropdown-item.active,
    .navbar-nav .dropdown-item:active {
        background-color: var(--primary-color) !important;
        color: white !important;
        border-left: 4px solid rgba(255, 255, 255, 0.3) !important;
        font-weight: 600 !important;
        background-image: none !important;
    }

    /* Center Book Appointment button in mobile menu */
    .navbar-nav .nav-item.ms-lg-3 {
        margin-left: 0 !important;
        margin-top: 1rem;
        text-align: center;
        display: flex;
        justify-content: center;
    }

    .navbar-nav .nav-item.ms-lg-3 .btn {
        margin: 0 auto;
        min-width: 200px;
        text-align: center;
    }
}

/* Tablet/iPad Navbar Styles (768px to 1024px) */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
    .navbar {
        padding: 1rem 0;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .dropdown-menu {
        border-radius: var(--border-radius);
        box-shadow: var(--shadow-medium);
    }
}

/* Desktop Navbar Enhancements (1025px and above) */
@media only screen and (min-width: 1025px) {
    .navbar-nav .nav-link:hover {
        transform: translateY(-1px);
    }

    .navbar-nav .nav-link:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* Enable Hover Dropdown on Desktop */
@media (min-width: 992px) {
    .navbar .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
        animation: dropdownFadeIn 0.3s ease;
    }


    /* Nested Dropdown Support (Levels 2+) */
    .dropdown-menu .dropdown-menu {
        top: 0;
        left: 100%;
        margin-top: -5px; /* Subtle offset for alignment */
        /*margin-left: 0.1rem;*/ /* Gap prevention */
    }

    /* Show nested menu on hover over dropend parent */
    .dropdown-menu .dropend:hover > .dropdown-menu {
        display: block;
        animation: dropdownFadeIn 0.3s ease;
    }

    /* Reverse direction for menus near edge */
    .dropdown-menu .dropdown-menu.submenu-reverse {
        left: auto;
        right: 100%;
        margin-left: 0;
        margin-right: 0.1rem;
    }
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== HERO SLIDER/CAROUSEL STYLES ===== */

/* Base Slider Section */
.slider-section {
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Carousel Height - Default 80vh */
.slider-section .carousel,
.slider-section .carousel-inner,
.slider-section .carousel-item {
    height: 80vh;
    min-height: 400px;
    max-height: 900px;
}

/* Image Styling - Full Cover Without Distortion */
.slider-section .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Caption Styling - Centered Vertically */
.slider-section .carousel-caption {
    position: absolute;
    bottom: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, 50%);
    max-width: 700px;
    width: 90%;
    padding: 2rem 2.5rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    z-index: 10;
}

.slider-section .carousel-caption h1 {
    color: white;
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.slider-section .carousel-caption .btn {
    margin-top: 0.5rem;
}

/* Carousel Controls Styling */
.slider-section .carousel-control-prev,
.slider-section .carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    opacity: 0.8;
    transition: var(--transition);
}

.slider-section .carousel-control-prev {
    left: 20px;
}

.slider-section .carousel-control-next {
    right: 20px;
}

.slider-section .carousel-control-prev:hover,
.slider-section .carousel-control-next:hover {
    background: var(--primary-color);
    opacity: 1;
}

.slider-section .carousel-control-prev-icon,
.slider-section .carousel-control-next-icon {
    width: 24px;
    height: 24px;
}

/* Tablet Responsive - 768px to 991px */
@media (max-width: 991px) {

    .slider-section .carousel,
    .slider-section .carousel-inner,
    .slider-section .carousel-item {
        height: 60vh;
        min-height: 350px;
        max-height: 600px;
    }

    .slider-section .carousel-caption {
        padding: 1.5rem 2rem;
        max-width: 85%;
        width: auto;
    }

    .slider-section .carousel-caption h1 {
        font-size: 1.75rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
        line-height: 1.3;
    }

    .slider-section .carousel-control-prev,
    .slider-section .carousel-control-next {
        width: 50px;
        height: 50px;
    }

    .slider-section .carousel-control-prev {
        left: 15px;
    }

    .slider-section .carousel-control-next {
        right: 15px;
    }
}

/* Mobile Responsive - Below 768px */
@media (max-width: 767px) {

    .slider-section .carousel,
    .slider-section .carousel-inner,
    .slider-section .carousel-item {
        height: 50vh;
        min-height: 300px;
        max-height: 450px;
    }

    .slider-section .carousel-caption {
        padding: 1rem 1.5rem;
        max-width: 95%;
    }

    .slider-section .carousel-caption h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .slider-section .carousel-caption .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .slider-section .carousel-control-prev,
    .slider-section .carousel-control-next {
        width: 40px;
        height: 40px;
    }

    .slider-section .carousel-control-prev {
        left: 10px;
    }

    .slider-section .carousel-control-next {
        right: 10px;
    }

    .slider-section .carousel-control-prev-icon,
    .slider-section .carousel-control-next-icon {
        width: 18px;
        height: 18px;
    }
}

/* Small Mobile - Below 480px */
@media (max-width: 479px) {

    .slider-section .carousel,
    .slider-section .carousel-inner,
    .slider-section .carousel-item {
        height: 45vh;
        min-height: 250px;
        max-height: 350px;
    }

    .slider-section .carousel-caption h1 {
        font-size: 1.25rem;
    }

    .slider-section .carousel-control-prev,
    .slider-section .carousel-control-next {
        width: 35px;
        height: 35px;
    }
}

/* ===== HEADER OVERLAP MODE ===== */
/* When enabled, header overlays the slider with transparent background */

/* Hide topbar when enabled via customizer */
body.hide-topbar .topbar {
    display: none !important;
}

/* Make navbar absolute positioned and transparent */
body.header-overlap .navbar {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Remove sticky positioning in overlap mode (before scroll) */
body.header-overlap .navbar.sticky-top {
    position: absolute !important;
}

/* When scrolled, make navbar solid */
body.header-overlap .navbar.scrolled {
    position: fixed !important;
    background: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Light text for transparent header */
body.header-overlap .navbar:not(.scrolled) .navbar-brand,
body.header-overlap .navbar:not(.scrolled) .navbar-brand .logo-text,
body.header-overlap .navbar:not(.scrolled) .nav-link {
    color: white !important;
}

/* Hover state for nav links on transparent header */
body.header-overlap .navbar:not(.scrolled) .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Dropdown menu styling in overlap mode */
body.header-overlap .navbar:not(.scrolled) .dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

body.header-overlap .navbar:not(.scrolled) .dropdown-item {
    color: #333;
}

/* Mobile navbar toggler icon - white on transparent */
body.header-overlap .navbar:not(.scrolled) .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

body.header-overlap .navbar:not(.scrolled) .navbar-toggler-icon {
    filter: invert(1);
}

/* When scrolled, revert to normal navbar colors */
body.header-overlap .navbar.scrolled .navbar-brand,
body.header-overlap .navbar.scrolled .navbar-brand .logo-text,
body.header-overlap .navbar.scrolled .nav-link {
    color: inherit !important;
}

body.header-overlap .navbar.scrolled .navbar-toggler {
    border-color: rgba(0, 0, 0, 0.1);
}

body.header-overlap .navbar.scrolled .navbar-toggler-icon {
    filter: none;
}

/* Adjust slider to account for no topbar */
body.header-overlap .slider-section {
    margin-top: 0 !important;
}

/* Responsive adjustments for overlap mode */
@media (max-width: 991px) {

    /* Mobile collapsed menu background */
    body.header-overlap .navbar:not(.scrolled) .navbar-collapse {
        background: rgba(0, 0, 0, 0.9);
        padding: 1rem;
        border-radius: 0 0 10px 10px;
    }

    body.header-overlap .navbar.scrolled .navbar-collapse {
        background: white;
    }
}

/* ===== SERVICE SECTION STYLES ===== */

/* Base Service Styles */
.service-card {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: none;
    box-shadow: var(--shadow-light);
    background: var(--content-bg);
    will-change: transform;
    transform: translateY(0);
    padding: 2rem;
    text-align: center;
    height: 100%;
}

.service-card:hover {
    box-shadow: var(--shadow-heavy);
    transform: translateY(-8px);
}

.service-card .card-body {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
}

/* Service Icon Styling */
.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: var(--transition);
    color: var(--primary-color);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Service Content Styling */
.service-card h5 {
    color: #222a33;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.service-card .btn {
    margin-top: auto;
    align-self: center;
}

/* ===== SERVICE RESPONSIVE STYLES ===== */

/* Mobile Service Styles (767px and below) */
@media (max-width: 767px) {
    .service-card {
        margin-bottom: 1.5rem;
        padding: 1.5rem;
        min-height: 280px;
    }

    .service-card .card-body {
        padding: 1.5rem 1rem;
        min-height: 250px;
    }

    .service-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .service-card h5 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .service-card p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1.25rem;
    }

    /* Disable hover effects on mobile */
    .service-card:hover {
        transform: none;
        box-shadow: var(--shadow-light);
    }

    .service-card:hover .service-icon {
        transform: none;
    }
}

/* Tablet/iPad Service Styles (768px to 1024px) */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
    .service-card {
        padding: 1.75rem;
        margin-bottom: 2rem;
        min-height: 320px;
    }

    .service-card .card-body {
        padding: 1.75rem 1.25rem;
        min-height: 280px;
    }

    .service-icon {
        font-size: 2.75rem;
        margin-bottom: 1.25rem;
    }

    .service-card h5 {
        font-size: 1.2rem;
        margin-bottom: 0.9rem;
    }

    .service-card p {
        font-size: 0.92rem;
        line-height: 1.55;
        margin-bottom: 1.4rem;
    }

    .service-card:hover {
        transform: translateY(-5px);
    }

    .service-card:hover .service-icon {
        transform: scale(1.05) rotate(3deg);
    }
}

/* Desktop Service Styles (1025px and above) */
@media only screen and (min-width: 1025px) {
    .service-card {
        padding: 2rem;
        margin-bottom: 2rem;
        min-height: 350px;
    }

    .service-card .card-body {
        padding: 2rem 1.5rem;
        min-height: 300px;
    }

    .service-icon {
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }

    .service-card h5 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .service-card p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    /* Enhanced hover effects for desktop */
    .service-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 40px rgba(255, 140, 66, 0.2);
    }

    .service-card:hover .service-icon {
        transform: scale(1.1) rotate(5deg);
    }
}

/* Extra Small Mobile Service Styles (576px and below) */
@media (max-width: 576px) {
    .service-card {
        padding: 1.25rem;
        margin-bottom: 1.25rem;
        min-height: 260px;
    }

    .service-card .card-body {
        padding: 1.25rem 0.75rem;
        min-height: 220px;
    }

    .service-icon {
        font-size: 2.25rem;
        margin-bottom: 0.75rem;
    }

    .service-card h5 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }

    .service-card p {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }

    .service-card .btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
}

/* ===== CALLOUT SECTION STYLES ===== */

/* Base Callout Styles */
.callout-section {
    background: var(--gradient-primary);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.callout-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="60" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
    z-index: 1;
    pointer-events: none;
}

.callout-section .container {
    position: relative;
    z-index: 2;
}

.callout-section h2 {
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.callout-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.callout-section .btn {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
    font-weight: 600;
    padding: 12px 30px;
}

.callout-section .btn:hover {
    background: transparent;
    color: white;
    border-color: white;
}

/* ===== SIDEBAR WIDGET STYLES ===== */

/* Widget Area Container */
.widget-area {
    position: sticky;
    top: 100px;
}

/* Ensure sidebar cards have visible background */
.card.bg-light {
    background-color: #ffffff !important;
}

/* Base Widget Card Styles */
.widget-area .widget,
.sidebar .widget {
    background: var(--body-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-light);
    border: none;
    transition: var(--transition);
}

.widget-area .widget:hover,
.sidebar .widget:hover {
    box-shadow: var(--shadow-medium);
}

/* Widget Title */
.widget-area .widget-title,
.sidebar .widget-title,
.widget-area h4.widget-title,
.sidebar h4.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
    position: relative;
}

/* Widget Lists */
.widget-area .widget ul,
.sidebar .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-area .widget ul li,
.sidebar .widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.widget-area .widget ul li:last-child,
.sidebar .widget ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget-area .widget ul li:first-child,
.sidebar .widget ul li:first-child {
    padding-top: 0;
}

.widget-area .widget ul li a,
.sidebar .widget ul li a {
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    font-weight: 500;
}

.widget-area .widget ul li a:hover,
.sidebar .widget ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Widget List Item Count Badge */
.widget-area .widget ul li a .count,
.sidebar .widget ul li a .count,
.widget-area .widget ul li a .badge,
.sidebar .widget ul li a .badge {
    background: var(--gradient-primary);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-weight: 600;
}

/* Search Widget */
.widget-area .widget_search,
.sidebar .widget_search {
    background: var(--gradient-primary);
    padding: 1.5rem;
}

.widget-area .widget_search .widget-title,
.sidebar .widget_search .widget-title {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.widget-area .widget_search .search-form,
.sidebar .widget_search .search-form {
    display: flex;
    gap: 0;
}

.widget-area .widget_search .search-field,
.sidebar .widget_search .search-field {
    flex: 1;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.widget-area .widget_search .search-submit,
.sidebar .widget_search .search-submit {
    background: var(--dark-color);
    border: none;
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    transition: var(--transition);
}

.widget-area .widget_search .search-submit:hover,
.sidebar .widget_search .search-submit:hover {
    background: white;
    color: var(--primary-color);
}

/* Categories Widget */
.widget-area .widget_categories ul li,
.sidebar .widget_categories ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Recent Posts Widget */
.widget-area .widget_recent_entries ul li,
.sidebar .widget_recent_entries ul li {
    padding: 0.75rem 0;
}

.widget-area .widget_recent_entries ul li a,
.sidebar .widget_recent_entries ul li a {
    display: block;
    font-weight: 600;
    line-height: 1.4;
}

.widget-area .widget_recent_entries ul li .post-date,
.sidebar .widget_recent_entries ul li .post-date {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* Recent Comments Widget */
.widget-area .widget_recent_comments ul,
.sidebar .widget_recent_comments ul,
.widget-area .wp-block-latest-comments,
.sidebar .wp-block-latest-comments {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-area .widget_recent_comments ul li,
.sidebar .widget_recent_comments ul li,
.widget-area .wp-block-latest-comments__comment,
.sidebar .wp-block-latest-comments__comment {
    padding: 0.875rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    padding-left: 2rem;
}

.widget-area .widget_recent_comments ul li:first-child,
.sidebar .widget_recent_comments ul li:first-child,
.widget-area .wp-block-latest-comments__comment:first-child,
.sidebar .wp-block-latest-comments__comment:first-child {
    padding-top: 0;
}

.widget-area .widget_recent_comments ul li:last-child,
.sidebar .widget_recent_comments ul li:last-child,
.widget-area .wp-block-latest-comments__comment:last-child,
.sidebar .wp-block-latest-comments__comment:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget-area .widget_recent_comments ul li::before,
.sidebar .widget_recent_comments ul li::before,
.widget-area .wp-block-latest-comments__comment::before,
.sidebar .wp-block-latest-comments__comment::before {
    content: '\f075';
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free', 'FontAwesome';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.875rem;
    color: var(--primary-color);
    font-size: 0.85rem;
}

.widget-area .widget_recent_comments ul li:first-child::before,
.sidebar .widget_recent_comments ul li:first-child::before,
.widget-area .wp-block-latest-comments__comment:first-child::before,
.sidebar .wp-block-latest-comments__comment:first-child::before {
    top: 0;
}

.widget-area .widget_recent_comments .comment-author-link,
.sidebar .widget_recent_comments .comment-author-link,
.widget-area .wp-block-latest-comments__comment-author,
.sidebar .wp-block-latest-comments__comment-author {
    font-weight: 600;
    color: var(--dark-color);
}

.widget-area .widget_recent_comments ul li a,
.sidebar .widget_recent_comments ul li a,
.widget-area .wp-block-latest-comments__comment-link,
.sidebar .wp-block-latest-comments__comment-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.widget-area .widget_recent_comments ul li a:hover,
.sidebar .widget_recent_comments ul li a:hover,
.widget-area .wp-block-latest-comments__comment-link:hover,
.sidebar .wp-block-latest-comments__comment-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.widget-area .wp-block-latest-comments__comment-date,
.sidebar .wp-block-latest-comments__comment-date {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.widget-area .wp-block-latest-comments__comment-excerpt p,
.sidebar .wp-block-latest-comments__comment-excerpt p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0.5rem 0 0;
    line-height: 1.5;
}

/* Tag Cloud Widget */
.widget-area .widget_tag_cloud .tagcloud,
.sidebar .widget_tag_cloud .tagcloud,
.widget-area .tagcloud,
.sidebar .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.widget-area .widget_tag_cloud .tagcloud a,
.sidebar .widget_tag_cloud .tagcloud a,
.widget-area .tagcloud a,
.sidebar .tagcloud a {
    background: white;
    color: var(--text-dark);
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.widget-area .widget_tag_cloud .tagcloud a:hover,
.sidebar .widget_tag_cloud .tagcloud a:hover,
.widget-area .tagcloud a:hover,
.sidebar .tagcloud a:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Calendar Widget */
.widget-area .widget_calendar,
.sidebar .widget_calendar,
.widget_block.widget_block .wp-block-calendar {
    overflow: hidden;
}

.widget-area .widget_calendar table,
.sidebar .widget_calendar table,
.wp-block-calendar table,
#wp-calendar {
    width: 100%;
    text-align: center;
    border-collapse: collapse;
    border-spacing: 0;
    margin: 0;
    table-layout: fixed;
}

.widget-area .widget_calendar caption,
.sidebar .widget_calendar caption,
.wp-block-calendar caption,
#wp-calendar caption {
    background: var(--gradient-primary);
    color: white;
    font-weight: 700;
    padding: 0.75rem;
    text-align: center;
    font-size: 1rem;
    border-radius: 8px 8px 0 0;
}

.widget-area .widget_calendar thead,
.sidebar .widget_calendar thead,
.wp-block-calendar thead,
#wp-calendar thead {
    background: var(--dark-color);
}

.widget-area .widget_calendar th,
.sidebar .widget_calendar th,
.wp-block-calendar th,
#wp-calendar th {
    background: var(--dark-color);
    color: white;
    padding: 0.6rem 0.3rem;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.widget-area .widget_calendar td,
.sidebar .widget_calendar td,
.wp-block-calendar td,
#wp-calendar td {
    padding: 0.5rem 0.3rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.9rem;
    vertical-align: middle;
}

.widget-area .widget_calendar tbody tr:nth-child(even),
.sidebar .widget_calendar tbody tr:nth-child(even),
.wp-block-calendar tbody tr:nth-child(even),
#wp-calendar tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

.widget-area .widget_calendar td a,
.sidebar .widget_calendar td a,
.wp-block-calendar td a,
#wp-calendar td a {
    color: white;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--gradient-primary);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.widget-area .widget_calendar td a:hover,
.sidebar .widget_calendar td a:hover,
.wp-block-calendar td a:hover,
#wp-calendar td a:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-light);
}

.widget-area .widget_calendar td#today,
.sidebar .widget_calendar td#today,
.wp-block-calendar td#today,
#wp-calendar td#today {
    background: rgba(255, 140, 66, 0.1);
    font-weight: 700;
    color: var(--primary-color);
}

.widget-area .widget_calendar tfoot,
.sidebar .widget_calendar tfoot,
.wp-block-calendar tfoot,
#wp-calendar tfoot {
    background: #f8f9fa;
}

.widget-area .widget_calendar tfoot td,
.sidebar .widget_calendar tfoot td,
.wp-block-calendar tfoot td,
#wp-calendar tfoot td {
    border: none;
    padding: 0.5rem;
}

.widget-area .widget_calendar tfoot a,
.sidebar .widget_calendar tfoot a,
.wp-block-calendar tfoot a,
#wp-calendar tfoot a {
    display: inline-block;
    width: auto;
    height: auto;
    background: transparent;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
}

.widget-area .widget_calendar tfoot a:hover,
.sidebar .widget_calendar tfoot a:hover,
.wp-block-calendar tfoot a:hover,
#wp-calendar tfoot a:hover {
    transform: none;
    text-decoration: underline;
}

/* Calendar navigation links */
.widget-area .widget_calendar nav,
.sidebar .widget_calendar nav,
.wp-calendar-nav {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
}

.wp-calendar-nav a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.85rem;
}

.wp-calendar-nav a:hover {
    text-decoration: underline;
}

/* RSS Widget */
.widget-area .widget_rss .rss-widget-icon,
.sidebar .widget_rss .rss-widget-icon {
    color: var(--primary-color);
}

/* Text Widget */
.widget-area .widget_text p,
.sidebar .widget_text p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 0;
}

/* Navigation Menu Widget */
.widget-area .widget_nav_menu ul li a,
.sidebar .widget_nav_menu ul li a {
    position: relative;
    padding-left: 1rem;
}

.widget-area .widget_nav_menu ul li a::before,
.sidebar .widget_nav_menu ul li a::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free', 'FontAwesome';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
    transition: var(--transition);
}

.widget-area .widget_nav_menu ul li a:hover::before,
.sidebar .widget_nav_menu ul li a:hover::before {
    left: 3px;
}

/* Block Editor Widget Styles */
.widget-area .wp-block-search,
.sidebar .wp-block-search {
    display: flex;
    gap: 0;
}

.widget-area .wp-block-search__input,
.sidebar .wp-block-search__input {
    flex: 1;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    padding: 0.75rem 1rem;
}

.widget-area .wp-block-search__button,
.sidebar .wp-block-search__button {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    transition: var(--transition);
}

.widget-area .wp-block-search__button:hover,
.sidebar .wp-block-search__button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* ===== FOOTER SECTION STYLES ===== */

/* Base Footer Styles */
footer {
    background-color: #222a33;
    color: white;
    padding: 60px 0 30px;
}

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

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

/* Footer contact icons */
footer .text-primary {
    color: var(--primary-color) !important;
}

footer i.text-primary {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

footer p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

footer .social-icon {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

footer .social-icon:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Footer Widget Styles */
.footer-widget .widget {
    margin-bottom: 1.5rem;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.footer-widget .widget:last-child {
    margin-bottom: 0;
}

.footer-widget .widget-title,
.footer-widget h5.widget-title {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 0.75rem;
    border-bottom: none;
}

.footer-widget .widget-title::after,
.footer-widget h5.widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget ul li {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widget ul li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.footer-widget ul li a,
.footer-widget a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.footer-widget ul li a::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free', 'FontAwesome';
    font-weight: 900;
    margin-right: 0.5rem;
    font-size: 0.75rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.footer-widget ul li a:hover,
.footer-widget a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-widget ul li a:hover::before {
    transform: translateX(3px);
}

.footer-widget p {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Footer Widget Social Icons */
.footer-widget .social-icons,
.footer-widget .social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.footer-widget .social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1rem;
    transition: var(--transition);
}

.footer-widget .social-icon:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Footer Widget Contact Info */
.footer-widget .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.75);
}

.footer-widget .contact-item:last-child {
    margin-bottom: 0;
}

.footer-widget .contact-item i {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 1rem;
    flex-shrink: 0;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.footer-widget .contact-item span {
    padding-top: 0.4rem;
}

/* Footer Widget Newsletter Form */
.footer-widget form {
    margin-top: 1rem;
}

.footer-widget form input[type="email"],
.footer-widget form input[type="text"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.footer-widget form input[type="email"]::placeholder,
.footer-widget form input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-widget form input[type="email"]:focus,
.footer-widget form input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
}

.footer-widget form button,
.footer-widget form input[type="submit"] {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--border-radius);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.footer-widget form button:hover,
.footer-widget form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 140, 66, 0.4);
}

/* Footer Block Editor Widget Styles */
.footer-widget .wp-block-heading {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-widget .wp-block-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.footer-widget .wp-block-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget .wp-block-list li {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widget .wp-block-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.footer-widget .wp-block-list li a {
    color: rgba(255, 255, 255, 0.75);
}

.footer-widget .wp-block-list li a:hover {
    color: var(--primary-color);
}

/* Footer Image/Logo Widget */
.footer-widget img {
    max-width: 180px;
    height: auto;
    margin-bottom: 1rem;
}

/* Footer Calendar Widget (Dark Background) */
.footer-widget .widget_calendar table,
.footer-widget .wp-block-calendar table,
.footer-widget #wp-calendar {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.footer-widget .widget_calendar caption,
.footer-widget .wp-block-calendar caption {
    background: var(--gradient-primary);
}

.footer-widget .widget_calendar thead,
.footer-widget .wp-block-calendar thead,
.footer-widget #wp-calendar thead {
    background: rgba(0, 0, 0, 0.3);
}

.footer-widget .widget_calendar th,
.footer-widget .wp-block-calendar th,
.footer-widget #wp-calendar th {
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
}

.footer-widget .widget_calendar td,
.footer-widget .wp-block-calendar td,
.footer-widget #wp-calendar td {
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

.footer-widget .widget_calendar tbody tr:nth-child(even),
.footer-widget .wp-block-calendar tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

.footer-widget .widget_calendar td#today,
.footer-widget .wp-block-calendar td#today {
    background: rgba(255, 140, 66, 0.2);
    color: var(--primary-color);
}

.footer-widget .widget_calendar tfoot,
.footer-widget .wp-block-calendar tfoot {
    background: rgba(0, 0, 0, 0.2);
}

.footer-widget .widget_calendar tfoot a,
.footer-widget .wp-block-calendar tfoot a,
.footer-widget .wp-calendar-nav a {
    color: var(--primary-color);
}

.footer-widget .wp-calendar-nav {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 0 8px 8px;
}

/* Footer Recent Comments Widget */
.footer-widget .widget_recent_comments ul,
.footer-widget .wp-block-latest-comments {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget .widget_recent_comments ul li,
.footer-widget .wp-block-latest-comments__comment {
    padding: 0.875rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    padding-left: 2rem;
    color: rgba(255, 255, 255, 0.75);
}

.footer-widget .widget_recent_comments ul li:first-child,
.footer-widget .wp-block-latest-comments__comment:first-child {
    padding-top: 0;
}

.footer-widget .widget_recent_comments ul li:last-child,
.footer-widget .wp-block-latest-comments__comment:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.footer-widget .widget_recent_comments ul li::before,
.footer-widget .wp-block-latest-comments__comment::before {
    content: '\f075';
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free', 'FontAwesome';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.875rem;
    color: var(--primary-color);
    font-size: 0.85rem;
}

.footer-widget .widget_recent_comments ul li:first-child::before,
.footer-widget .wp-block-latest-comments__comment:first-child::before {
    top: 0;
}

.footer-widget .widget_recent_comments .comment-author-link,
.footer-widget .wp-block-latest-comments__comment-author {
    font-weight: 600;
    color: white;
}

.footer-widget .widget_recent_comments ul li a,
.footer-widget .wp-block-latest-comments__comment-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.footer-widget .widget_recent_comments ul li a:hover,
.footer-widget .wp-block-latest-comments__comment-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Override the arrow icon for recent comments links */
.footer-widget .widget_recent_comments ul li a::before {
    display: none;
}

.footer-widget .wp-block-latest-comments__comment-date {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.25rem;
}

.footer-widget .wp-block-latest-comments__comment-excerpt p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0.5rem 0 0;
    line-height: 1.5;
}

/* ===== WIDGET RESPONSIVE STYLES ===== */

/* Tablet Widget Styles (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .widget-area {
        position: relative;
        top: 0;
    }

    .widget-area .widget,
    .sidebar .widget {
        padding: 1.25rem;
    }

    .footer-widget .widget-title,
    .footer-widget h5.widget-title {
        font-size: 1.1rem;
    }
}

/* Mobile Widget Styles (767px and below) */
@media (max-width: 767px) {
    .widget-area {
        position: relative;
        top: 0;
        margin-top: 2rem;
    }

    .widget-area .widget,
    .sidebar .widget {
        padding: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .widget-area .widget-title,
    .sidebar .widget-title {
        font-size: 1rem;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }

    .widget-area .widget ul li a,
    .sidebar .widget ul li a {
        font-size: 0.95rem;
    }

    .widget-area .widget_tag_cloud .tagcloud a,
    .sidebar .widget_tag_cloud .tagcloud a {
        padding: 0.35rem 0.7rem;
        font-size: 0.8rem;
    }

    /* Footer Widget Mobile */
    .footer-widget {
        margin-bottom: 2rem;
    }

    .footer-widget .widget-title,
    .footer-widget h5.widget-title {
        font-size: 1.1rem;
        margin-bottom: 1.25rem;
    }

    .footer-widget .widget-title::after,
    .footer-widget h5.widget-title::after {
        width: 35px;
        height: 2px;
    }

    .footer-widget ul li {
        margin-bottom: 0.6rem;
        padding-bottom: 0.6rem;
    }

    .footer-widget .social-icon {
        width: 38px;
        height: 38px;
    }

    .footer-widget .contact-item i {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
}

/* Extra Small Mobile Widget Styles (576px and below) */
@media (max-width: 576px) {

    .widget-area .widget,
    .sidebar .widget {
        padding: 1rem;
        border-radius: 10px;
    }

    .widget-area .widget-title,
    .sidebar .widget-title {
        font-size: 0.95rem;
    }

    .footer-widget .widget-title,
    .footer-widget h5.widget-title {
        font-size: 1rem;
    }

    .footer-widget form input[type="email"],
    .footer-widget form input[type="text"] {
        padding: 0.65rem 0.85rem;
    }

    .footer-widget form button,
    .footer-widget form input[type="submit"] {
        padding: 0.65rem 1.25rem;
    }
}

/* ===== PRICING/CALLOUT/CLIENT/FOOTER RESPONSIVE STYLES ===== */

/* Mobile Styles (767px and below) */
@media (max-width: 767px) {

    /* Pricing Mobile */
    .pricing-card {
        margin-bottom: 2rem;
    }

    .pricing-card.popular {
        transform: none;
        margin-top: 1rem;
        margin-bottom: 2rem;
    }

    .pricing-card:hover {
        transform: none;
        box-shadow: var(--shadow-light);
    }

    .pricing-price {
        font-size: 2.5rem;
    }

    .pricing-header {
        padding: 1.25rem;
    }

    .pricing-card .card-body {
        padding: 1.5rem 1rem;
    }

    /* Callout Mobile */
    .callout-section {
        padding: 60px 0;
        text-align: center;
    }

    .callout-section h2 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .callout-section p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .callout-section .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    /* Client Mobile */
    .clients-section {
        padding: 40px 0;
    }

    .clients-section .col-6,
    .clients-section .col-md-4,
    .clients-section .col-lg-2 {
        min-height: 80px;
        margin-bottom: 1rem;
    }

    .client-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1.5rem;
    }

    .client-logo {
        max-height: 50px;
    }

    /* Footer Mobile */
    .footer {
        text-align: center;
    }

    .footer .col-md-3,
    .footer .col-md-4 {
        margin-bottom: 2rem;
    }

    footer {
        padding: 3rem 0 1.5rem 0 !important;
    }

    footer h5 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    footer p {
        font-size: 0.9rem;
    }
}

/* Tablet/iPad Styles (768px to 1024px) */
@media only screen and (min-width: 768px) and (max-width: 1024px) {

    /* Pricing Tablet */
    .pricing-card {
        margin-bottom: 2rem;
    }

    .pricing-card.popular {
        transform: scale(1.03);
    }

    .pricing-price {
        font-size: 2.75rem;
    }

    .pricing-header {
        padding: 1.4rem;
    }

    /* Callout Tablet */
    .callout-section {
        padding: 70px 0;
    }

    .callout-section h2 {
        font-size: 2rem;
    }

    .callout-section p {
        font-size: 1.05rem;
    }

    /* Client Tablet */
    .clients-section {
        padding: 50px 0;
    }

    .clients-section .col-6,
    .clients-section .col-md-4,
    .clients-section .col-lg-2 {
        min-height: 90px;
    }

    .client-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 1.75rem;
    }

    .client-logo {
        max-height: 55px;
    }

    /* Footer Tablet */
    footer {
        padding: 50px 0 25px;
    }
}

/* Desktop Styles (1025px and above) */
@media only screen and (min-width: 1025px) {

    /* Pricing Desktop */
    .pricing-card {
        margin-bottom: 2rem;
    }

    .pricing-card.popular {
        transform: scale(1.05);
    }

    .pricing-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 50px rgba(255, 140, 66, 0.25);
    }

    .pricing-card.popular:hover {
        transform: scale(1.05) translateY(-8px);
    }

    .pricing-price {
        font-size: 3rem;
    }

    .pricing-header {
        padding: 1.5rem;
    }

    .pricing-card .card-body {
        padding: 2rem 1.5rem;
    }

    /* Callout Desktop */
    .callout-section {
        padding: 80px 0;
    }

    .callout-section h2 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .callout-section p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .callout-section .btn {
        padding: 12px 30px;
        font-size: 1rem;
    }

    /* Client Desktop */
    .clients-section {
        padding: 60px 0;
    }

    .clients-section .col-6,
    .clients-section .col-md-4,
    .clients-section .col-lg-2 {
        min-height: 100px;
    }

    .client-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 2rem;
    }

    .client-logo {
        max-height: 120px;
    }

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

    /* Footer Desktop */
    footer {
        padding: 60px 0 30px;
    }

    footer h5 {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }

    footer p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* Extra Small Mobile Styles (576px and below) */
@media (max-width: 576px) {

    /* Pricing Extra Small */
    .pricing-card {
        margin-bottom: 1.5rem;
    }

    .pricing-card .card-body {
        padding: 1.25rem 0.75rem;
    }

    .pricing-price {
        font-size: 2.25rem;
    }

    .pricing-header {
        padding: 1rem;
    }

    .pricing-card .list-group-item {
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }

    /* Callout Extra Small */
    .callout-section {
        padding: 50px 0;
    }

    .callout-section h2 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .callout-section p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    .callout-section .btn {
        padding: 8px 20px;
        font-size: 0.85rem;
    }

    /* Client Extra Small */
    .clients-section {
        padding: 30px 0;
    }

    .clients-section .col-6,
    .clients-section .col-md-4,
    .clients-section .col-lg-2 {
        min-height: 70px;
        margin-bottom: 0.5rem;
    }

    .client-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1rem;
    }

    .client-logo {
        max-height: 60px;
    }

    /* Footer Extra Small */
    footer {
        padding: 2.5rem 0 1rem 0 !important;
    }

    footer h5 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    footer p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .footer-links a {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
}

/* Special Spacing and Layout Adjustments */
@media (max-width: 767px) {

    /* Special spacing for CTA sections */
    .callout-section {
        padding: 2.5rem 0 !important;
        margin: 2rem 0 !important;
    }

    /* Ensure proper spacing between sections */
    .pricing-section {
        padding: 3rem 0 !important;
    }

    .clients-section {
        padding: 2rem 0 !important;
    }
}

.hero-section {

    .hero-section {

        .hero-section {

            .hero-section {

                .hero-section {
                    height: 50vh;
                    min-height: 600px;
                    color: white;
                }



                .section-title {
                    position: relative;
                    margin-bottom: 3rem;
                    font-weight: 700;
                    color: #222a33;
                    font-size: 2.5rem;
                }

                .section-title:after {
                    content: '';
                    position: absolute;
                    bottom: -20px;
                    left: 50%;
                    transform: translateX(-50%);
                    width: 60px;
                    height: 4px;
                    background: var(--gradient-primary);
                    border-radius: 2px;
                }









                .blog-card {
                    border-radius: var(--border-radius-lg);
                    overflow: hidden;
                    transition: var(--transition);
                    border: none;
                    box-shadow: var(--shadow-light);
                    background: white;
                }

                .blog-card:hover {
                    box-shadow: var(--shadow-heavy);
                }







                .social-icon {
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    width: 44px;
                    height: 44px;
                    border-radius: 50%;
                    background-color: rgba(255, 255, 255, 0.1);
                    color: white;
                    margin-right: 12px;
                    transition: var(--transition);
                    text-decoration: none;
                    font-size: 1.1rem;
                    border: 2px solid rgba(255, 140, 66, 0.3);
                    margin-right: 8px;
                }

                .social-icon:hover {
                    background: var(--primary-color);
                    transform: translateY(-3px);
                    color: white;
                    box-shadow: var(--shadow-medium);
                    border-color: var(--primary-color);
                }

                /* Contact page social icons - Brand Colors */
                .card .social-icon {
                    background: transparent;
                    border: none;
                    font-size: 1.5rem;
                    width: auto;
                    height: auto;
                    border-radius: 0;
                    margin-right: 20px;
                    padding: 0;
                    transition: all 0.3s ease;
                }

                .card .social-icon:hover {
                    transform: translateY(-2px) scale(1.1);
                    background: transparent;
                }

                /* Facebook icon - Blue */
                .card .social-icon .fa-facebook-f {
                    color: #1877f2;
                }

                .card .social-icon:hover .fa-facebook-f {
                    color: #145dbf;
                }

                /* Twitter icon - Blue */
                .card .social-icon .fa-twitter {
                    color: #1da1f2;
                }

                .card .social-icon:hover .fa-twitter {
                    color: #1a91da;
                }

                /* Instagram icon - Pink */
                .card .social-icon .fa-instagram {
                    color: #e4405f;
                }

                .card .social-icon:hover .fa-instagram {
                    color: #c13584;
                }

                /* LinkedIn icon - Blue */
                .card .social-icon .fa-linkedin-in {
                    color: #0077b5;
                }

                .card .social-icon:hover .fa-linkedin-in {
                    color: #005885;
                }

                .copyright {
                    background-color: rgba(0, 0, 0, 0.2);
                    padding: 25px 0 20px;
                    margin-top: 40px;
                }

                /* Responsive Design Improvements */
                @media (max-width: 767px) {
                    .section-title {
                        font-size: 2rem;
                        margin-bottom: 2rem;
                    }

                    /* Page header tablet spacing */
                    section.page-header-section {
                        padding: 2rem 0 !important;
                    }

                    .hero-section {
                        height: 70vh;
                        min-height: 500px;
                    }



                    .btn-lg {
                        padding: 14px 28px;
                        font-size: 1rem;
                    }
                }









                .masonry-grid {
                    grid-template-columns: repeat(2, 1fr);
                    grid-gap: 15px;
                    padding: 10px;
                    grid-auto-rows: minmax(180px, auto);
                    align-items: start;
                }

                .masonry-item.tall {
                    grid-row-end: span 2;
                }









                /* Enhanced mobile touch interactions */
                .btn {
                    min-height: 44px;
                    /* iOS recommended touch target size */
                    padding: 12px 24px;
                }

                /* Mobile form improvements */
                .form-control {
                    padding: 12px 16px;
                    font-size: 16px;
                    /* Prevents zoom on iOS */
                }

                /* Contact page mobile optimization */
                .contact-icon-bubble {
                    width: 50px;
                    height: 50px;
                    font-size: 1rem;
                }

                /* Pagination mobile optimization */
                .pagination .page-link {
                    padding: 8px 12px;
                    font-size: 0.9rem;
                    min-width: 40px;
                    margin: 0 2px;
                }

                /* Blog pagination mobile */
                .blog-pagination .page-item .page-link {
                    padding: 10px 14px !important;
                    font-size: 0.9rem !important;
                    min-width: 40px !important;
                }

                /* Accordion mobile optimization */
                .accordion-button {
                    padding: 1rem;
                    font-size: 0.95rem;
                }

                .accordion-body {
                    padding: 1rem;
                }
            }

            @media (max-width: 576px) {
                .section-title {
                    font-size: 1.75rem;
                    margin-bottom: 1.5rem;
                }

                h1 {
                    font-size: 2rem;
                    line-height: 1.2;
                }

                h2 {
                    font-size: 1.75rem;
                    line-height: 1.3;
                }

                h3 {
                    font-size: 1.5rem;
                    line-height: 1.4;
                }

                .logo-text {
                    font-size: 1.5rem;
                }





                .btn-lg {
                    width: 100%;
                    margin-bottom: 1rem;
                    padding: 16px 24px;
                }

                /* Hero section mobile optimization */
                .hero-section {
                    height: 60vh;
                    min-height: 450px;
                }



                .hero-content h1 {
                    font-size: 2rem;
                    margin-bottom: 1rem;
                }









                .hero-content p {
                    font-size: 1rem;
                    margin-bottom: 1.5rem;
                }



                /* Card mobile optimization */
                .card {
                    margin-bottom: 1.5rem;
                }

                .blog-card {
                    margin-bottom: 1.5rem;
                }

                /* Contact form mobile optimization */
                .form-floating>label {
                    font-size: 0.9rem;
                }




            }

            /* Extra small screens (phones in landscape) */
            @media (max-width: 480px) {
                .container {
                    padding-left: 15px;
                    padding-right: 15px;
                }

                .section-title {
                    font-size: 1.5rem;
                    margin-bottom: 1rem;
                }

                .btn {
                    font-size: 0.9rem;
                    padding: 10px 20px;
                }

                .btn-lg {
                    font-size: 1rem;
                    padding: 14px 24px;
                }

                .hero-content h1 {
                    font-size: 1.75rem;
                }

                .contact-icon-bubble {
                    width: 45px;
                    height: 45px;
                    font-size: 0.9rem;
                }

                .pagination .page-link {
                    padding: 6px 10px;
                    font-size: 0.85rem;
                    min-width: 36px;
                }

                /* Blog pagination small screens */
                .blog-pagination .page-item .page-link {
                    padding: 8px 12px !important;
                    font-size: 0.85rem !important;
                    min-width: 36px !important;
                }

                /* Special spacing for team section on extra small mobile */
                section.team-section-spacing {
                    padding: 60px 0 100px 0 !important;
                    margin-bottom: 30px !important;
                }
            }



            .hero-content {
                padding-top: 2rem;
            }

            .hero-content h1 {
                font-size: 2rem;
                margin-bottom: 0.5rem;
            }

            .hero-content p {
                font-size: 0.95rem;
                margin-bottom: 1rem;
            }
        }

        /* High DPI screens optimization */
        @media (-webkit-min-device-pixel-ratio: 2),
        (min-resolution: 192dpi) {
            .logo-image {
                image-rendering: -webkit-optimize-contrast;
                image-rendering: crisp-edges;
            }
        }

        /* Smooth scrolling with reduced motion support */
        html {
            scroll-behavior: smooth;
        }

        @media (prefers-reduced-motion: reduce) {
            html {
                scroll-behavior: auto;
            }

            *,
            *::before,
            *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
        }

        /* Enhanced Focus styles for accessibility */
        .btn:focus,

        .social-icon:focus,
        .form-control:focus,
        .accordion-button:focus {
            outline: 2px solid var(--primary-color);
            outline-offset: 2px;
            box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.2);
        }

        /* Touch-friendly improvements */
        @media (hover: none) and (pointer: coarse) {

            /* Touch devices */
            .btn:hover {
                transform: none;
                /* Disable hover transforms on touch devices */
            }

            .card:hover {
                transform: none;
            }







            /* Better touch feedback */
            .btn:active {
                transform: scale(0.98);
                transition: transform 0.1s ease;
            }

            .card:active {
                transform: scale(0.99);
                transition: transform 0.1s ease;
            }
        }



        /* Improved card hover effects */
        .blog-card {
            will-change: transform;
        }

        /* Better form styling */
        .form-control {
            border-radius: var(--border-radius);
            border: 2px solid #e9ecef;
            padding: 12px 16px;
            transition: var(--transition);
        }

        .form-control:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 0.2rem rgba(255, 140, 66, 0.25);
        }
























        /* Breadcrumb styles moved to assets/css/breadcrumbs.css */

        /* Modern Blog Pagination Design - Orange Theme */
        .pagination {
            margin: 3rem 0 2rem 0;
            justify-content: center;
        }

        .pagination .page-link {
            border-radius: 8px;
            margin: 0 2px;
            border: 1px solid #dee2e6;
            color: #6c757d;
            transition: all 0.3s ease;
            padding: 10px 14px;
            font-weight: 500;
            min-width: 44px;
            text-align: center;
            background: white;
            box-shadow: none;
        }

        .pagination .page-link:hover {
            background: rgba(255, 138, 76, 0.1);
            border-color: var(--link-color);
            color: var(--link-color);
            transform: none;
            box-shadow: none;
        }

        .pagination .page-item.active .page-link {
            background: var(--link-color) !important;
            border-color: var(--link-color) !important;
            color: white !important;
            font-weight: 600;
            box-shadow: none;
            transform: none;
        }

        .pagination .page-item.active .page-link:hover {
            background: var(--link-hover-color) !important;
            border-color: var(--link-hover-color) !important;
            color: white !important;
            transform: none;
        }

        .pagination .page-item.disabled .page-link {
            background: #f8f9fa;
            border-color: #dee2e6;
            color: #6c757d;
            cursor: not-allowed;
            opacity: 0.5;
        }

        .pagination .page-item.disabled .page-link:hover {
            background: #f8f9fa;
            border-color: #dee2e6;
            color: #6c757d;
            transform: none;
        }

        /* Blog page pagination wrapper styling - Override all Bootstrap defaults */
        .blog-pagination .pagination {
            gap: 6px !important;
        }

        .blog-pagination .page-item .page-link {
            border-radius: 10px !important;
            border: 1px solid #eaeaea !important;
            background: #fff !important;
            color: #6c757d !important;
            padding: 12px 16px !important;
            min-width: 44px !important;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
            transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease !important;
        }

        .blog-pagination .page-item .page-link:hover {
            background: rgba(255, 138, 76, 0.08) !important;
            color: var(--link-color) !important;
            border-color: #ffd7c2 !important;
            transform: translateY(-2px) !important;
            box-shadow: 0 8px 18px rgba(255, 138, 76, 0.15) !important;
        }

        .blog-pagination .page-item.active .page-link {
            background: var(--gradient-primary) !important;
            color: #fff !important;
            border-color: var(--link-hover-color) !important;
            font-weight: 600 !important;
            box-shadow: 0 10px 22px rgba(255, 107, 53, 0.3) !important;
        }

        .blog-pagination .page-item.disabled .page-link {
            background: #f3f4f6 !important;
            border-color: #e5e7eb !important;
            color: #a1a1aa !important;
            box-shadow: none !important;
        }

        /* Make Previous/Next a bit wider */
        .blog-pagination .page-item:first-child .page-link,
        .blog-pagination .page-item:last-child .page-link {
            padding: 12px 20px !important;
        }

        border-color: #dee2e6;
        color: #6c757d;
        transform: none;
    }

    /* Previous/Next buttons - Simplified */
    .pagination .page-item:first-child .page-link,
    .pagination .page-item:last-child .page-link {
        color: var(--link-color);
        font-weight: 600;
        padding: 12px 20px;
    }

    .pagination .page-item:first-child .page-link:hover,
    .pagination .page-item:last-child .page-link:hover {
        color: var(--link-hover-color);
        background: rgba(255, 138, 76, 0.1);
    }

    .pagination .page-item.disabled:first-child .page-link,
    .pagination .page-item.disabled:last-child .page-link {
        background: #f8f9fa;
        border-color: #dee2e6;
        color: #6c757d;
        opacity: 0.5;
    }

    .pagination .page-item.disabled:first-child .page-link:hover,
    .pagination .page-item.disabled:last-child .page-link:hover {
        background: #f8f9fa;
        border-color: #dee2e6;
        color: #6c757d;
    }

    box-shadow: none;
}

/* Contact page icon bubbles */
.contact-icon-bubble {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    flex-shrink: 0;
}

.contact-icon-bubble:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* Ensure all icons use consistent colors */
.text-info {
    color: var(--primary-color) !important;
}

.bg-info {
    background-color: var(--primary-color) !important;
}

.border-info {
    border-color: var(--primary-color) !important;
}

/* Override any blue colored elements to use primary color */
.text-blue,
.text-primary {
    color: var(--primary-color) !important;
}

.bg-blue,
.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Social media icons consistent styling */
.social-icons a {
    color: var(--primary-color);
    transition: var(--transition);
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icons a:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Feature icon circles */
.feature-icon-circle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    flex-shrink: 0;
}

.feature-icon-circle:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.feature-icon-circle i {
    color: white !important;
}

/* Print styles */
@media print {
    .topbar,

    .btn {
        display: none !important;
    }

    .container {
        max-width: none !important;
        padding: 0 !important;
    }

    .section-title {
        color: #000 !important;
        page-break-after: avoid;
    }

    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #e9ecef;
        --text-light: #adb5bd;
        --light-color: #343a40;
        --dark-color: #f8f9fa;
    }

    body.dark-mode {
        background-color: #1a1a1a;
        color: #e9ecef;
    }

    body.dark-mode .card {
        background-color: #2d3748;
        border-color: #4a5568;
    }




}

/* Enhanced FAQ Section Styling */
.faq-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="paw" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23ff8c42" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23paw)"/></svg>');
    z-index: 0;
}

.faq-section .container {
    position: relative;
    z-index: 1;
}

.faq-section h3 {
    color: #222a33 !important;
    /* Fallback + force dark color */
    color: var(--dark-color, #222a33) !important;
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
}

.faq-section h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Enhanced accordion styling with smooth transitions */
.accordion {
    --bs-accordion-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-button {
    background: var(--content-bg);
    border: none;
    border-radius: var(--border-radius-lg) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    padding: 1.5rem 2rem;
    position: relative;
    overflow: hidden;
    color: var(--dark-color);
    border-left: 4px solid transparent;
}

.accordion-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.accordion-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    border-left-color: var(--primary-color);
}

.accordion-button:hover::before {
    opacity: 0.05;
}

.accordion-button:not(.collapsed) {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 12px 35px rgba(255, 140, 66, 0.25);
    transform: translateY(-3px);
    border-left-color: var(--accent-color);
}

.accordion-button:not(.collapsed)::before {
    opacity: 1;
}

.accordion-button:focus {
    box-shadow: 0 12px 35px rgba(255, 140, 66, 0.25);
    border-color: var(--primary-color);
    outline: none;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ff8c42'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 1.5rem;
    height: 1.5rem;
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(180deg);
}

.accordion-item {
    border: none;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    background: var(--content-bg);
}

.accordion-item:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.accordion-item:last-child {
    margin-bottom: 0;
}

.accordion-collapse {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.accordion-body {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.95) 100%);
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    padding: 2rem;
    border-top: 1px solid rgba(255, 140, 66, 0.1);
    animation: fadeInUp 0.4s ease-out;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #222a33;
    position: relative;
}

.accordion-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 2rem;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* FAQ Icons styling */
.accordion-button i {
    font-size: 1.1rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) i {
    opacity: 1;
    transform: scale(1.1);
}

.accordion-body .row {
    margin-top: 1rem;
}

.accordion-body h6 {
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.accordion-body ul li {
    padding: 0.25rem 0;
    font-size: 0.95rem;
}

.accordion-body .text-primary {
    color: var(--primary-color) !important;
}

/* Responsive FAQ improvements */
@media (max-width: 767px) {
    .faq-section {
        padding: 60px 0;
    }

    .faq-section h3 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .accordion-button {
        padding: 1.25rem 1.5rem;
        font-size: 1rem;
    }

    .accordion-button i {
        font-size: 1rem;
    }

    .accordion-body {
        padding: 1.5rem;
    }

    .accordion-body .row {
        margin-top: 0.5rem;
    }

    .accordion-body .col-md-6 {
        margin-bottom: 1rem;
    }
}

/* Smooth FAQ Accordion Animation */
.accordion-collapse {
    transition: all 0.4s ease-in-out !important;
}

.accordion-button {
    transition: all 0.3s ease;
    border: none;
    background: var(--content-bg);
    box-shadow: none;
    font-weight: 600;
    color: #222a33;
    padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, rgba(255, 140, 66, 0.1), rgba(255, 107, 53, 0.1));
    color: var(--primary-color);
    box-shadow: none;
}

.accordion-button::after {
    transition: transform 0.3s ease;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ff8c42'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    transform: rotate(180deg);
}

.accordion-body {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    animation: fadeInUp 0.4s ease;
}

@media (max-width: 576px) {
    .accordion-button {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }

    .accordion-body {
        padding: 1.25rem;
    }

    .accordion-body h6 {
        font-size: 0.9rem;
    }

    .accordion-body ul li {
        font-size: 0.85rem;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Enhanced alert styling */
.alert {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow-light);
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
}

/* Improved badge styling */
.badge {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 0.5em 0.75em;
}

.badge.bg-primary {
    background: var(--gradient-primary) !important;
}



/* Enhanced list group */
.list-group-item {
    border-radius: var(--border-radius) !important;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.list-group-item:hover {
    background-color: rgba(255, 140, 66, 0.05);
    transform: translateX(5px);
}

/* Go To Top Button - Clean Orange Design */
.scroll-to-top {
    position: fixed !important;
    left: auto !important;
    right: 20px !important;
    bottom: 20px !important;
    width: 50px !important;
    height: 50px !important;
    background: var(--gradient-primary) !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.2rem !important;
    z-index: 9999 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3) !important;
}

.scroll-to-top:hover {
    background: var(--gradient-primary) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4) !important;
}

.scroll-to-top.show {
    display: flex !important;
}

.scroll-to-top i {
    color: white !important;
    font-size: 1.2rem !important;
    line-height: 1 !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 15px !important;
        right: 15px !important;
        width: 45px !important;
        height: 45px !important;
    }

    .scroll-to-top i {
        font-size: 1.1rem !important;
    }
}





/* Loading spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 140, 66, 0.3);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes elegantFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
        filter: blur(1px);
    }

    60% {
        opacity: 0.8;
        transform: scale(1.02) translateY(-2px);
        filter: blur(0);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

@keyframes smoothFadeOut {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }

    100% {
        opacity: 0;
        transform: scale(0.9) translateY(25px);
        filter: blur(1px);
    }
}

@keyframes overlayFadeIn {
    0% {
        opacity: 0;
        backdrop-filter: blur(0px);
    }

    100% {
        opacity: 1;
        backdrop-filter: blur(8px);
    }
}

@keyframes spinnerBounceIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }

    60% {
        opacity: 1;
        transform: translateY(-5px) scale(1.05);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes spinnerPop {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Enhanced Stellar-style Spinner Animations */
@keyframes stellarSpinnerPop {
    0% {
        opacity: 0;
        transform: scale(0.6) translateY(20px) rotateX(15deg);
        filter: blur(3px);
    }

    60% {
        opacity: 0.8;
        transform: scale(1.05) translateY(-5px) rotateX(-2deg);
        filter: blur(0.5px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0) rotateX(0deg);
        filter: blur(0);
    }
}

@keyframes stellarSpin {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }

    25% {
        transform: rotate(90deg) scale(1.05);
        opacity: 0.9;
    }

    50% {
        transform: rotate(180deg) scale(1);
        opacity: 0.8;
    }

    75% {
        transform: rotate(270deg) scale(1.05);
        opacity: 0.9;
    }

    100% {
        transform: rotate(360deg) scale(1);
        opacity: 1;
    }
}

@keyframes stellarFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.85) translateY(40px) rotateX(10deg);
        filter: blur(4px);
    }

    30% {
        opacity: 0.3;
        transform: scale(0.95) translateY(15px) rotateX(5deg);
        filter: blur(2px);
    }

    70% {
        opacity: 0.9;
        transform: scale(1.03) translateY(-8px) rotateX(-2deg);
        filter: blur(0.5px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0) rotateX(0deg);
        filter: blur(0);
    }
}

/* Enhanced Stellar loading animation */
@keyframes stellarImageLoad {
    0% {
        opacity: 0;
        transform: scale(1.1);
        filter: blur(6px) brightness(1.2);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.02);
        filter: blur(1px) brightness(1.05);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0) brightness(1);
    }
}


/* Single Blog Post Card Style */
.blog-post {
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    margin-bottom: 3rem;
    border: 1px solid rgba(0,0,0,0.05);
}


@media (max-width: 767px) {
    .blog-post {
        padding: 1.5rem;
    }
}

/* Author Bio */
.author-bio {
    background: #fff;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.author-bio:hover {
    box-shadow: var(--shadow-medium) !important;
}

/* Comments System styling */
.comment-list .comment-item {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.comment-list .comment-item:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.comment-metadata .edit-link {
    margin-left: 10px;
}

.comment-reply-title small {
    display: block;
    font-size: 1rem;
    font-weight: normal;
    margin-top: 5px;
}

/* Standardized Section Spacing */
section {
    padding: 80px 0 !important;
}

/* Exclude hero sections from global padding */
section.hero,
section.hero-section,
.hero-section {
    padding: 0 !important;
}

/* Blog Pagination */
.blog-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.blog-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 50px;
    color: var(--text-dark);
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    line-height: 1;
}

.blog-pagination .page-numbers:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.blog-pagination .page-numbers.current {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(255, 140, 66, 0.3);
}

.blog-pagination .page-numbers.dots {
    border: none;
    box-shadow: none;
    background: transparent;
    cursor: default;
    min-width: auto;
    padding: 0 8px;
}

.blog-pagination .page-numbers.dots:hover {
    transform: none;
    color: var(--text-dark);
}

/* Page header sections with reduced padding */
section.page-header-section {
    padding: 40px 0 !important;
}

section.py-5 {
    padding: 80px 0 !important;
}

/* Override py-5 for page headers */
section.page-header-section.py-5 {
    padding: 40px 0 !important;
}



section.py-4 {
    padding: 60px 0 !important;
}

/* Responsive section spacing */
@media (max-width: 767px) {
    section {
        padding: 60px 0 !important;
    }

    section.py-5 {
        padding: 60px 0 !important;
    }

    /* Special spacing for team section on mobile */
    section.team-section-spacing {
        padding: 60px 0 120px 0 !important;
        margin-bottom: 40px !important;
    }

    section.py-4 {
        padding: 40px 0 !important;
    }



    /* Ensure proper mobile container spacing and prevent horizontal overflow */
    body {
        overflow-x: hidden;
    }

    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .container {
        padding-left: 20px;
        padding-right: 20px;
        max-width: 100%;
        overflow-x: hidden;
    }



    /* Fix blog post footer spacing on mobile */
    .post-footer .row {
        margin-bottom: 1rem;
    }

    .post-footer .col-md-6:first-child {
        margin-bottom: 1rem;
    }

    .post-tags {
        margin-bottom: 1rem;
    }

    .post-share {
        text-align: left !important;
    }

    /* Fix blog navigation buttons on mobile */
    .post-navigation .col-md-6:first-child {
        margin-bottom: 1rem;
        text-align: left !important;
    }

    .post-navigation .col-md-6:last-child {
        text-align: left !important;
    }

    .post-navigation .btn {
        width: 100%;
        justify-content: center;
        display: flex;
        align-items: center;
    }

    /* Comprehensive mobile section spacing fixes */
    section {
        padding: 3rem 0 !important;
    }

    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }





    .py-4 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    .py-3 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    /* Fix specific section spacing */
    .hero-section,
    .about-section,
    .blog-section,
    .contact-section {
        padding: 3rem 0 !important;
    }

    /* Reduce spacing between consecutive sections */
    section+section {
        padding-top: 2rem !important;
    }



    /* Page header mobile spacing - reduced padding */
    section.page-header-section {
        padding: 1.5rem 0 !important;
    }



    /* Fix topbar spacing */
    .topbar {
        padding: 0.5rem 0 !important;
    }





    /* Enhanced hover effects for better user experience */
    .card:hover {
        transform: translateY(-5px) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    }







    .blog-card:hover {
        transform: translateY(-5px) !important;
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12) !important;
    }



    .social-icon:hover {
        transform: translateY(-3px) scale(1.1) !important;
        box-shadow: 0 5px 15px rgba(255, 140, 66, 0.3) !important;
    }

    .btn:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
    }

    .btn-primary:hover {
        box-shadow: 0 8px 20px rgba(255, 140, 66, 0.4) !important;
    }



    .feature-icon-circle:hover {
        transform: rotate(5deg) scale(1.1) !important;
        box-shadow: 0 5px 15px rgba(255, 140, 66, 0.2) !important;
    }
}

/* ===== CAROUSEL STYLES ===== */

/* Base Carousel Styles - Centered Position */
.carousel-caption {
    display: block !important;
    visibility: visible !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    opacity: 0 !important;
    z-index: 10 !important;
}

.carousel-item {
    height: 85vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    transition: transform 0.8s ease-in-out;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.carousel-item .container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

/* Carousel Active State - Show Caption */
.carousel-item.active .carousel-caption {
    opacity: 1 !important;
    transform: translate(-50%, -50%) !important;
    transition: opacity 0.8s ease-out 0.3s, transform 0.8s ease-out 0.3s !important;
}

.carousel-item .row {
    position: relative;
    z-index: 1;
}

/* Carousel Image Enhancement */
.carousel-item img {
    transition: transform 8s ease-out;
    transform: scale(1);
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.carousel-item.active img {
    transform: scale(1.05);
}

/* Remove unwanted spacing */
.carousel,
.carousel-inner {
    margin-bottom: 0 !important;
}

/* ===== CAROUSEL CONTROLS & INDICATORS ===== */

/* Desktop Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

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

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

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(255, 140, 66, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 24px;
    height: 24px;
}

/* Desktop Carousel Indicators */
.carousel-indicators {
    bottom: 30px;
    margin-bottom: 0;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    margin: 0 6px;
}

.carousel-indicators .active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.2);
}

/* ===== CAROUSEL CAPTION RESPONSIVE STYLES ===== */

/* Desktop Carousel Caption (1025px and above) - Centered */
@media only screen and (min-width: 1025px) {
    .hero-section .carousel-caption {
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(44, 62, 80, 0.65) 100%) !important;
        border-radius: var(--border-radius-lg) !important;
        padding: 2.5rem 2rem !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4) !important;
        max-width: 600px !important;
        width: 100% !important;
        text-align: center !important;
        color: white !important;
        overflow: hidden !important;
        backdrop-filter: blur(1px) !important;
        bottom: auto !important;
    }

    .hero-section .carousel-caption::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, rgba(255, 140, 66, 0.1) 0%, rgba(74, 144, 226, 0.1) 100%);
        z-index: -1;
    }

    .hero-section .carousel-caption::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: var(--gradient-primary);
        z-index: 1;
    }

    .carousel-caption h1 {
        font-size: 3rem;
        font-weight: 800;
        margin: 2rem;
        color: white;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        line-height: 1.2;
        position: relative;
        animation: fadeInDown 1.2s ease-out 0.3s both;
    }

    .carousel-caption h1::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 3px;
        background: var(--gradient-primary);
        border-radius: 2px;
        animation: expandWidth 1s ease-out 1s both;
    }

    .carousel-caption p {
        font-size: 1.2rem;
        font-weight: 400;
        margin-bottom: 1.5rem;
        color: rgba(255, 255, 255, 0.95);
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
        line-height: 1.6;
        animation: fadeInUp 1.2s ease-out 0.6s both;
    }

    .carousel-caption .btn,
    .carousel-caption .btn-light {
        padding: 1rem 2.5rem !important;
        font-size: 1.1rem !important;
        font-weight: 600 !important;
        border-radius: var(--border-radius-lg) !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        position: relative !important;
        overflow: hidden !important;
        border: 2px solid white !important;
        background: white !important;
        color: #222a33 !important;
        animation: bounceIn 1.2s ease-out 0.9s both !important;
    }

    .carousel-caption .btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: var(--gradient-primary);
        transition: left 0.4s ease;
        z-index: -1;
    }

    .carousel-caption .btn:hover,
    .carousel-caption .btn-light:hover {
        color: white !important;
        border-color: var(--primary-color) !important;
        transform: translateY(-3px) !important;
        box-shadow: 0 10px 25px rgba(255, 140, 66, 0.4) !important;
    }

    .carousel-caption .btn:hover::before {
        left: 0;
    }

    .carousel-caption .btn i {
        margin-left: 0.5rem;
        transition: transform 0.3s ease;
    }

    .carousel-caption .btn:hover i {
        transform: translateX(5px);
    }
}

/* iPad Carousel Caption (768px to 1024px) */
@media only screen and (min-width: 768px) and (max-width: 1024px) {


    .hero-section {
        height: auto !important;
        min-height: 450px !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    .carousel-item {
        height: auto !important;
        min-height: 450px !important;
    }

    .hero-section .carousel-caption {
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(44, 62, 80, 0.65) 100%) !important;
        border-radius: 20px !important;
        padding: 2rem 1.8rem !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6) !important;
        max-width: 500px !important;
        width: 90% !important;
        text-align: center !important;
        color: white !important;
        backdrop-filter: blur(1px) !important;
        right: auto !important;
        bottom: auto !important;
    }

    .carousel-caption h1 {
        font-size: 1.75rem !important;
        font-weight: 700 !important;
        color: white !important;
        margin-bottom: 1.5rem !important;
        line-height: 1.3 !important;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        max-width: 100% !important;
    }

    .carousel-caption h1::after {
        display: none !important;
    }

    .carousel-caption p {
        font-size: 1.1rem !important;
        margin-bottom: 1.5rem !important;
        line-height: 1.5 !important;
        color: rgba(255, 255, 255, 0.95) !important;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6) !important;
    }

    .carousel-caption .btn,
    .carousel-caption .btn-light {
        font-size: 0.95rem !important;
        padding: 0.8rem 2rem !important;
        border-radius: 15px !important;
        background: white !important;
        color: #222a33 !important;
        border: 2px solid white !important;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3) !important;
        transition: all 0.3s ease !important;
    }

    .carousel-caption .btn:hover,
    .carousel-caption .btn-light:hover {
        background: var(--primary-color) !important;
        border-color: var(--primary-color) !important;
        color: white !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 5px 15px rgba(255, 140, 66, 0.4) !important;
    }

    /* iPad Carousel Controls */
    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
        height: 50px;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        top: 50%;
        transform: translateY(-50%);
        opacity: 0.8;
        transition: all 0.3s ease;
    }

    .carousel-control-prev {
        left: 20px;
    }

    .carousel-control-next {
        right: 20px;
    }

    .carousel-control-prev:hover,
    .carousel-control-next:hover {
        background: rgba(0, 0, 0, 0.7);
        opacity: 1;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 20px;
        height: 20px;
        background-size: 100% 100%;
    }

    /* iPad Carousel Indicators */
    .carousel-indicators {
        bottom: 20px;
        margin-bottom: 0;
    }

    .carousel-indicators [data-bs-target] {
        width: 12px;
        height: 12px;
        margin: 0 4px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.5);
        border: 2px solid rgba(255, 255, 255, 0.8);
        opacity: 0.7;
    }

    .carousel-indicators .active {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
        opacity: 1;
    }
}

/* Mobile Carousel Caption (767px and below) */
@media (max-width: 767px) {
    .hero-section {
        height: auto;
        min-height: 400px;
    }

    .carousel-item {
        height: auto;
        min-height: 400px;
    }

    .hero-section .carousel-caption {
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(44, 62, 80, 0.65) 100%) !important;
        border-radius: 15px !important;
        padding: 2rem 1.2rem !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6) !important;
        max-width: 320px !important;
        width: 60% !important;
        text-align: center !important;
        color: white !important;
        backdrop-filter: blur(1px) !important;
    }

    .carousel-caption h1 {
        font-size: 1.3rem;
        font-weight: 700;
        color: white !important;
        margin-bottom: 0.7rem;
        line-height: 1.2;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    }

    .carousel-caption h1::after {
        display: none;
    }

    .carousel-caption p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        line-height: 1.4;
        color: rgba(255, 255, 255, 0.95);
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    }

    .carousel-caption .btn,
    .carousel-caption .btn-light {
        padding: 0.7rem 1.4rem !important;
        font-size: 0.85rem !important;
        font-weight: 600 !important;
        border-radius: 10px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        transition: all 0.3s ease !important;
        background: white !important;
        color: #222a33 !important;
        border: 2px solid white !important;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3) !important;
    }

    .carousel-caption .btn:hover,
    .carousel-caption .btn-light:hover {
        background: var(--primary-color) !important;
        border-color: var(--primary-color) !important;
        color: white !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 5px 15px rgba(255, 140, 66, 0.4) !important;
    }

    /* Mobile Carousel Controls */
    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
        height: 50px;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        top: 50%;
        transform: translateY(-50%);
        opacity: 0.8;
        transition: all 0.3s ease;
    }

    .carousel-control-prev {
        left: 15px;
    }

    .carousel-control-next {
        right: 15px;
    }

    .carousel-control-prev:hover,
    .carousel-control-next:hover {
        background: rgba(0, 0, 0, 0.7);
        opacity: 1;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 20px;
        height: 20px;
        background-size: 100% 100%;
    }

    /* Mobile Carousel Indicators */
    .carousel-indicators {
        bottom: 20px;
        margin-bottom: 0;
    }

    .carousel-indicators [data-bs-target] {
        width: 12px;
        height: 12px;
        margin: 0 4px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.5);
        border: 2px solid rgba(255, 255, 255, 0.8);
        opacity: 0.7;
    }

    .carousel-indicators .active {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
        opacity: 1;
    }
}

/* Extra Small Mobile Carousel Caption (576px and below) */
@media (max-width: 576px) {
    .hero-section {
        height: auto;
        min-height: 350px;
    }

    .carousel-item {
        height: auto;
        min-height: 350px;
    }

    .hero-section .carousel-caption {
        max-width: 280px !important;
        width: 60% !important;
        padding: 2rem 1.2rem !important;
        bottom: auto;
    }

    .carousel-caption h1 {
        font-size: 1.6rem !important;
        margin-bottom: 2rem !important;
    }

    .carousel-caption p {
        font-size: 0.8rem !important;
        margin-bottom: 1.5rem !important;
    }

    .carousel-caption .btn,
    .carousel-caption .btn-light {
        font-size: 0.75rem !important;
        padding: 0.6rem 1rem !important;
        width: 75% !important;
        background: white !important;
        color: #222a33 !important;
        border: 2px solid white !important;
        border-radius: 10px !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3) !important;
    }

    /* Extra Small Mobile Carousel Controls */
    .carousel-control-prev,
    .carousel-control-next {
        width: 45px;
        height: 45px;
    }

    .carousel-control-prev {
        left: 15px;
    }

    .carousel-control-next {
        right: 15px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 18px;
        height: 18px;
    }

    .carousel-indicators {
        bottom: 20px;
    }

    .carousel-indicators [data-bs-target] {
        width: 10px;
        height: 10px;
        margin: 0 4px;
    }
}

/* Landscape Orientation Optimization */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        height: auto;
        min-height: 280px;
    }

    .carousel-item {
        height: auto;
    }
}

/* ===== CAROUSEL ANIMATIONS ===== */

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
        filter: blur(2px);
    }

    50% {
        opacity: 0.7;
        transform: translateY(10px);
        filter: blur(1px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
        filter: blur(1px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(1px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(15px);
        filter: blur(1px);
    }

    60% {
        opacity: 1;
        transform: scale(1.02) translateY(-2px);
        filter: blur(0);
    }

    80% {
        transform: scale(0.98) translateY(1px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

@keyframes expandWidth {
    from {
        width: 0;
    }

    to {
        width: 80px;
    }
}

/* Carousel Animation Elements - Individual Animations */
.carousel-caption h1 {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.6s ease-out 0.2s, transform 0.6s ease-out 0.2s;
}

.carousel-item.active .carousel-caption h1 {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInDown 0.8s ease-out 0.2s both;
}

.carousel-caption p {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out 0.4s, transform 0.6s ease-out 0.4s;
}

.carousel-item.active .carousel-caption p {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.carousel-caption .btn {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    transition: opacity 0.6s ease-out 0.6s, transform 0.6s ease-out 0.6s;
}

.carousel-item.active .carousel-caption .btn {
    opacity: 1;
    transform: scale(1) translateY(0);
    animation: bounceIn 0.8s ease-out 0.6s both;
}

/* ===== END OF CAROUSEL STYLES ===== */


/* ===== MOBILE CAROUSEL BUTTON TEXT FIX ===== */
/* Comprehensive fix for carousel button text visibility on mobile */
@media screen and (max-width: 768px) {

    .carousel-caption .btn,
    .carousel-caption .btn-light,
    .carousel-caption .btn-lg,
    .carousel-caption a.btn {
        background: white !important;
        color: #222a33 !important;
        border: 2px solid white !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        /* Prevent any webkit or browser-specific text color issues */
        -webkit-text-fill-color: #222a33 !important;
        -moz-text-fill-color: #222a33 !important;
        text-shadow: none !important;
    }

    .carousel-caption .btn:hover,
    .carousel-caption .btn-light:hover,
    .carousel-caption .btn-lg:hover,
    .carousel-caption a.btn:hover {
        background: var(--primary-color) !important;
        color: white !important;
        border-color: var(--primary-color) !important;
        -webkit-text-fill-color: white !important;
        -moz-text-fill-color: white !important;
    }

    /* Ensure button text is always visible */
    .carousel-caption .btn *,
    .carousel-caption .btn-light *,
    .carousel-caption .btn-lg *,
    .carousel-caption a.btn * {
        color: inherit !important;
        -webkit-text-fill-color: inherit !important;
        -moz-text-fill-color: inherit !important;
    }
}

/* ===== MOBILE TEAM SECTION SPACING FIX ===== */
/* Comprehensive fix for team section bottom spacing on mobile */
@media screen and (max-width: 768px) {

    /* Ensure team section has adequate bottom spacing */
    .team-section,
    section.team-section-spacing {
        padding-bottom: 140px !important;
        margin-bottom: 40px !important;
        overflow: visible !important;
    }

    /* Ensure team cards don't get cut off */
    .team-section .container {
        padding-bottom: 20px !important;
    }

    /* Add extra margin to last team card row */
    .team-section .row.g-4 {
        margin-bottom: 30px !important;
        padding-bottom: 20px !important;
    }

    /* Ensure team cards have proper spacing */
    .team-card:last-child {
        margin-bottom: 30px !important;
    }
}

/* =========================
   FAQ Accordion Styles
   ========================= */
.faq-section .accordion-item {
    border: none;
    margin-bottom: 16px;
    border-radius: var(--border-radius) !important;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.faq-section .accordion-button {
    background-color: var(--content-bg);
    color: #222a33 !important;
    /* Fallback + force dark text */
    color: var(--text-dark, #222a33) !important;
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    border: none;
    box-shadow: none;
}

.faq-section .accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: #fff;
}

.faq-section .accordion-button:not(.collapsed) i {
    color: #fff !important;
}

.faq-section .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.faq-section .accordion-button::after {
    filter: none;
}

.faq-section .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.faq-section .accordion-body {
    background-color: var(--content-bg);
    padding: 1.25rem 1.5rem;
    color: #6c757d !important;
    /* Fallback + force visible text */
    color: var(--text-light, #6c757d) !important;
    line-height: 1.7;
}

/* Contact Icon Bubble */
.contact-icon-bubble {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon-bubble i {
    color: #fff;
    font-size: 1.1rem;
}

/* ===== BLOG CARD STYLES ===== */
/* Fixed height images to prevent stretching */

.blog-card {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: none;
    box-shadow: var(--shadow-light);
    background: var(--content-bg);
}

.blog-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-5px);
}

.blog-card .card-img-top,
.blog-card img.card-img-top {
    height: 220px;
    width: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.blog-card:hover .card-img-top {
    transform: scale(1.05);
}

.blog-card .card-body {
    padding: 1.5rem;
}

.blog-card .card-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card .card-title a:hover {
    color: var(--primary-color);
}

/* Blog Card Responsive */
@media (max-width: 991px) {
    .blog-card .card-img-top,
    .blog-card img.card-img-top {
        height: 200px;
    }
}

@media (max-width: 767px) {
    .blog-card .card-img-top,
    .blog-card img.card-img-top {
        height: 180px;
    }
    
    .blog-card .card-body {
        padding: 1.25rem;
    }
}

@media (max-width: 576px) {
    .blog-card .card-img-top,
    .blog-card img.card-img-top {
        height: 200px;
    }
}

/* Blog Card Image Wrapper - Prevents stretching */
.blog-card .card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: auto;
}

.blog-card .card-img-wrapper img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.blog-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

/* ===== FORM ELEMENTS ===== */

/* Labels */
label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.9375rem;
}

/* Text Inputs */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"],
input[type="week"],
input[type="color"] {
    display: block;
    width: 100%;
    padding: 10px 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-shadow: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="datetime-local"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="color"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.15);
    outline: none;
}

/* Textarea */
textarea {
    display: block;
    width: 100%;
    padding: 10px 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-shadow: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    resize: vertical;
    min-height: 120px;
}

textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.15);
    outline: none;
}

/* Select Dropdown */
select {
    display: block;
    width: 100%;
    padding: 10px 40px 10px 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 8.825L.35 3.175 1.413 2.113 6 6.7l4.588-4.588L11.65 3.175z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-shadow: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.15);
    outline: none;
}

select[multiple] {
    padding-right: 16px;
    background-image: none;
    height: auto;
}

/* Fieldset & Legend */
fieldset {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin: 0 0 1.5rem 0;
}

legend {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    padding: 0 0.5rem;
    width: auto;
    margin-bottom: 0.5rem;
}

/* Radio Buttons */
input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0 8px 0 0;
    accent-color: var(--primary-color);
    cursor: pointer;
    vertical-align: middle;
}

input[type="radio"] + label,
label:has(> input[type="radio"]) {
    display: inline-flex;
    align-items: center;
    font-weight: 400;
    cursor: pointer;
    margin-bottom: 0.375rem;
}

/* Checkboxes */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0 8px 0 0;
    accent-color: var(--primary-color);
    cursor: pointer;
    vertical-align: middle;
    border-radius: 4px;
}

input[type="checkbox"] + label,
label:has(> input[type="checkbox"]) {
    display: inline-flex;
    align-items: center;
    font-weight: 400;
    cursor: pointer;
    margin-bottom: 0.375rem;
}

/* Buttons – submit, reset, button */
input[type="submit"],
input[type="reset"],
input[type="button"],
button {
    display: inline-block;
    padding: 10px 24px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.6;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background-color: #f8f9fa;
    color: var(--text-dark);
    transition: var(--transition);
}

input[type="submit"] {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    box-shadow: var(--shadow-light);
}

input[type="submit"]:hover {
    filter: brightness(0.9);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

input[type="reset"] {
    background-color: #fff;
    color: var(--text-dark);
    border: 1px solid #d1d5db;
}

input[type="reset"]:hover {
    background-color: #f1f3f5;
    border-color: #bcc0c4;
}

input[type="button"]:hover,
button:not(.btn):not(.navbar-toggler):not(.close):not(.wp-block-button__link):hover {
    background-color: #e9ecef;
    border-color: #bcc0c4;
}

input[type="submit"]:focus,
input[type="reset"]:focus,
input[type="button"]:focus,
button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.2);
}

/* File Input */
input[type="file"] {
    display: block;
    width: 100%;
    padding: 8px 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="file"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.15);
    outline: none;
}

input[type="file"]::file-selector-button {
    padding: 6px 16px;
    margin-right: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: #fff;
    background: var(--gradient-primary);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

input[type="file"]::file-selector-button:hover {
    filter: brightness(0.9);
}

/* Placeholder */
::placeholder {
    color: #a0a6ad;
    opacity: 1;
    font-weight: 400;
}

::-webkit-input-placeholder {
    color: #a0a6ad;
}

::-moz-placeholder {
    color: #a0a6ad;
    opacity: 1;
}

:-ms-input-placeholder {
    color: #a0a6ad;
}

/* Disabled & Read-only States */
input:disabled,
textarea:disabled,
select:disabled,
button:disabled,
input[readonly],
textarea[readonly] {
    background-color: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Range Input */
input[type="range"] {
    width: 100%;
    height: 6px;
    accent-color: var(--primary-color);
    cursor: pointer;
    border-radius: 3px;
    appearance: none;
    -webkit-appearance: none;
    background: #e5e7eb;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Form Groups */
.form-group {
    margin-bottom: 1.25rem;
}

/* WordPress Comment Form Overrides */
.comment-form label {
    font-weight: 500;
    margin-bottom: 0.375rem;
    color: var(--text-dark);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
}

.comment-form .form-submit input[type="submit"] {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 500;
    box-shadow: var(--shadow-light);
}

.comment-form .form-submit input[type="submit"]:hover {
    filter: brightness(0.9);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* WordPress Search Form */
.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-form .search-field {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9375rem;
}

.search-form .search-field:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.15);
    outline: none;
}

.search-form .search-submit {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.search-form .search-submit:hover {
    filter: brightness(0.9);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Responsive Form Adjustments */
@media (max-width: 576px) {
    input[type="text"],
    input[type="email"],
    input[type="url"],
    input[type="password"],
    input[type="search"],
    input[type="number"],
    input[type="tel"],
    textarea,
    select {
        padding: 9px 12px;
        font-size: 0.875rem;
    }

    input[type="submit"],
    input[type="reset"],
    input[type="button"],
    button {
        padding: 9px 18px;
        font-size: 0.875rem;
    }

    .search-form {
        flex-direction: column;
    }
}

/* ===== TABLES ===== */

table {
    width: 100%;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 0.9375rem;
}

table th,
table td {
    padding: 12px 16px;
    text-align: left;
    vertical-align: top;
    border: 1px solid #e5e7eb;
}

table th {
    background-color: var(--dark-color);
    color: #fff;
    font-weight: 600;
    font-size: 0.9375rem;
    white-space: nowrap;
}

table thead th {
    border-bottom-width: 2px;
}

table tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

table tbody tr:hover {
    background-color: rgba(255, 140, 66, 0.06);
}

table caption {
    padding: 10px 0;
    color: var(--text-light);
    font-style: italic;
    caption-side: bottom;
    font-size: 0.875rem;
}

/* Responsive table wrapper */
.table-responsive,
.wp-block-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.5rem;
}

.entry-content table,
.post-content table,
.page-content table {
    width: 100%;
}

/* ===== BLOCKQUOTE ===== */

blockquote {
    margin: 1.5rem 0;
    padding: 1.25rem 1.5rem;
    border-left: 4px solid var(--primary-color);
    background-color: #fff8f3;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-dark);
    font-size: 1.0625rem;
    line-height: 1.7;
    position: relative;
}

blockquote p {
    margin-bottom: 0.5rem;
}

blockquote p:last-child {
    margin-bottom: 0;
}

blockquote cite,
blockquote footer {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 500;
    color: var(--text-light);
}

blockquote cite::before,
blockquote footer::before {
    content: "\2014\00a0";
}

/* Nested blockquotes */
blockquote blockquote {
    margin-left: 1rem;
    border-left-color: var(--accent-color);
    background-color: #fff4eb;
}

/* WordPress block editor blockquote */
.wp-block-quote {
    margin: 1.5rem 0;
    padding: 1.25rem 1.5rem;
    border-left: 4px solid var(--primary-color);
    background-color: #fff8f3;
    border-radius: 0 8px 8px 0;
}

.wp-block-quote.is-style-large,
.wp-block-quote.is-large {
    padding: 1.5rem 2rem;
    font-size: 1.25rem;
}

.wp-block-quote .wp-block-quote__citation,
.wp-block-quote cite {
    font-size: 0.875rem;
    font-style: normal;
    color: var(--text-light);
}

/* WordPress pullquote */
.wp-block-pullquote {
    border-top: 4px solid var(--primary-color);
    border-bottom: 4px solid var(--primary-color);
    padding: 2rem 0;
    margin: 2rem 0;
    text-align: center;
}

.wp-block-pullquote blockquote {
    border-left: none;
    background: none;
    padding: 0;
}

/* ===== PRE & CODE ===== */

pre {
    display: block;
    padding: 1.25rem 1.5rem;
    margin: 0 0 1.5rem;
    font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', 'Menlo', 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #e4e4e7;
    background-color: #1e1e2e;
    border-radius: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: pre;
    word-wrap: normal;
    tab-size: 4;
}

pre code {
    padding: 0;
    font-size: inherit;
    color: inherit;
    background-color: transparent;
    border-radius: 0;
    border: none;
}

code {
    display: inline;
    padding: 2px 6px;
    font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', 'Menlo', 'Courier New', monospace;
    font-size: 0.85em;
    color: #d63384;
    background-color: #f8f1f4;
    border-radius: 4px;
    border: 1px solid #f0dde4;
    word-wrap: break-word;
}

/* WordPress code block */
.wp-block-code {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
}

.wp-block-code code {
    display: block;
    padding: 1.25rem 1.5rem;
    background-color: #1e1e2e;
    color: #e4e4e7;
    border: none;
    font-size: 0.875rem;
    overflow-x: auto;
}

/* ===== ABBREVIATIONS & ACRONYMS ===== */

abbr,
acronym {
    text-decoration: underline dotted;
    text-decoration-color: var(--primary-color);
    text-underline-offset: 3px;
    cursor: help;
    font-style: normal;
}

abbr[title],
acronym[title] {
    border-bottom: none;
}

/* ===== SUBSCRIPT & SUPERSCRIPT ===== */

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sup {
    top: -0.5em;
}

sub {
    bottom: -0.25em;
}

/* ===== CITE ===== */

cite {
    font-style: italic;
    color: var(--text-light);
}

/* ===== KBD (Keyboard Input) ===== */

kbd {
    display: inline-block;
    padding: 3px 8px;
    font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', 'Menlo', 'Courier New', monospace;
    font-size: 0.8em;
    color: var(--text-dark);
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    box-shadow: inset 0 -1px 0 #d1d5db;
    line-height: 1.4;
    white-space: nowrap;
}

/* ===== MARK (Highlight) ===== */

mark,
.wp-block-highlight {
    background-color: #fef3cd;
    color: var(--text-dark);
    padding: 2px 4px;
    border-radius: 2px;
}

/* ===== VAR (Variable) ===== */

var {
    font-style: italic;
    font-weight: 600;
    color: var(--primary-color);
}

/* ===== SAMP (Sample Output) ===== */

samp {
    font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', 'Menlo', 'Courier New', monospace;
    font-size: 0.85em;
    color: #059669;
    background-color: #ecfdf5;
    padding: 2px 6px;
    border-radius: 4px;
}

/* ===== INS & DEL ===== */

ins {
    background-color: #d1fae5;
    color: #065f46;
    text-decoration: none;
    padding: 1px 4px;
    border-radius: 2px;
}

del {
    background-color: #fee2e2;
    color: #991b1b;
    text-decoration: line-through;
    padding: 1px 4px;
    border-radius: 2px;
}

/* ===== ADDRESS ===== */

address {
    margin-bottom: 1.5rem;
    font-style: normal;
    line-height: 1.7;
    color: var(--text-dark);
}

/* ===== HR (Horizontal Rule) ===== */

hr {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #d1d5db, transparent);
    margin: 2rem 0;
}

.wp-block-separator {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #d1d5db, transparent);
    margin: 2rem 0;
}

.wp-block-separator.is-style-wide {
    max-width: 100%;
}

.wp-block-separator.is-style-dots {
    background: none;
    height: auto;
    text-align: center;
}

/* ===== DT & DD (Definition Lists) ===== */

dl {
    margin-bottom: 1.5rem;
}

dt {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

dd {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

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

@media (max-width: 768px) {
    table th,
    table td {
        padding: 8px 10px;
        font-size: 0.8125rem;
    }

    blockquote {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }

    pre {
        padding: 1rem;
        font-size: 0.8125rem;
    }
}

/* ===== WORDPRESS REQUIRED CLASSES ===== */

/* Block Editor Alignments */
.alignwide {
    margin-left: -50px;
    margin-right: -50px;
    max-width: calc(100% + 100px);
    width: auto;
}

.alignfull {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
    width: 100vw;
}

@media (max-width: 768px) {
    .alignwide {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }
    
    .alignfull {
        margin-left: -15px; /* Accounting for typical container padding */
        margin-right: -15px;
        max-width: calc(100% + 30px);
        width: auto;
    }
}

/* Sticky Post */
.sticky {
    display: block;
}

article.sticky {
    padding: 1.5rem;
    border: 2px dashed var(--primary-color);
    background-color: #fffaf6;
    border-radius: var(--border-radius);
    position: relative;
}

article.sticky::before {
    content: "\f08d";
    font-family: "FontAwesome", "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--gradient-primary);
    color: white;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    box-shadow: var(--shadow-light);
}

/* Post Pagination Links ( wp_link_pages ) */
.page-links {
    clear: both;
    margin: 2rem 0;
    padding: 1rem 0;
    font-weight: 500;
}

.page-links .page-number {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
}

.page-links .page-number:hover {
    background: #e9ecef;
}

.page-links > .page-number {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: var(--shadow-light);
}

/* Edit link styling */
.edit-link {
    margin-top: 1rem;
    display: block;
}

/* Post Password Form */
.post-password-form {
    margin: 2rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    border: 1px solid #e5e7eb;
}

.post-password-form label {
    margin-bottom: 1rem;
}

.post-password-form input[type="password"] {
    display: inline-block;
    width: auto;
    min-width: 250px;
    margin-right: 0.5rem;
}

@media (max-width: 576px) {
    .post-password-form input[type="password"] {
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* Nested Comments */
.comment-list {
    list-style: none;
    padding-left: 0;
}

.comment-list .children {
    list-style: none;
    padding-left: 2rem;
    margin-left: 1rem;
    border-left: 2px solid #e5e7eb;
}

@media (max-width: 576px) {
    .comment-list .children {
        padding-left: 1rem;
        margin-left: 0.5rem;
    }
}

/* Basic Widgets */
.widget {
    margin-bottom: 2rem;
}

.widget select {
    max-width: 100%;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
}

.widget ul li a:hover {
    color: var(--primary-color);
}

/* Classic Galleries */
.gallery {
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.gallery-item {
    margin: 0;
    text-align: center;
}

.gallery-columns-1 .gallery-item { width: 100%; }
.gallery-columns-2 .gallery-item { width: calc(50% - 7.5px); }
.gallery-columns-3 .gallery-item { width: calc(33.333% - 10px); }
.gallery-columns-4 .gallery-item { width: calc(25% - 11.25px); }
.gallery-columns-5 .gallery-item { width: calc(20% - 12px); }

.gallery-icon img {
    margin: 0 auto;
    border: 1px solid #e5e7eb;
    padding: 4px;
    border-radius: 4px;
    height: auto;
    max-width: 100%;
}