/* Custom typography enhancement - custom.css */

/* ============================================
   COLOR DISTRIBUTION: 85-10-5 RULE
   ============================================
   85% - White/Neutral (Main backgrounds & text)
   10% - Warm Beige/Cream (Secondary sections & borders)
   5%  - Warm Orange (Primary CTAs, icons, links)
   
   PRIMARY USAGE (5%):
   - Primary buttons (.btn-primary)
   - Important icons (.icon-primary)
   - Links (a tags)
   - Meta decorative text (.text-decorative)
   
   SECONDARY USAGE (10%):
   - Background sections (.bg-secondary-warm)
   - Secondary buttons outline (.btn-outline-primary)
   - Card borders
   
   NEUTRAL USAGE (85%):
   - Main backgrounds (white)
   - Body text
   - Headings
   - Most content areas
   ============================================ */

/* ============================================
   FONT DECLARATIONS
   ============================================ */

/* Alice Font - Headings & CTA */
@font-face {
    font-family: 'Alice';
    src: url('../fonts/Alice/Alice-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* PT Sans Font - Body Text */
@font-face {
    font-family: 'PT Sans';
    src: url('../fonts/PT_Sans/PTSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PT Sans';
    src: url('../fonts/PT_Sans/PTSans-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'PT Sans';
    src: url('../fonts/PT_Sans/PTSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PT Sans';
    src: url('../fonts/PT_Sans/PTSans-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* Sacramento Font - Meta/Decorative Text */
@font-face {
    font-family: 'Sacramento';
    src: url('../fonts/Sacramento/Sacramento-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   ROOT VARIABLES & BASE STYLES
   ============================================ */

/* Color Palette - 85-10-5 Rule */
:root {
    /* Primary Colors (5% - CTA & Important Actions) */
    --primary-orange: #FF6B35;        /* Vibrant warm orange - Primary CTA */
    --primary-orange-dark: #E55A2B;   /* Darker orange for hover */
    --primary-orange-light: #FF8555;  /* Lighter orange for accents */
    
    /* Secondary Colors (10% - Supporting Elements) */
    --secondary-warm: #FFF5E6;        /* Warm cream/beige - Backgrounds */
    --secondary-warm-light: #FFFBF7;  /* Very light warm - Subtle backgrounds */
    --secondary-medium: #FFE8CC;      /* Medium warm tone - Borders */
    --secondary-dark: #D4A574;        /* Darker warm - Text on light bg */
    
    /* Neutral Colors (85% - Main Background & Text) */
    --neutral-white: #FFFFFF;         /* Pure white - Main background */
    --neutral-light: #F8F9FA;         /* Off-white - Section backgrounds */
    --neutral-gray: #6C757D;          /* Medium gray - Secondary text */
    --neutral-dark: #2C3E50;          /* Dark - Primary text */
    
    /* Font families */
    --font-heading: 'Alice', Georgia, serif;
    --font-body: 'PT Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-meta: 'Sacramento', cursive;
    
    /* Base font size */
    font-size: 18px;
}

/* Base Typography Setup */
body {
    font-family: var(--font-body);
    line-height: 1.6;
    font-size: 1rem;
    color: var(--neutral-dark);
    background-color: var(--neutral-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   BUTTON STYLES (CTA - Alice Font) - 5% Primary Color
   ============================================ */

.btn {
    font-family: var(--font-heading); /* Alice for CTA */
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    border-width: 2px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

/* Primary Button - 5% Usage (Main CTA) */
.btn-primary {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
    color: var(--neutral-white);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
}

.btn-primary:hover, 
.btn-primary:focus {
    background-color: var(--primary-orange-dark);
    border-color: var(--primary-orange-dark);
    color: var(--neutral-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

/* Secondary Button - Orange Outline (10% Usage) */
.btn-outline-primary,
.btn-secondary {
    background-color: transparent;
    border-color: var(--primary-orange);
    color: var(--primary-orange);
    box-shadow: none;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-secondary:hover,
.btn-secondary:focus {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
    color: var(--neutral-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.25);
}

/* Button Sizes */
.btn-lg {
    font-size: 1.125rem;
    padding: 0.875rem 2rem;
    letter-spacing: 0.75px;
    border-radius: 0.625rem;
}

.btn-sm {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
}

.content img {
    display: block; 
    max-width: 100%; /* Makes the image responsive */
    height: auto; /* Maintains aspect ratio */
    border: 3px solid var(--primary-color); /* Adds a border with theme's primary color */
    border-radius: 5px; /* Slightly rounded corners for a polished look */
    object-fit: cover; /* Ensures image covers the container */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Adds a subtle shadow for depth */
    margin-bottom: 1.5rem; /* Adds spacing below the image */
}


    

/* Paragraphs and general text */
p, .text-secondary {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

/* List items */
li {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* Links */
a {
    font-size: 1rem;
}

/* ============================================
   NAVIGATION STYLES
   ============================================ */

/* Navigation brand */
.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: var(--neutral-dark) !important;
}

/* Navigation items */
.navbar-nav .nav-link {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
    color: var(--neutral-dark);
    padding: 0.5rem 1rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-orange) !important;
}

/* Desktop Navigation - Center Menu Items */
@media (min-width: 992px) {
    .navbar-nav.mx-auto {
        flex-grow: 1;
        justify-content: center;
        max-width: 60%;
    }
}

/* Mobile Navigation - Proper Spacing */
@media (max-width: 991px) {
    .navbar-collapse {
        margin-top: 1rem;
    }
    
    .navbar-nav {
        padding: 0.5rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--secondary-medium);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    .navbar-nav .nav-item {
        margin: 0;
    }
    
    /* Dropdown menu on mobile */
    .dropdown-menu {
        border: none;
        box-shadow: none;
        padding: 0;
        margin: 0;
        background: transparent;
    }
    
    .dropdown-item {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--secondary-medium);
        margin-left: 1rem;
    }
    
    .dropdown-item:last-child {
        border-bottom: none;
    }
    
    .dropdown-divider {
        margin: 0.5rem 1rem;
        border-color: var(--secondary-medium);
    }
}

/* Navbar Toggle Button */
.navbar-toggler {
    padding: 0.5rem;
    font-size: 1.25rem;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: 2px solid var(--primary-orange);
}

/* ============================================
   HEADING STYLES
   ============================================ */

/* H1 - Alice Font (Primary Headings) */
h1, .h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--neutral-dark);
    letter-spacing: 0.5px;
}

/* H2 - PT Sans Bold (Secondary Headings) */
h2, .h2 {
    font-family: var(--font-body);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.875rem;
    color: var(--neutral-dark);
}

/* H3 - Alice Font (Tertiary Headings) */
h3, .h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: var(--neutral-dark);
}

/* H4, H5, H6 - PT Sans (Minor Headings) */
h4, .h4 {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.625rem;
}

h5, .h5 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

h6, .h6 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Display headings - Alice Font */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.1;
    color: var(--neutral-dark);
}

.display-1 { font-size: 5rem; }
.display-2 { font-size: 4.5rem; }
.display-3 { font-size: 4rem; }
.display-4 { font-size: 3.5rem; }
.display-5 { font-size: 3rem; }
.display-6 { font-size: 2.5rem; }

/* ============================================
   BODY TEXT & SPECIAL TEXT STYLES
   ============================================ */

/* Lead text - emphasized body copy */
.lead {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--neutral-gray);
}

/* Meta text - Sacramento font for decorative/small text */
.meta-text,
.text-meta,
.small-meta,
small.meta {
    font-family: var(--font-meta);
    font-size: 1.125rem;
    line-height: 1.4;
    color: var(--primary-orange);
}

/* Blockquote styling */
blockquote,
.blockquote {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-style: italic;
    border-left: 4px solid var(--primary-orange);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: var(--neutral-gray);
}

blockquote footer,
.blockquote-footer {
    font-family: var(--font-meta);
    font-size: 1rem;
    color: var(--secondary-dark);
}


/* Forms */
.form-control {
    font-size: 1rem;
}

/* ============================================
   RESPONSIVE TYPOGRAPHY
   ============================================ */

/* Tablet adjustments */
@media (max-width: 768px) {
    :root {
        font-size: 17px;
    }
    
    h1, .h1 { font-size: 2rem; }
    h2, .h2 { font-size: 1.75rem; }
    h3, .h3 { font-size: 1.375rem; }
    h4, .h4 { font-size: 1.125rem; }
    
    .display-1 { font-size: 3.5rem; }
    .display-2 { font-size: 3rem; }
    .display-3 { font-size: 2.75rem; }
    .display-4 { font-size: 2.25rem; }
    .display-5 { font-size: 2rem; }
    .display-6 { font-size: 1.75rem; }
    
    .btn {
        font-size: 0.9375rem;
        padding: 0.5625rem 1.25rem;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.75rem;
    }
}

/* Mobile adjustments */
@media (max-width: 576px) {
    :root {
        font-size: 16px;
    }
    
    h1, .h1 { font-size: 1.75rem; }
    h2, .h2 { font-size: 1.5rem; }
    h3, .h3 { font-size: 1.25rem; }
    h4, .h4 { font-size: 1.125rem; }
    h5, .h5 { font-size: 1rem; }
    h6, .h6 { font-size: 0.875rem; }
    
    .display-1 { font-size: 2.75rem; }
    .display-2 { font-size: 2.5rem; }
    .display-3 { font-size: 2.25rem; }
    .display-4 { font-size: 2rem; }
    .display-5 { font-size: 1.75rem; }
    .display-6 { font-size: 1.5rem; }
    
    .lead {
        font-size: 1.125rem;
    }
    
    .btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 0.625rem 1.5rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
}

/* Helper Classes */
.small {
    font-size: 0.875rem;
}

.smaller {
    font-size: 0.75rem;
}

/* List specific adjustments */
.list-group-item {
    font-size: 1rem;
}

/* ============================================
   CARD STYLES - Using Secondary Colors (10%)
   ============================================ */

.card {
    border: 1px solid var(--secondary-medium);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--neutral-dark);
}

.card-text {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--neutral-gray);
}

.card-subtitle {
    font-family: var(--font-meta);
    font-size: 1.125rem;
    color: var(--primary-orange);
}

/* Secondary background sections */
.bg-secondary-warm {
    background-color: var(--secondary-warm) !important;
}

.bg-light {
    background-color: var(--neutral-light) !important;
}

/* Navigation Dropdown adjustments */
.dropdown-item {
    font-size: 1rem;
}

/* Toast notifications */
.toast-body {
    font-size: 1rem;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Badge adjustments */
.badge {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Alert text */
.alert {
    font-family: var(--font-body);
}

.alert-heading {
    font-family: var(--font-heading);
}

/* Breadcrumb */
.breadcrumb-item {
    font-family: var(--font-body);
    font-size: 0.9rem;
}

/* ============================================
   FOOTER STYLES
   ============================================ */

footer {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    line-height: 1.6;
}

footer h2, footer h3, footer h4 {
    font-family: var(--font-heading);
}

footer .meta-text,
footer small {
    font-family: var(--font-meta);
    font-size: 1rem;
}

/* ============================================
   FORM STYLES
   ============================================ */

.form-label {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
}

.form-control,
.form-select,
.form-control::placeholder {
    font-family: var(--font-body);
    font-size: 1rem;
}

.form-text {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-style: italic;
}

/* ============================================
   DECORATIVE TEXT CLASSES
   ============================================ */

/* Use Sacramento font for elegant, decorative text */
.text-decorative,
.text-elegant,
.text-signature {
    font-family: var(--font-meta);
    font-size: 1.5rem;
    line-height: 1.4;
    color: var(--primary-orange);
}

.text-decorative-lg {
    font-size: 2rem;
}

.text-decorative-sm {
    font-size: 1.125rem;
}

/* Date/time meta information */
.date-meta,
.time-meta,
.author-meta {
    font-family: var(--font-meta);
    font-size: 1rem;
    color: var(--neutral-gray);
}

/* Caption text */
.caption,
figcaption {
    font-family: var(--font-meta);
    font-size: 1rem;
    font-style: italic;
    color: var(--neutral-gray);
    margin-top: 0.5rem;
}

/* Icon colors - 5% Primary for important stats/icons */
.icon-primary,
.text-primary {
    color: var(--primary-orange) !important;
}

.bg-primary {
    background-color: var(--primary-orange) !important;
}

/* Links */
a {
    color: var(--primary-orange);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-orange-dark);
    text-decoration: underline;
}

/* ============================================
   HERO SECTION
   ============================================ */

/* Hero Section Spacing */
.hero-section {
    padding: 2rem 0 3rem;
}

/* Hero Image Frame with Pale Thick Border */
.hero-image-frame {
    position: relative;
    padding: 1.5rem;
    background: var(--secondary-warm);
    border: 12px solid var(--secondary-medium);
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-image-frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

/* Simplified Hero Steps List */
.hero-steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero-steps-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
}

.hero-steps-list .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: var(--primary-orange);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

/* Decorative accents (subtle) */
.hero-image-frame::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 80px;
    height: 80px;
    background: var(--primary-orange-light);
    opacity: 0.12;
    border-radius: 50%;
    z-index: -1;
}

.hero-image-frame::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: -12px;
    width: 90px;
    height: 90px;
    background: var(--secondary-dark);
    opacity: 0.08;
    border-radius: 50%;
    z-index: -1;
}

/* Responsive Hero */
@media (max-width: 991px) {
    .hero-section {
        padding: 3rem 0 2rem;
    }
    
    .hero-image-frame {
        padding: 1rem;
        border-width: 8px;
        margin-top: 2rem;
    }
    
    .hero-image-frame::before,
    .hero-image-frame::after {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 2rem 0 1.5rem;
    }
}

/* ============================================
   FAQ ACCORDION
   ============================================ */

.accordion-item {
    border-radius: 0.5rem !important;
    overflow: hidden;
}

.accordion-button {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    color: var(--neutral-dark);
    background-color: var(--neutral-white);
    border: none;
    padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    background-color: var(--secondary-warm);
    color: var(--primary-orange);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FF6B35'%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-body {
    padding: 1.25rem 1.5rem;
    color: var(--neutral-gray);
    line-height: 1.6;
}

/* ============================================
   BOOKING FORM
   ============================================ */

.booking-section {
    min-height: 100vh;
}

/* Selection Cards */
.selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.selection-grid-two {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.selection-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    border: 2px solid var(--secondary-medium);
    border-radius: 0.75rem;
    background: var(--neutral-white);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 130px;
}

.selection-card:hover {
    border-color: var(--primary-orange);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.15);
}

.selection-card i {
    color: var(--neutral-gray);
    transition: color 0.3s ease;
}

.btn-check:checked + .selection-card {
    border-color: var(--primary-orange);
    background: var(--secondary-warm);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

.btn-check:checked + .selection-card i {
    color: var(--primary-orange);
}

/* Form Inputs */
.form-control,
.form-select {
    border: 2px solid var(--secondary-medium);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.15);
}

.form-control-lg {
    padding: 0.875rem 1rem;
    font-size: 1rem;
}

.input-group-text {
    border: 2px solid var(--secondary-medium);
    border-right: none;
    background: var(--secondary-warm);
    color: var(--neutral-dark);
    font-weight: 600;
}

.input-group .form-control {
    border-left: none;
}

.input-group:focus-within .input-group-text {
    border-color: var(--primary-orange);
}

.input-group:focus-within .form-control {
    border-color: var(--primary-orange);
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .selection-grid {
        grid-template-columns: 1fr;
    }
    
    .selection-card {
        padding: 1.25rem 1rem;
        min-height: 110px;
    }
    
    .booking-section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}
.mb-5 img {
    width: 100%;
    height: auto;
    margin-bottom: 1.5rem; /* Equal to typical line height */
    border: 2px solid #FD6B6A;
    border-radius: 8px; /* Optional: adds slightly rounded corners */
    margin-top: 0.2rem; /* Optional: adds some space above images */
}

/* Ensure images don't overflow their containers */
.mb-5 {
    overflow: hidden;
}

/* Exception for the hero section image */
.bg-primary img {
    border: none;
    padding-bottom: 0;
}

/* Optional: Add smooth transition for better UX */
.mb-5 img {
    transition: transform 0.3s ease;
}

/* Optional: Subtle hover effect */
.mb-5 img:hover {
    transform: scale(1.01);
}

    .article-content img, article img {
    width: 100%;
    height: auto;
    border: 3px solid rgba(13, 110, 253, 0.1);
    border-radius: 0.5rem;
    margin-bottom: 1.8rem;
    display: block;
    max-width: 100%;
}

.article-content figure {
    margin: 0 0 1.8rem 0;
}

.article-content figure img {
    margin-bottom: 0.5rem;
}

.article-content figure figcaption {
    color: #6c757d;
    font-size: 0.9rem;
    text-align: center;
}

/* For screen readers */
.article-content img[alt=""] {
    outline: 3px solid #dc3545;
}

/* General Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.6em; /* Adds space below the table */
    overflow: hidden;
    border: 1px solid var(--accent-color); /* Subtle border */
    font-size: 1rem;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Table Head */
table thead {
    background-color: var(--primary-color);
    color: #fff;
    text-align: left;
    font-weight: bold;
}

table thead th {
    padding: 0.8em;
    text-transform: uppercase;
    border-bottom: 2px solid var(--accent-color);
}

/* Table Body */
table tbody tr {
    border-bottom: 1px solid var(--accent-color);
    transition: background-color 0.2s ease-in-out;
}

table tbody tr:hover {
    background-color: var(--accent-color);
    color: #fff;
}

table tbody td {
    padding: 0.8em;
    border-right: 1px solid var(--accent-color);
}

table tbody td:last-child {
    border-right: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    table {
        border: none;
    }
    
    thead {
        display: none;
    }

    tbody tr {
        display: block;
        margin-bottom: 1em;
        border: 1px solid var(--accent-color);
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        overflow: hidden;
    }

    tbody td {
        display: flex;
        justify-content: space-between;
        padding: 1em;
        border-bottom: 1px solid var(--accent-color);
    }

    tbody td:last-child {
        border-bottom: none;
    }

    tbody td::before {
        content: attr(data-label); /* Adds labels from the column header */
        font-weight: bold;
        color: var(--primary-color);
    }

    tbody tr td:not(:first-child) {
        display: none;
    }

    tbody tr td:first-child {
        cursor: pointer;
        font-weight: bold;
        color: var(--primary-color);
    }

    tbody tr.expanded td {
        display: block;
        text-align: left;
        padding: 1em 1em 0.5em;
    }

    tbody tr.expanded td:first-child {
        padding-bottom: 0;
    }

    tbody tr.expanded td:not(:first-child)::before {
        content: none; /* Remove the heading in expanded rows */
    }
}
    .accordion {
        border-top: 2px solid #8B4513; /* Top border matching primary color */
        border-bottom: 2px solid #8B4513; /* Bottom border matching primary color */
        background-color: #fff; /* White background for readability */
    }

    .accordion-header {
        background-color: transparent; /* Transparent background for a clean look */
        margin-bottom: 0;
    }

    .accordion-button {
        font-size: 1.2rem;
        font-weight: bold;
        color: #8B4513; /* Use the primary color for header text */
        background-color: transparent; /* Transparent button background */
        border: none; /* Remove default border */
        text-align: left; /* Align text to the left */
        padding: 1rem; /* Add padding for better click area */
    }

    .accordion-button:focus {
        box-shadow: none; /* Remove focus outline */
    }

    .accordion-button.collapsed {
        color: #D2691E; /* Use secondary color when collapsed */
    }

    .accordion-button::after {
        display: none; /* Remove default Bootstrap arrow */
    }

    .accordion-body {
        font-size: 1rem;
        line-height: 1.6;
        color: #333; /* Neutral text color for body content */
        padding: 1rem;
    }

    /* Set fixed height for slider images on large screens */
    #photoSlider .carousel-item img {
        height: 500px; /* Adjust height for landscape view */
        object-fit: cover;
    }

    /* Adjust height for smaller screens */
    @media (max-width: 768px) {
        #photoSlider .carousel-item img {
            height: 300px; /* Adjust height for portrait view */
        }
    }

    .card-img-top {
    height: 200px; /* Fixed height for consistent card appearance */
    width: 100%; /* Ensures full width */
    object-fit: cover; /* Ensures the image fills the space while maintaining aspect ratio */
    border-radius: 5px; /* Optional: Slightly round corners for a polished look */
}


.text-decoration-none:hover .card-title {
    text-decoration: underline; /* Add underline on hover for better UX */
    color: var(--primary-color); /* Match theme's primary color */
}

.text-decoration-none:hover .card-img-top {
    filter: brightness(0.9); /* Slight darkening effect on hover for better visual interaction */
}

/* Gallery Styles */
.gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.gallery-thumbs .thumb-item {
    flex: 0 0 100px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.gallery-thumbs .thumb-item:hover {
    opacity: 1;
}

.gallery-thumbs .thumb-item img {
    width: 100%;
    height: 60px;
    object-fit: cover;
}

/* Content Image Styles */
.content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Content Section Styles */
.content-section {
    position: relative;
    padding: 1rem 0;
}

.content-section:not(:last-child) {
    margin-bottom: 2rem;
}

.content-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--bs-primary) 50%, 
        transparent 100%
    );
    opacity: 0.1;
}

.content-section:last-child::after {
    display: none;
}

.content-section .row {
    min-height: 350px;
}

/* Image Wrapper Styles */
.image-wrapper {
    position: relative;
    height: 100%;
    min-height: 400px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.image-wrapper:hover {
    transform: scale(1.02);
}

.section-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* Content Wrapper Styles */
.content-wrapper {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4a4a4a;
}

/* Content Style for Pillar Pages */
.content-style {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4a4a4a;
}

.content-style h2 {
    color: var(--bs-primary);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.content-style img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Accordion Styles */
.accordion-button:not(.collapsed) {
    background-color: transparent;
    box-shadow: none;
    color: var(--bs-primary);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,.125);
}

/* Media Queries */
@media (max-width: 767px) {
    .sticky-top {
        position: relative !important;
        top: 0 !important;
    }
    
    .image-wrapper {
        min-height: 300px;
    }
    
    .content-wrapper {
        padding: 1.5rem;
    }
    
    .content-section .row {
        min-height: auto;
    }
}

/* ============================================
   AGENCY DASHBOARD STYLES
   ============================================ */

/* Icon colors for agency dashboard */
.icon-primary {
    color: var(--primary-orange);
}

/* Agency card styles */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Mobile bottom navigation spacing */
@media (max-width: 991px) {
    main {
        padding-bottom: 4rem;
    }
}

/* Agency nav link active state */
.navbar-nav .nav-link.active {
    color: var(--primary-orange) !important;
    font-weight: 600;
}

/* ============================================
   FOOTER STYLES
   ============================================ */

footer {
    background-color: #f8f9fa;
}

footer h5, footer h6 {
    color: var(--text-dark);
}

footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--primary-orange) !important;
}

