/* Amil Sindhis Website - Rustic Design */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@400;500;600;700&display=swap');

/* ===== Variables ===== */
:root {
    --primary-color: #8B1E2B;
    --primary-dark: #5A121C;
    --primary-light: #A62B3B;
    --secondary-color: #1A2F56;
    --accent-color: #D29F4F;
    --text-dark: #2A1E18;
    --text-light: #7A6B5D;
    --text-white: #FEFCF8;
    --bg-light: #F5EDE0;
    --bg-cream: #FDF8F0;
    --bg-dark: #5A121C;
    --bg-card: #FFFCF5;
    --border-color: #D4C5A9;
    --border-light: #E8DDCC;
    --shadow-sm: 0 2px 8px rgba(42, 30, 24, 0.06);
    --shadow-md: 0 4px 20px rgba(42, 30, 24, 0.08);
    --shadow-lg: 0 8px 32px rgba(42, 30, 24, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--bg-cream);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.35rem; }
h5 { font-size: 1.15rem; }
h6 { font-size: 1rem; }

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Top Bar ===== */
.top-bar {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 8px 0;
    font-size: 0.875rem;
    border-bottom: 3px solid var(--accent-color);
}

.top-bar-info span {
    display: inline-flex;
    align-items: center;
}

.top-bar-info i {
    color: var(--accent-color);
}

.top-bar-social .social-link {
    color: var(--text-white);
    margin-left: 12px;
    opacity: 0.85;
}

.top-bar-social .social-link:hover {
    opacity: 1;
    color: var(--accent-color);
}

/* ===== Navbar ===== */
.navbar {
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-light);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--text-dark) !important;
    letter-spacing: -0.01em;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.brand-text {
    color: var(--text-dark);
    font-size: 1.4rem;
}

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

.navbar-toggler:focus {
    box-shadow: none;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 0.75rem 1rem !important;
    position: relative;
    font-family: var(--font-body);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
    border-radius: 1px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-buttons .btn {
    margin-left: 0.5rem;
}

/* ===== Topbar dropdowns (Engage / Explore) ===== */

/* Caret indicator on the dropdown toggle */
.navbar .nav-item.dropdown > .nav-link .dropdown-caret {
    display: inline-block;
    transition: transform 0.15s ease;
    opacity: 0.7;
}
.navbar .nav-item.dropdown.show > .nav-link .dropdown-caret,
.navbar .nav-item.dropdown > .nav-link[aria-expanded="true"] .dropdown-caret {
    transform: rotate(180deg);
}

/* Parent toggle (Engage / Explore): no underline indicator */
.navbar .nav-item.dropdown > .nav-link {
    cursor: pointer;
}
.navbar .nav-item.dropdown > .nav-link::after,
.navbar .nav-item.dropdown > .nav-link:hover::after {
    display: none;
}
.navbar .nav-item.dropdown > .nav-link:hover,
.navbar .nav-item.dropdown > .nav-link[aria-expanded="true"] {
    color: var(--primary-color) !important;
}

/* Highlight parent toggle when a child page is active */
.navbar .nav-item.dropdown.active-group > .nav-link {
    color: var(--primary-color) !important;
}

/* Dropdown menu styling — match brand */
.navbar .dropdown-menu {
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(42, 30, 24, 0.12);
    padding: 0.5rem 0;
    margin-top: 0.25rem;
}
.navbar .dropdown-item {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    transition: var(--transition);
}
.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background: var(--bg-light);
    color: var(--primary-color);
}
.navbar .dropdown-item.active,
.navbar .dropdown-item:active {
    background: var(--primary-color);
    color: #fff;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #5A121C 0%, #8B1E2B 50%, #A62B3B 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/ajrak_ochre.svg'), url('../images/ajrak_dark_blue.svg');
    background-position: 0 0, 186px 186px;
    background-size: 372px 372px;
    background-repeat: repeat;
    opacity: 0.3;
    pointer-events: none;
}

/* Section with ochre ajrak pattern overlay */
.section-ajrak-ochre::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/ajrak_ochre.svg'), url('../images/ajrak_dark_blue.svg');
    background-position: 0 0, 112px 112px;
    background-size: 223px 223px;
    background-repeat: repeat;
    opacity: 0.25;
    pointer-events: none;
}
.section-ajrak-ochre {
    position: relative;
    overflow: hidden;
}
.section-ajrak-ochre > .container {
    position: relative;
    z-index: 1;
}

