/**
 * SECTIONS CSS
 * 
 * Standardized CSS for all section views.
 * This file contains:
 * 1. Theme CSS variables (dark/light modes)
 * 2. Common section layout classes
 * 3. Section header styles
 * 4. Section background/overlay styles
 * 
 * Usage: All sections use data-section-theme="dark|light" attribute
 * which automatically applies the correct color scheme.
 */

/* ============================================================================
 * SECTION THEME VARIABLES
 * These CSS variables are set based on data-section-theme attribute
 * Sections should use var(--section-*) instead of hardcoded colors
 * ============================================================================ */

/* Default/Dark Theme Variables */
[data-section-theme="dark"],
.section-bg-primary,
.section-bg-secondary {
    --section-bg: transparent;
    --section-text: #ffffff;
    --section-text-muted: rgba(255, 255, 255, 0.7);
    --section-heading: #ffffff;
    --section-subheading: rgba(255, 255, 255, 0.85);
    --section-label: var(--theme-primary, #c9a962);
    --section-divider: var(--theme-primary, #c9a962);
    --section-border: rgba(255, 255, 255, 0.15);
    --section-card-bg: rgba(255, 255, 255, 0.05);
    --section-card-hover-bg: rgba(255, 255, 255, 0.1);
    --section-link: var(--theme-primary, #c9a962);
    --section-link-hover: #ffffff;
    --section-icon: var(--theme-primary, #c9a962);
    --section-btn-bg: var(--theme-primary, #c9a962);
    --section-btn-text: #000000;
    --section-btn-hover-bg: #ffffff;
    --section-btn-hover-text: #000000;
    --section-input-bg: rgba(255, 255, 255, 0.1);
    --section-input-border: rgba(255, 255, 255, 0.2);
    --section-input-text: #ffffff;
    --section-input-placeholder: rgba(255, 255, 255, 0.5);
}

/* Light Theme Variables */
[data-section-theme="light"] {
    --section-bg: transparent;
    --section-text: #333333;
    --section-text-muted: rgba(0, 0, 0, 0.6);
    --section-heading: #1a1a1a;
    --section-subheading: #555555;
    --section-label: var(--theme-primary, #c9a962);
    --section-divider: var(--theme-primary, #c9a962);
    --section-border: rgba(0, 0, 0, 0.1);
    --section-card-bg: rgba(0, 0, 0, 0.03);
    --section-card-hover-bg: rgba(0, 0, 0, 0.06);
    --section-link: var(--theme-primary-dark, #a88a4a);
    --section-link-hover: #1a1a1a;
    --section-icon: var(--theme-primary, #c9a962);
    --section-btn-bg: var(--theme-primary, #c9a962);
    --section-btn-text: #ffffff;
    --section-btn-hover-bg: #1a1a1a;
    --section-btn-hover-text: #ffffff;
    --section-input-bg: #ffffff;
    --section-input-border: rgba(0, 0, 0, 0.15);
    --section-input-text: #333333;
    --section-input-placeholder: rgba(0, 0, 0, 0.4);
}


/* ============================================================================
 * COMMON SECTION STYLES
 * ============================================================================ */

/* Section padding standard */
.section-padding {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
}

/* Section with background image */
.section-has-bg {
    position: relative;
}

.section-has-bg > .container,
.section-has-bg > .container-fluid {
    position: relative;
    z-index: 2;
}

/* Section background image layer */
.section-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Background position classes */
.bg-pos-center { background-position: center center; }
.bg-pos-top { background-position: center top; }
.bg-pos-bottom { background-position: center bottom; }
.bg-pos-left { background-position: left center; }
.bg-pos-right { background-position: right center; }

/* Background size classes */
.bg-size-cover { background-size: cover; }
.bg-size-contain { background-size: contain; }
.bg-size-auto { background-size: auto; }

/* Background attachment (parallax) */
.bg-attach-scroll { background-attachment: scroll; }
.bg-attach-fixed { background-attachment: fixed; }

@media (max-width: 991px) {
    /* Disable fixed attachment on mobile for performance */
    .bg-attach-fixed { background-attachment: scroll; }
}

/* Section overlay layer */
.section-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}


/* ============================================================================
 * SECTION HEADER STYLES
 * ============================================================================ */

.section-header {
    margin-bottom: 40px;
}

.section-header.text-center .section-divider {
    margin-left: auto;
    margin-right: auto;
}

.section-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--section-label);
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--section-heading);
    margin-bottom: 15px;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--section-text-muted);
    max-width: 700px;
    margin: 0 auto 20px;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--section-divider);
    border: none;
    margin-bottom: 30px;
}


/* ============================================================================
 * SECTION CARD STYLES (for consistent card styling across sections)
 * ============================================================================ */

.section-card {
    background: var(--section-card-bg);
    border: 1px solid var(--section-border);
    border-radius: 8px;
    padding: 25px;
    transition: all 0.3s ease;
}

.section-card:hover {
    background: var(--section-card-hover-bg);
    transform: translateY(-3px);
}

.section-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--section-heading);
    margin-bottom: 10px;
}

.section-card-text {
    color: var(--section-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}


/* ============================================================================
 * SECTION FORM STYLES (for contact forms etc)
 * ============================================================================ */

.section-form .form-control,
.section-form .form-select {
    background: var(--section-input-bg);
    border: 1px solid var(--section-input-border);
    color: var(--section-input-text);
    padding: 12px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.section-form .form-control::placeholder {
    color: var(--section-input-placeholder);
}

.section-form .form-control:focus,
.section-form .form-select:focus {
    border-color: var(--section-label);
    box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.15);
    outline: none;
}

.section-form .form-label {
    color: var(--section-text);
    font-weight: 500;
    margin-bottom: 8px;
}


/* ============================================================================
 * SECTION BUTTON STYLES
 * ============================================================================ */

.btn-section {
    display: inline-block;
    padding: 12px 30px;
    background: var(--section-btn-bg);
    color: var(--section-btn-text);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-section:hover {
    background: var(--section-btn-hover-bg);
    color: var(--section-btn-hover-text);
    transform: translateY(-2px);
}

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

.btn-section-outline:hover {
    background: var(--section-btn-bg);
    color: var(--section-btn-text);
}


/* ============================================================================
 * SECTION ICON STYLES
 * ============================================================================ */

.section-icon {
    color: var(--section-icon);
    font-size: 2rem;
    margin-bottom: 15px;
}

.section-icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--section-card-bg);
    border: 2px solid var(--section-icon);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.section-icon-circle i {
    color: var(--section-icon);
    font-size: 1.5rem;
}


/* ============================================================================
 * SECTION LINK STYLES
 * ============================================================================ */

.section-link {
    color: var(--section-link);
    text-decoration: none;
    transition: color 0.3s ease;
}

.section-link:hover {
    color: var(--section-link-hover);
}

/* Social links in sections */
.section-social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.section-social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--section-card-bg);
    border: 1px solid var(--section-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--section-text);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.section-social-link:hover {
    background: var(--section-icon);
    border-color: var(--section-icon);
    color: #ffffff;
    transform: translateY(-3px);
}


/* ============================================================================
 * CTA BANNER SECTION STYLES
 * ============================================================================ */

.section-cta-banner {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: #1a1a1a;
    overflow: hidden;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 80px 30px;
    max-width: 800px;
}

.cta-heading {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-subheading {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    line-height: 1.7;
}

.circular-button-wrapper {
    display: inline-block;
}

.circular-button {
    position: relative;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin: 0 auto;
}

.circular-text {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rotateText 15s linear infinite;
}

.circular-text-path {
    fill: #ffffff;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-weight: 500;
}

.button-center {
    width: 80px;
    height: 80px;
    background: var(--accent-color, #c9a962);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a0a0a;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.circular-button:hover .button-center {
    transform: scale(1.1);
    background: #ffffff;
}

.circular-button:hover .circular-text {
    animation-duration: 8s;
}

@keyframes rotateText {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 991px) {
    .section-cta-banner {
        min-height: 400px;
        background-attachment: scroll;
    }
    
    .cta-heading {
        font-size: 2.4rem;
    }
}

@media (max-width: 767px) {
    .cta-content {
        padding: 60px 20px;
    }
    
    .cta-heading {
        font-size: 2rem;
    }
    
    .cta-subheading {
        font-size: 1rem;
    }
    
    .circular-button {
        width: 140px;
        height: 140px;
    }
    
    .button-center {
        width: 70px;
        height: 70px;
        font-size: 0.75rem;
    }
    
    .circular-text-path {
        font-size: 10px;
        letter-spacing: 3px;
    }
}


/* ============================================================================
 * STATS COUNTER SECTION STYLES
 * ============================================================================ */

.section-stats {
    background: var(--accent-color, var(--primary-color, #888));
    padding: 45px 0;
}

/* Light theme - dark text on light background */
.section-stats[data-section-theme="light"] {
    background: #f8f9fa;
}

.section-stats[data-section-theme="light"] .stat-number {
    color: #212529;
    text-shadow: none;
}

.section-stats[data-section-theme="light"] .stat-label {
    color: rgba(0, 0, 0, 0.7);
}

.section-stats[data-section-theme="light"] .stat-divider {
    background: rgba(0, 0, 0, 0.2);
}

.section-stats[data-section-theme="light"] .stats-placeholder p {
    color: #6c757d;
}

/* Dark theme - light text on dark background */
.section-stats[data-section-theme="dark"] {
    background: #212529;
}

.section-stats[data-section-theme="dark"] .stat-number {
    color: #ffffff;
    text-shadow: none;
}

.section-stats[data-section-theme="dark"] .stat-label {
    color: rgba(255, 255, 255, 0.8);
}

.section-stats[data-section-theme="dark"] .stat-divider {
    background: rgba(255, 255, 255, 0.3);
}

.section-stats[data-section-theme="dark"] .stats-placeholder p {
    color: rgba(255, 255, 255, 0.7);
}

/* Section theme overrides site mode */
[data-mode="light"] .section-stats[data-section-theme="dark"] {
    background: #212529;
}

[data-mode="light"] .section-stats[data-section-theme="dark"] .stat-number {
    color: #ffffff !important;
}

[data-mode="light"] .section-stats[data-section-theme="dark"] .stat-label {
    color: rgba(255, 255, 255, 0.8) !important;
}

[data-mode="light"] .section-stats[data-section-theme="dark"] .stat-divider {
    background: rgba(255, 255, 255, 0.3) !important;
}

[data-mode="dark"] .section-stats[data-section-theme="light"] {
    background: #f8f9fa;
}

[data-mode="dark"] .section-stats[data-section-theme="light"] .stat-number {
    color: #212529 !important;
}

[data-mode="dark"] .section-stats[data-section-theme="light"] .stat-label {
    color: rgba(0, 0, 0, 0.7) !important;
}

[data-mode="dark"] .section-stats[data-section-theme="light"] .stat-divider {
    background: rgba(0, 0, 0, 0.2) !important;
}

.stats-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.stats-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 50px;
    text-align: center;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    font-style: italic;
    color: #ffffff;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    margin-top: 10px;
}

.stat-divider {
    width: 1px;
    height: 70px;
    background: rgba(255, 255, 255, 0.35);
    margin: 0 15px;
}

@media (max-width: 991px) {
    .stat-item {
        padding: 15px 30px;
    }
    
    .stat-number {
        font-size: 2.8rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
        letter-spacing: 1.5px;
    }
    
    .stat-divider {
        height: 55px;
    }
}

@media (max-width: 767px) {
    .section-stats {
        padding: 35px 0;
    }
    
    .stats-row {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .stat-item {
        flex: 0 0 45%;
        padding: 20px 15px;
    }
    
    .stat-divider {
        display: none;
    }
    
    .stat-number {
        font-size: 2.4rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .stat-item {
        flex: 0 0 100%;
    }
}


/* ============================================================================
 * BOOKING CTA SECTION STYLES
 * ============================================================================ */

.booking-cta-section {
    position: relative;
    padding: 5rem 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    overflow: hidden;
}

.booking-cta-section.has-bg {
    padding: 6rem 0;
}

.booking-cta-section .cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.booking-cta-section .cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.booking-cta-section .cta-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

/* Rotating Circle Container */
.cta-circle-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rotating-text-container {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rotateText 20s linear infinite;
}

.rotating-text-svg {
    width: 100%;
    height: 100%;
}

.rotating-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    fill: #ffffff;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Center Button */
.cta-button-circle {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    background: transparent;
    border: 2px solid #ffffff;
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-align: center;
    padding: 1rem;
}

.cta-button-circle:hover {
    background: #ffffff;
    color: #000000;
    transform: scale(1.05);
}

/* Right Side Text */
.booking-cta-section .cta-text {
    flex: 1;
    max-width: 600px;
}

.booking-cta-section .cta-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.booking-cta-section .cta-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

.booking-cta-section .cta-description {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin: 0;
}

/* Light Theme - Dark text on light background */
.booking-cta-section[data-section-theme="light"] {
    background: #f8f9fa;
}

.booking-cta-section[data-section-theme="light"] .rotating-text {
    fill: #212529;
}

.booking-cta-section[data-section-theme="light"] .cta-button-circle {
    border-color: #212529;
    color: #212529;
}

.booking-cta-section[data-section-theme="light"] .cta-button-circle:hover {
    background: #212529;
    color: #ffffff;
}

.booking-cta-section[data-section-theme="light"] .cta-title {
    color: #212529;
}

.booking-cta-section[data-section-theme="light"] .cta-subtitle {
    color: rgba(0, 0, 0, 0.8);
}

.booking-cta-section[data-section-theme="light"] .cta-description {
    color: rgba(0, 0, 0, 0.7);
}

.booking-cta-section[data-section-theme="light"]::before,
.booking-cta-section[data-section-theme="light"]::after {
    border-color: rgba(0, 0, 0, 0.1);
}

/* Dark Theme - Light text on dark background */
.booking-cta-section[data-section-theme="dark"] {
    background: #212529;
}

.booking-cta-section[data-section-theme="dark"] .rotating-text {
    fill: #ffffff;
}

.booking-cta-section[data-section-theme="dark"] .cta-button-circle {
    border-color: #ffffff;
    color: #ffffff;
}

.booking-cta-section[data-section-theme="dark"] .cta-button-circle:hover {
    background: #ffffff;
    color: #000000;
}

.booking-cta-section[data-section-theme="dark"] .cta-title {
    color: #ffffff;
}

.booking-cta-section[data-section-theme="dark"] .cta-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.booking-cta-section[data-section-theme="dark"] .cta-description {
    color: rgba(255, 255, 255, 0.85);
}

.booking-cta-section[data-section-theme="dark"]::before,
.booking-cta-section[data-section-theme="dark"]::after {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Decorative elements */
.booking-cta-section::before,
.booking-cta-section::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border: 1px solid rgba(201, 169, 98, 0.15);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.booking-cta-section::before {
    top: -100px;
    left: -100px;
}

.booking-cta-section::after {
    bottom: -100px;
    right: -100px;
}

@media (max-width: 991.98px) {
    .booking-cta-section .cta-content {
        gap: 3rem;
    }
    
    .cta-circle-wrapper {
        width: 180px;
        height: 180px;
    }
    
    .cta-button-circle {
        width: 100px;
        height: 100px;
        font-size: 0.75rem;
    }
    
    .booking-cta-section .cta-title {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .booking-cta-section {
        padding: 4rem 0;
    }
    
    .booking-cta-section .cta-content {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
    }
    
    .cta-circle-wrapper {
        width: 200px;
        height: 200px;
    }
    
    .cta-button-circle {
        width: 110px;
        height: 110px;
        font-size: 0.8rem;
    }
    
    .booking-cta-section .cta-text {
        max-width: 100%;
    }
    
    .booking-cta-section .cta-title {
        font-size: 1.75rem;
    }
    
    .booking-cta-section .cta-description {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .cta-circle-wrapper {
        width: 170px;
        height: 170px;
    }
    
    .cta-button-circle {
        width: 95px;
        height: 95px;
        font-size: 0.7rem;
    }
    
    .rotating-text {
        font-size: 10px;
    }
}


/* ============================================================================
 * INSTAGRAM FEED SECTION STYLES
 * ============================================================================ */

.instagram-feed-section {
    padding: 3rem 0;
    width: 100%;
}

.instagram-embed-container {
    width: 100%;
    overflow: hidden;
}

.instagram-embed-container iframe,
.instagram-embed-container .elfsight-app-instagram,
.instagram-embed-container > div {
    width: 100% !important;
    max-width: 100% !important;
}

.instagram-placeholder {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin: 0 2rem;
}

.instagram-placeholder i {
    font-size: 4rem;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.instagram-placeholder p {
    color: var(--section-text-muted, rgba(255, 255, 255, 0.7));
    margin-bottom: 0.5rem;
}

.instagram-placeholder small {
    color: var(--section-text-muted, rgba(255, 255, 255, 0.4));
}


/* ============================================================================
 * PAGE SIDEBAR LAYOUT STYLES
 * Used when pages have layout_type set to sidebar-left or sidebar-right
 * ============================================================================ */

.page-with-sidebar {
    display: flex;
    min-height: calc(100vh - 80px); /* Account for navbar */
    margin-top: 80px; /* Space for fixed navbar */
}

.page-with-sidebar.sidebar-left {
    flex-direction: row;
}

.page-with-sidebar.sidebar-right {
    flex-direction: row-reverse;
}

/* Sidebar */
.page-sidebar {
    width: 280px;
    min-width: 280px;
    background: var(--section-card-bg, rgba(255, 255, 255, 0.05));
    border-right: 1px solid var(--section-border, rgba(255, 255, 255, 0.15));
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    z-index: 100;
}

.sidebar-right .page-sidebar {
    border-right: none;
    border-left: 1px solid var(--section-border, rgba(255, 255, 255, 0.15));
}

.sidebar-nav {
    padding: 1.5rem 0;
}

.sidebar-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-nav-item {
    margin: 0;
    padding: 0;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: var(--section-text, #ffffff);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.sidebar-right .sidebar-nav-link {
    border-left: none;
    border-right: 3px solid transparent;
}

.sidebar-nav-link:hover {
    background: var(--section-card-hover-bg, rgba(255, 255, 255, 0.1));
    color: var(--section-link, var(--theme-primary, #c9a962));
}

.sidebar-nav-item.active .sidebar-nav-link {
    background: var(--section-card-hover-bg, rgba(255, 255, 255, 0.1));
    border-left-color: var(--section-link, var(--theme-primary, #c9a962));
    color: var(--section-link, var(--theme-primary, #c9a962));
}

.sidebar-right .sidebar-nav-item.active .sidebar-nav-link {
    border-left-color: transparent;
    border-right-color: var(--section-link, var(--theme-primary, #c9a962));
}

.sidebar-nav-image {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--section-card-bg, rgba(255, 255, 255, 0.05));
}

.sidebar-nav-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-nav-title {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.3;
}

/* Main content area */
.page-main-content {
    flex: 1;
    min-width: 0; /* Allow content to shrink below flex basis */
}

/* Adjust sections inside sidebar layout */
.page-main-content section {
    /* Sections should not have top margin as sidebar layout manages spacing */
}

/* Mobile responsive */
@media (max-width: 991px) {
    .page-with-sidebar {
        flex-direction: column;
        margin-top: 0;
    }
    
    .page-sidebar {
        width: 100%;
        min-width: 100%;
        height: auto;
        position: relative;
        top: 0;
        border-right: none;
        border-bottom: 1px solid var(--section-border, rgba(255, 255, 255, 0.15));
    }
    
    .sidebar-right .page-sidebar {
        border-left: none;
        border-bottom: 1px solid var(--section-border, rgba(255, 255, 255, 0.15));
    }
    
    .sidebar-nav-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
    }
    
    .sidebar-nav-link {
        padding: 0.5rem 0.875rem;
        border-radius: 20px;
        border-left: none !important;
        border-right: none !important;
        background: var(--section-card-bg, rgba(255, 255, 255, 0.05));
    }
    
    .sidebar-nav-item.active .sidebar-nav-link {
        background: var(--section-link, var(--theme-primary, #c9a962));
        color: #000000;
    }
    
    .sidebar-nav-image {
        width: 32px;
        height: 32px;
    }
    
    .sidebar-nav-title {
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .sidebar-nav-list {
        flex-direction: column;
        gap: 0;
    }
    
    .sidebar-nav-link {
        border-radius: 0;
        justify-content: flex-start;
    }
}


/* ============================================================================
 * FULLSCREEN CONTACT SECTION
 * Contact form with fullscreen background image on left, form on right
 * ============================================================================ */

.contact-fullscreen {
    position: relative;
    display: flex;
    overflow: hidden;
}

/* Background Image - Left Side */
.contact-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    z-index: 1;
}

.contact-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.contact-bg-gradient {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.contact-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background set inline via PHP based on section settings */
}

/* Form Container - Right Side */
.contact-form-wrapper {
    position: relative;
    z-index: 2;
    width: 50%;
    margin-left: 50%;
    background: var(--contact-form-bg, rgba(18, 18, 18, 0.97));
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 40px;
}

.contact-form-inner {
    width: 100%;
    max-width: 600px;
}

.contact-form-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--section-heading, #ffffff);
    margin-bottom: 15px;
}

.contact-form-divider {
    width: 60px;
    height: 3px;
    background: var(--section-divider, var(--theme-primary, #c9a962));
    margin-bottom: 25px;
}

.contact-form-subtitle {
    color: var(--section-text-muted, rgba(255, 255, 255, 0.8));
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.contact-form-subtitle .text-highlight {
    color: var(--section-label, var(--theme-primary, #c9a962));
}

.contact-form-note {
    color: var(--section-text-muted, rgba(255, 255, 255, 0.5));
    font-size: 0.85rem;
    margin-bottom: 25px;
}

/* Form Styles */
.contact-inquiry-form .form-label {
    color: var(--section-text, #ffffff);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.contact-inquiry-form .form-label .required {
    color: var(--section-label, var(--theme-primary, #c9a962));
    margin-left: 2px;
}

.contact-inquiry-form .form-label small {
    font-weight: 400;
    color: var(--section-text-muted, rgba(255, 255, 255, 0.5));
}

.contact-inquiry-form .form-control,
.contact-inquiry-form .form-select {
    background: var(--section-input-bg, rgba(255, 255, 255, 0.05));
    border: 1px solid var(--section-input-border, rgba(255, 255, 255, 0.15));
    color: var(--section-input-text, #ffffff);
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.contact-inquiry-form .form-control:focus,
.contact-inquiry-form .form-select:focus {
    background: var(--contact-input-focus-bg, rgba(255, 255, 255, 0.08));
    border-color: var(--section-label, var(--theme-primary, #c9a962));
    box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.15);
    outline: none;
}

.contact-inquiry-form .form-control::placeholder {
    color: var(--section-input-placeholder, rgba(255, 255, 255, 0.4));
}

.contact-inquiry-form .form-select {
    appearance: none;
    background-image: var(--contact-select-arrow, 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='%23ffffff' d='M6 8L1 3h10z'/%3E%3C/svg%3E"));
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.contact-inquiry-form .form-select option {
    background: var(--contact-option-bg, #1a1a1a);
    color: var(--contact-option-text, #ffffff);
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    background: var(--section-card-bg, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--section-border, rgba(255, 255, 255, 0.1));
    border-radius: 4px;
    transition: all 0.2s ease;
}

.checkbox-item:hover {
    background: var(--section-card-hover-bg, rgba(255, 255, 255, 0.06));
    border-color: var(--contact-checkbox-hover-border, rgba(255, 255, 255, 0.2));
}

.checkbox-item input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--contact-checkbox-border, rgba(255, 255, 255, 0.3));
    border-radius: 3px;
    margin-right: 10px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
    background: transparent;
}

.checkbox-item input[type="checkbox"]:checked {
    background: var(--section-label, var(--theme-primary, #c9a962));
    border-color: var(--section-label, var(--theme-primary, #c9a962));
}

.checkbox-item input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000000;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-label {
    color: var(--section-text, rgba(255, 255, 255, 0.85));
    font-size: 0.9rem;
}

/* Submit Button */
.contact-submit-btn {
    width: 100%;
    padding: 14px 30px;
    background: var(--section-btn-bg, var(--theme-primary, #c9a962));
    color: var(--section-btn-text, #000000);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-submit-btn:hover {
    background: var(--section-btn-hover-bg, #ffffff);
    color: var(--section-btn-hover-text, #000000);
    transform: translateY(-2px);
}

/* Contact Footer */
.contact-form-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--section-border, rgba(255, 255, 255, 0.1));
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-footer-link {
    color: var(--section-link, var(--theme-primary, #c9a962));
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.contact-footer-link:hover {
    color: var(--section-link-hover, #ffffff);
}

.contact-footer-link i {
    margin-right: 8px;
    width: 16px;
}

/* Dark Theme Variables for Contact */
[data-section-theme="dark"] .contact-form-wrapper {
    --contact-form-bg: rgba(18, 18, 18, 0.97);
    --contact-input-focus-bg: rgba(255, 255, 255, 0.08);
    --contact-select-arrow: 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='%23ffffff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    --contact-option-bg: #1a1a1a;
    --contact-option-text: #ffffff;
    --contact-checkbox-border: rgba(255, 255, 255, 0.3);
    --contact-checkbox-hover-border: rgba(255, 255, 255, 0.2);
}

/* Light Theme Variables for Contact */
[data-section-theme="light"] .contact-form-wrapper {
    --contact-form-bg: rgba(255, 255, 255, 0.97);
    --contact-input-focus-bg: rgba(0, 0, 0, 0.03);
    --contact-select-arrow: 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='%23333333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    --contact-option-bg: #ffffff;
    --contact-option-text: #333333;
    --contact-checkbox-border: rgba(0, 0, 0, 0.3);
    --contact-checkbox-hover-border: rgba(0, 0, 0, 0.2);
}

/* Flatpickr Custom Styles - Dark */
[data-section-theme="dark"] .flatpickr-calendar {
    background: #1a1a1a !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
}

[data-section-theme="dark"] .flatpickr-calendar .flatpickr-day {
    color: #ffffff;
}

[data-section-theme="dark"] .flatpickr-calendar .flatpickr-day:hover {
    background: rgba(201, 169, 98, 0.3);
    border-color: var(--theme-primary, #c9a962);
}

[data-section-theme="dark"] .flatpickr-calendar .flatpickr-day.selected {
    background: var(--theme-primary, #c9a962) !important;
    border-color: var(--theme-primary, #c9a962) !important;
    color: #000000 !important;
}

/* Flatpickr Custom Styles - Light */
[data-section-theme="light"] .flatpickr-calendar {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
}

[data-section-theme="light"] .flatpickr-calendar .flatpickr-day {
    color: #333333;
}

[data-section-theme="light"] .flatpickr-calendar .flatpickr-day:hover {
    background: rgba(201, 169, 98, 0.2);
    border-color: var(--theme-primary, #c9a962);
}

[data-section-theme="light"] .flatpickr-calendar .flatpickr-day.selected {
    background: var(--theme-primary, #c9a962) !important;
    border-color: var(--theme-primary, #c9a962) !important;
    color: #000000 !important;
}

/* Responsive - Tablet and Mobile */
@media (max-width: 1024px) {
    .contact-fullscreen {
        flex-direction: column;
    }
    
    .contact-bg-image {
        position: relative;
        width: 100%;
        height: 50vw;
        max-height: 450px;
        min-height: 300px;
    }
    
    .contact-form-wrapper {
        width: 100%;
        margin-left: 0;
        padding: 50px 30px;
    }
    
    .contact-form-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .contact-bg-image {
        height: 40vh;
        min-height: 280px;
    }
    
    .contact-form-wrapper {
        padding: 40px 20px;
    }
    
    .contact-form-title {
        font-size: 1.75rem;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .checkbox-item {
        padding: 10px 14px;
    }
}

@media (max-width: 480px) {
    .contact-bg-image {
        height: 35vh;
        min-height: 220px;
    }
    
    .contact-form-wrapper {
        padding: 30px 15px;
    }
    
    .contact-form-title {
        font-size: 1.5rem;
    }
    
    .contact-form-subtitle {
        font-size: 0.9rem;
    }
}

/* ============================================================================
 * TEXT BLOCK SECTION STYLES
 * ============================================================================ */

.text-block-section {
    position: relative;
}

.text-block-section .section-content {
    color: var(--section-text);
}

.text-block-section .section-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.text-block-section .section-content p:last-child {
    margin-bottom: 0;
}

/* Text alignment classes */
.text-block-section.text-left {
    text-align: left;
}

.text-block-section.text-center {
    text-align: center;
}

.text-block-section.text-right {
    text-align: right;
}

/* Side image layout */
.text-block-with-image {
    display: flex;
    align-items: center;
    gap: 60px;
}

.text-block-with-image.image-left {
    flex-direction: row;
}

.text-block-with-image.image-right {
    flex-direction: row-reverse;
}

.text-block-image-wrapper {
    flex: 0 0 45%;
    max-width: 45%;
}

.text-block-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.text-block-content-wrapper {
    flex: 1;
}

/* Button styles */
.text-block-section .btn-primary {
    background-color: var(--section-btn-bg);
    color: var(--section-btn-text);
    border: none;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 1.5rem;
}

.text-block-section .btn-primary:hover {
    background-color: var(--section-btn-hover-bg);
    color: var(--section-btn-hover-text);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 991px) {
    .text-block-with-image {
        flex-direction: column !important;
        gap: 40px;
    }

    .text-block-image-wrapper {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .text-block-with-image.image-left .text-block-image-wrapper,
    .text-block-with-image.image-right .text-block-image-wrapper {
        order: -1;
    }
}

@media (max-width: 768px) {
    .text-block-section .section-content p {
        font-size: 1rem;
    }

    .text-block-section .btn-primary {
        padding: 12px 28px;
        font-size: 0.9rem;
    }
}


/* ============================================================================
 * FAQ ACCORDION STYLES - Dark/Light Theme Support
 * ============================================================================ */

/* Accordion item container */
.accordion-item {
    background-color: transparent;
    border: 1px solid var(--section-border);
    border-radius: 8px !important;
    overflow: hidden;
}

/* Accordion button (question) */
.accordion-button {
    background-color: var(--section-card-bg);
    color: var(--section-heading);
    font-weight: 600;
    font-size: 1.05rem;
    padding: 1.25rem 1.5rem;
    border: none;
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    background-color: var(--section-card-hover-bg);
    color: var(--section-heading);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--section-border);
}

.accordion-button:hover {
    background-color: var(--section-card-hover-bg);
}

/* Accordion arrow icon */
.accordion-button::after {
    background-image: none;
    content: '';
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--section-text);
    border-bottom: 2px solid var(--section-text);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-left: auto;
    flex-shrink: 0;
}

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

/* Accordion body (answer) */
.accordion-collapse {
    background-color: var(--section-card-bg);
}

.accordion-body {
    color: var(--section-text);
    padding: 1.25rem 1.5rem;
    line-height: 1.7;
    border-top: 1px solid var(--section-border);
}

/* Dark theme specific overrides */
[data-section-theme="dark"] .accordion-item {
    border-color: rgba(255, 255, 255, 0.15);
}

[data-section-theme="dark"] .accordion-button {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

[data-section-theme="dark"] .accordion-button:not(.collapsed),
[data-section-theme="dark"] .accordion-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

[data-section-theme="dark"] .accordion-collapse {
    background-color: rgba(255, 255, 255, 0.03);
}

[data-section-theme="dark"] .accordion-body {
    color: rgba(255, 255, 255, 0.85);
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* Light theme specific overrides */
[data-section-theme="light"] .accordion-item {
    border-color: rgba(0, 0, 0, 0.1);
}

[data-section-theme="light"] .accordion-button {
    background-color: rgba(0, 0, 0, 0.02);
    color: #1a1a1a;
}

[data-section-theme="light"] .accordion-button:not(.collapsed),
[data-section-theme="light"] .accordion-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

[data-section-theme="light"] .accordion-collapse {
    background-color: rgba(0, 0, 0, 0.02);
}

[data-section-theme="light"] .accordion-body {
    color: #333333;
    border-top-color: rgba(0, 0, 0, 0.08);
}