footer .icon-primary {
    color: var(--primary-orange);
}

footer .social-icon {
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #fff;
    transition: all 0.3s ease;
}

footer .social-icon:hover {
    background-color: var(--primary-orange);
    color: #fff !important;
    transform: translateY(-3px);
}

/* ============================================
   AGENCY LEADS STYLES
   ============================================ */

.lead-card {
    transition: all 0.3s ease;
}

.lead-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15) !important;
}

.badge {
    font-weight: 500;
}

/* Pagination styling */
.pagination {
    margin-top: 1rem;
}

.pagination .page-link {
    color: var(--primary-orange);
    border-color: #dee2e6;
}

.pagination .page-link:hover {
    color: var(--primary-orange-dark);
    background-color: var(--secondary-warm-light);
    border-color: var(--primary-orange);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
}

/* Mobile responsive table */
@media (max-width: 768px) {
    .table-responsive table {
        font-size: 0.875rem;
    }
    
    .table-responsive td, .table-responsive th {
        padding: 0.5rem;
    }
}

/* ============================================
   AGENCY DASHBOARD LEAD CARDS
   ============================================ */
.accordion .card {
    transition: all 0.3s ease;
}

.accordion .card-header {
    cursor: pointer;
    transition: background-color 0.2s ease;
    user-select: none;
}