.hero-kap-logo {
    height: auto;
    opacity: 0.9;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

/* Hero Carousel */
.hero-carousel .hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}
.hero-carousel .hero-slide.active {
    opacity: 1;
}
.hero-carousel .hero-content,
.hero-carousel .hero-image,
.hero-carousel .hero-shape {
    z-index: 2;
}
.carousel-indicators-custom {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}
.carousel-indicators-custom button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}
.carousel-indicators-custom button.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        var(--secondary-color) 0 16.6%,
        var(--accent-color) 16.6% 33.3%,
        var(--primary-color) 33.3% 50%,
        var(--accent-color) 50% 66.6%,
        var(--secondary-color) 66.6% 83.3%,
        var(--primary-color) 83.3% 100%);
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--text-white);
}

.hero-content h1 {
    color: white;
}

.hero-content .breadcrumb-item + .breadcrumb-item::before {
    color: var(--accent-color);
    opacity: 0.9;
}

.hero-content .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
}

.hero-content .breadcrumb-item a:hover {
    color: white;
}

.hero-content .breadcrumb-item.active {
    color: var(--accent-color);
}

.hero-org-name {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.8s ease-out;
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--accent-color);
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out;
    font-family: var(--font-heading);
}

.hero-title .text-gradient {
    background: linear-gradient(135deg, #A0742E, #E5BC74);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.85;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
    line-height: 1.7;
}

.hero-cta {
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

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

.hero-image {
    position: relative;
    z-index: 2;
    animation: fadeIn 1s ease-out 0.6s backwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-shape {
    position: absolute;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(80px);
}

.hero-shape {
    position: absolute;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(80px);
}

.hero-shape-1 {
    top: -150px;
    right: -100px;
}

.hero-shape-2 {
    bottom: -150px;
    left: -100px;
}

/* ===== Buttons ===== */
.btn {
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
    box-shadow: none;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: #E04400;
}

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

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

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

.btn-outline-light:hover {
    background: var(--text-white);
    color: var(--primary-dark);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

/* ===== Section Styles ===== */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 400;
}

.section-light {
    background: var(--bg-light);
}

.section-dark {
    background: var(--bg-dark);
    color: var(--text-white);
}

.section-dark .section-title,
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
    color: var(--text-white);
}

.section-dark .section-title::after {
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
}

.section-dark .section-subtitle {
    color: rgba(255, 252, 248, 0.7);
}

/* ===== Cards ===== */
.card {
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
    background: var(--bg-card);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-color);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.card-text {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.card-footer {
    background: transparent;
    border-top: 1px solid var(--border-light);
    padding: 1rem 1.5rem;
}

/* ===== Feature Cards ===== */
.feature-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-color);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.5rem;
    color: var(--text-white);
    border: 2px solid var(--accent-color);
}

.feature-card h4 {
    margin-bottom: 0.75rem;
    font-family: var(--font-heading);
}

/* ===== Event Cards ===== */
.event-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-color);
}

.event-image {
    height: 180px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 3rem;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

.event-date {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--bg-card);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    text-align: center;
    box-shadow: var(--shadow-md);
    line-height: 1;
    border: 1px solid var(--border-light);
}

.event-date .day {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.event-date .month {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 0.05em;
}

.event-body {
    padding: 1.5rem;
}

.event-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.event-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.event-meta i {
    color: var(--secondary-color);
}

/* ===== Blog Cards ===== */
.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-color);
}

.blog-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 3rem;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-body {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.blog-meta i {
    color: var(--secondary-color);
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.blog-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== Rich Text Content ===== */
.blog-post-content,
.event-description {
    line-height: 1.8;
    color: var(--text-dark);
    font-size: 1.05rem;
}

.blog-post-content h4,
.blog-post-content h5,
.blog-post-content h6,
.event-description h4,
.event-description h5,
.event-description h6 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
}

.blog-post-content h4 { font-size: 1.4rem; }
.blog-post-content h5 { font-size: 1.2rem; }
.blog-post-content h6 { font-size: 1.1rem; }

.blog-post-content p,
.event-description p {
    margin-bottom: 1rem;
}

.blog-post-content ul,
.blog-post-content ol,
.event-description ul,
.event-description ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.blog-post-content li,
.event-description li {
    margin-bottom: 0.25rem;
}

.blog-post-content a,
.event-description a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.blog-post-content blockquote,
.event-description blockquote {
    border-left: 4px solid var(--secondary-color);
    padding-left: 1rem;
    margin: 1.25rem 0;
    font-style: italic;
    color: var(--text-light);
}

.blog-post-content img,
.event-description img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.blog-post-content pre,
.event-description pre {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
}

.blog-post-content code,
.event-description code {
    background: #f5f5f5;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
}

.blog-post-content table,
.event-description table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.blog-post-content th,
.blog-post-content td,
.event-description th,
.event-description td {
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.75rem;
}

.blog-post-content th,
.event-description th {
    background: var(--bg-light);
    font-weight: 600;
}

/* ===== Forms ===== */
.form-control {
    padding: 0.875rem 1.25rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    background: var(--bg-card);
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(255, 77, 0, 0.12);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-select {
    padding: 0.875rem 1.25rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
}

.form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(255, 77, 0, 0.12);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    opacity: 0.85;
}

.form-floating > .form-control:focus {
    border-color: var(--secondary-color);
}

/* ===== Accordion ===== */
.accordion-item {
    border: 1px solid var(--border-light);
    border-radius: 8px !important;
    overflow: hidden;
    margin-bottom: 0.75rem;
    background: var(--bg-card);
}

.accordion-button {
    font-weight: 600;
    color: var(--text-dark);
    background: var(--bg-card);
    border: none;
}

.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background: var(--bg-light);
    box-shadow: none;
}

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

.accordion-body {
    border-top: 1px solid var(--border-light);
}

/* ===== Alert ===== */
.alert {
    border-radius: 8px;
    border: none;
}

.alert-success {
    background: #E8F0E0;
    color: #4A6B3A;
}

.alert-info {
    background: #E8E0D8;
    color: #5C3A2E;
}

.alert-warning {
    background: #F0E8D0;
    color: #7A6530;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--bg-dark);
    color: var(--text-white);
    margin-top: 5rem;
    border-top: 4px solid var(--accent-color);
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 300px;
    height: 300px;
    background: url('../images/monochrome.svg') no-repeat center;
    background-size: contain;
    opacity: 0.06;
    pointer-events: none;
}

.footer-top {
    padding: 4rem 0;
}

.footer-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
    font-family: var(--font-heading);
    color: #fff !important;
    font-weight: 700;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
}

.footer-text {
    color: rgba(255, 252, 248, 0.7);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social .social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 252, 248, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-white);
}

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

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 252, 248, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: rgba(255, 252, 248, 0.7);
}

.footer-contact i {
    color: var(--accent-color);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 252, 248, 0.08);
}

.copyright {
    margin: 0;
    color: rgba(255, 252, 248, 0.6);
    font-size: 0.875rem;
}

.footer-legal {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: rgba(255, 252, 248, 0.6);
    font-size: 0.875rem;
}

.footer-legal a:hover {
    color: var(--accent-color);
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--text-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--accent-color);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* ===== Badge ===== */
.badge {
    border-radius: 4px;
    font-weight: 500;
    padding: 0.4rem 0.75rem;
}

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

.bg-warning {
    background: var(--accent-color) !important;
    color: var(--text-dark);
}

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

/* ===== Text Colors ===== */
.text-primary {
    color: var(--primary-color) !important;
}

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

.text-white-50 {
    color: rgba(255, 252, 248, 0.65) !important;
}

/* ===== Border Colors ===== */
.border-bottom {
    border-color: var(--border-light) !important;
}

/* ===== Gradient Classes ===== */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color)) !important;
}

/* ===== Dark Background Text Visibility ===== */
/* Apply to any element with a dark gradient/dark background to ensure text remains readable */
.bg-gradient-primary,
.bg-gradient-secondary,
.bg-dark,
.section-dark,
.hero,
.site-footer {
    --on-dark: #fff;
}