.accordion .card-header:hover {
    background-color: #f8f9fa !important;
}

.accordion .card-header .btn {
    pointer-events: auto;
}

.accordion .card-header .fa-chevron-down,
.accordion .card-header .fa-chevron-up {
    transition: transform 0.3s ease;
}

.accordion .collapse.show .card-body {
    border-top: 1px solid #dee2e6;
}

@media (max-width: 767px) {
    .accordion .card-header .d-flex {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .accordion .card-header .d-flex > div:first-child {
        width: 100%;
    }
    
    .accordion .card-header .d-flex > div:last-child {
        width: 100%;
        justify-content: space-between;
    }
    
    .accordion .card-header .row {
        margin: 0;
    }
    
    .accordion .card-header .row > div {
        padding: 0.25rem 0;
    }
}

/* ============================================
   SECONDARY SERVICES MENU
   ============================================ */
#servicesNav {
    padding: 0;
    border-bottom: 1px solid #dee2e6;
    min-height: 2.5rem;
    display: flex;
    align-items: stretch;
}

#servicesNav .navbar-nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: stretch;
    width: 100%;
}

#servicesNav .nav-item {
    display: flex;
    align-items: stretch;
}

#servicesNav .nav-link {
    color: var(--neutral-dark);
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    transition: color 0.2s ease, background-color 0.2s ease;
    border-radius: 4px;
    margin: 0;
    border: none;
    display: flex;
    align-items: center;
    height: 100%;
    line-height: 1;
}

#servicesNav .nav-link:hover {
    color: var(--primary-orange);
    background-color: rgba(255, 140, 0, 0.1);
}

#servicesNav .nav-link.active {
    color: var(--primary-orange);
    background-color: rgba(255, 140, 0, 0.1);
    font-weight: 500;
}

#servicesNav .navbar-toggler {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    align-self: center;
}

@media (max-width: 991px) {
    #servicesNav {
        padding: 0;
        min-height: auto;
    }
    
    #servicesNav .navbar-collapse {
        margin-top: 0;
        padding: 0;
    }
    
    #servicesNav .navbar-nav {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }
    
    #servicesNav .nav-item {
        width: 100%;
    }
    
    #servicesNav .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 0;
        text-align: left;
        height: auto;
    }
}

/* Category Cards Hover Effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
    text-decoration: none;
}

.hover-lift:hover .card-title {
    color: var(--primary-orange);
}