.bg-gradient-primary h1, .bg-gradient-primary h2, .bg-gradient-primary h3,
.bg-gradient-primary h4, .bg-gradient-primary h5, .bg-gradient-primary h6,
.bg-gradient-primary p, .bg-gradient-primary span, .bg-gradient-primary a,
.bg-gradient-primary i, .bg-gradient-primary small, .bg-gradient-primary label,
.bg-gradient-primary div, .bg-gradient-primary li,
.bg-gradient-secondary h1, .bg-gradient-secondary h2, .bg-gradient-secondary h3,
.bg-gradient-secondary h4, .bg-gradient-secondary h5, .bg-gradient-secondary h6,
.bg-gradient-secondary p, .bg-gradient-secondary span, .bg-gradient-secondary a,
.bg-gradient-secondary i, .bg-gradient-secondary small, .bg-gradient-secondary label,
.bg-gradient-secondary div, .bg-gradient-secondary li,
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6,
.bg-dark p, .bg-dark span, .bg-dark a, .bg-dark i, .bg-dark small,
.bg-dark label, .bg-dark div, .bg-dark li {
    color: inherit;
}

.bg-gradient-primary.text-white,
.bg-gradient-secondary.text-white,
.bg-dark.text-white {
    color: #fff !important;
}

.bg-gradient-primary.text-white *,
.bg-gradient-secondary.text-white *,
.bg-dark.text-white * {
    color: #fff !important;
}

.bg-gradient-primary .text-muted,
.bg-gradient-secondary .text-muted,
.bg-dark .text-muted,
.section-dark .text-muted {
    color: rgba(255, 255, 255, 0.78) !important;
}

.bg-gradient-primary .opacity-75,
.bg-gradient-secondary .opacity-75,
.bg-dark .opacity-75 {
    color: rgba(255, 255, 255, 0.85) !important;
    opacity: 1 !important;
}

.section-dark {
    background: var(--bg-dark);
    color: #fff;
}

.section-dark h1, .section-dark h2, .section-dark h3,
.section-dark h4, .section-dark h5, .section-dark h6,
.section-dark p, .section-dark label {
    color: #fff;
}

.section-dark .lead,
.section-dark .text-white-50 {
    color: rgba(255, 255, 255, 0.85) !important;
}

.hero h1, .hero h2, .hero h3, .hero h4, .hero h5, .hero h6,
.hero p, .hero span, .hero a, .hero label, .hero i {
    color: inherit;
}

/* ===== Utility Classes ===== */
.text-gradient {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 3rem 0;
}

/* ===== Loading States ===== */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* ===== Animations ===== */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===== Input Groups ===== */
.input-group-text {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 6px 0 0 6px;
    color: var(--text-dark);
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-org-name {
        font-size: 3rem;
    }

    .hero {
        min-height: auto;
        padding: 4rem 0;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .nav-buttons {
        margin-top: 1rem;
    }
}

@media (max-width: 767px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .hero-org-name {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 1.25rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .footer-legal {
        flex-direction: column;
        gap: 0.5rem;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

/* ===== Gallery Widget ===== */
.gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.gallery-thumb {
    width: 72px;
    height: 72px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--border-light);
    transition: var(--transition);
    position: relative;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: var(--secondary-color);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-thumb.view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-light);
    border-style: dashed;
}

.gallery-thumb.view-all:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

/* ===== Gallery Popup ===== */
.gallery-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.gallery-popup.active {
    display: flex;
}

.gallery-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
}

.gallery-popup-content {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.gallery-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-popup-close:hover {
    background: rgba(255,255,255,0.3);
}

.gallery-popup-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-width: 0;
}

.gallery-popup-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.gallery-popup-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-nav:hover {
    background: rgba(255,255,255,0.3);
}

.gallery-prev { left: 1rem; }
.gallery-next { right: 1rem; }

.gallery-popup-sidebar {
    width: 280px;
    background: rgba(0,0,0,0.6);
    padding: 1rem;
    overflow-y: auto;
    flex-shrink: 0;
}

.gallery-popup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.gallery-popup-grid-item {
    aspect-ratio: 1;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.gallery-popup-grid-item:hover {
    border-color: rgba(255,255,255,0.4);
}

.gallery-popup-grid-item.active {
    border-color: var(--secondary-color);
}

.gallery-popup-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .gallery-popup-sidebar {
        display: none;
    }
}

/* ===== Membership Cards ===== */
.membership-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.membership-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.membership-header h3 {
    color: #fff;
    font-weight: 700;
}

.membership-header.bg-dark h3,
.membership-header.bg-gradient-primary h3,
.membership-header.bg-gradient-secondary h3 {
    color: #fff;
}

.membership-body {
    background: #fff;
    color: var(--text-dark);
}

.membership-age .badge {
    color: #fff;
    font-weight: 600;
}

.membership-age .badge.bg-primary {
    background-color: var(--primary-color) !important;
    color: #fff !important;
}

.membership-age .badge.bg-warning {
    background-color: var(--secondary-color) !important;
    color: #fff !important;
}

.membership-age .badge.bg-info {
    background-color: var(--secondary-color) !important;
    color: #fff !important;
}

.membership-options .form-check-card {
    display: block;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: #fff;
    transition: var(--transition);
    cursor: pointer;
}

.membership-options .form-check-card:hover {
    border-color: var(--secondary-color);
    background: #FFF8F2;
}

.membership-options .form-check-input {
    margin-top: 0.35rem;
}

.membership-options .form-check-label {
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
    width: 100%;
}

.membership-options .form-check-label strong {
    color: var(--primary-color);
}

.membership-options .form-check-label .text-muted {
    color: var(--text-light) !important;
}

.membership-price {
    padding: 1.25rem;
    background: var(--bg-light);
    border-radius: 6px;
    margin-top: 1rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-period {
    display: block;
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 0.25rem;
    font-weight: 500;
}

/* ===== Footer Section Title Visibility ===== */
.footer-widget h5,
.footer-widget .footer-title,
.site-footer h5,
footer h5 {
    color: #fff !important;
    font-weight: 600;
    margin-bottom: 1rem;
}

.site-footer a,
footer a {
    color: rgba(255, 255, 255, 0.85);
}

.site-footer a:hover,
footer a:hover {
    color: var(--secondary-color);
}

/* ===== Ajrakh-inspired subtle pattern ===== */
.ajrakh-pattern {
    background-image:
        radial-gradient(circle at 25% 25%, rgba(255, 77, 0, 0.08) 0, transparent 30%),
        radial-gradient(circle at 75% 75%, rgba(64, 47, 38, 0.10) 0, transparent 30%),
        radial-gradient(circle at 75% 25%, rgba(64, 47, 38, 0.06) 0, transparent 25%),
        radial-gradient(circle at 25% 75%, rgba(255, 77, 0, 0.06) 0, transparent 25%);
    background-size: 60px 60px;
}

.ajrakh-divider {
    height: 8px;
    background:
        linear-gradient(90deg,
            var(--secondary-color) 0 16.6%,
            var(--primary-color) 16.6% 33.3%,
            var(--accent-color) 33.3% 50%,
            var(--primary-color) 50% 66.6%,
            var(--secondary-color) 66.6% 83.3%,
            var(--primary-color) 83.3% 100%);
    opacity: 0.85;
}

/* ===== Image Cropper Modal ===== */
.image-cropper-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.image-cropper-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
}
.image-cropper-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.image-cropper-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
}
.image-cropper-header h5 {
    margin: 0;
    font-family: var(--font-heading);
}
.image-cropper-body {
    flex: 1;
    overflow: hidden;
    padding: 1rem;
    background: #f5f5f5;
}
.image-cropper-stage {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    display: inline-block;
    cursor: move;
}
.image-cropper-stage img {
    display: block;
    max-width: 100%;
    max-height: 55vh;
}
.image-cropper-box {
    position: absolute;
    border: 2px solid #fff;
    box-shadow: 0 0 0 9999px rgba(0,0,0,0.5);
    cursor: move;
    z-index: 2;
}
.image-cropper-handle {
    position: absolute;
    width: 14px;
    height: 14px;
    background: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 2px;
    z-index: 3;
}
.image-cropper-handle-se {
    bottom: -7px;
    right: -7px;
    cursor: se-resize;
}
.image-cropper-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-light);
}
