/* CSS Variables & Reset */
:root {
    /* Refined Warm Ivory Palette */
    --bg-primary: #FDFBF7;
    --bg-secondary: #F8F5F0;
    --bg-tertiary: #FFFFFF;

    --text-primary: #1A1A1A;
    --text-secondary: #555555;
    --text-muted: #888888;

    --accent-primary: #B8860B;
    /* Ochre Gold */
    --accent-secondary: #2C3E50;
    /* Deep Slate */
    --accent-hover: #966F09;

    --border-color: rgba(0, 0, 0, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid var(--accent-primary);
    background-color: transparent;
    color: var(--accent-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.btn-outline:hover {
    background-color: var(--text-primary);
    color: #fff;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    padding: 1.2rem 0;
}

.header .logo,
.header .nav-link {
    color: var(--text-primary);
}

.header .bar {
    background-color: var(--text-primary);
}

.header.scrolled {
    padding: 0.8rem 0;
    background-color: rgba(253, 251, 247, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-primary);
}

/* Mobile Nav Styles */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        /* Adjust based on header height */
        flex-direction: column;
        background-color: var(--bg-primary);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1.5rem;
    }

    .nav-menu.active {
        left: 0;
    }
}

/* Footer */
.footer {
    background-color: var(--bg-secondary);
    padding: 6rem 0 3rem;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.social-links {
    display: flex;
    gap: 2rem;
}

.social-links a {
    font-size: 1.8rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent-primary);
    transform: translateY(-5px);
}

.copyright {
    font-family: var(--font-body);
    color: var(--text-muted);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--accent-hover);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Title Styling */
.section-title {
    text-align: center;
    font-size: 3.2rem;
    margin-bottom: 4rem;
    position: relative;
    padding-bottom: 25px;
    font-weight: 600;
    letter-spacing: -1px;
    font-family: var(--font-heading);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-primary);
    border-radius: 2px;
}

.text-center {
    text-align: center;
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    background-image: url('../images/gallery/Tablo1.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.35) 50%, rgba(0, 0, 0, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-bottom: 80px;
    /* Push text up to avoid overlap with scroll arrow */
}

.hero-title {
    font-size: 5.5rem;
    font-weight: 700;
    color: #fff !important;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-style: italic;
    font-size: 1.8rem;
    font-family: var(--font-body);
    font-weight: 300;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    animation: bounce 2s infinite;
    opacity: 0.8;
    color: #fff;
    pointer-events: none;
    /* Prevent blocking clicks if it somehow overlaps */
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* Featured Works */
.featured {
    background-color: var(--bg-primary);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.art-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    background-color: #fff;
    transition: var(--transition);
}

.art-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.gallery-img,
.art-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ensure frames aren't awkwardly cropped */
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    background-color: #fff;
    /* Match the frame background */
}

.art-card:hover .art-img {
    transform: scale(1.08);
}

.art-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 25px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.4) 60%, transparent);
    color: #fff;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.art-card:hover .art-overlay {
    opacity: 1;
    transform: translateY(0);
}

.art-overlay h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: #fff;
    font-family: var(--font-heading);
}

.art-overlay p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

/* Bio Section */
.bio-section {
    background-color: var(--bg-secondary);
    padding: 120px 0;
}

.bio-content {
    display: flex;
    align-items: center;
    gap: 80px;
}

.bio-image {
    flex: 1.3;
    position: relative;
    min-width: 320px;
}

.bio-image img {
    border-radius: 8px;
    box-shadow: 30px 30px 0 rgba(184, 134, 11, 0.1);
    transition: var(--transition);
}

.bio-image:hover img {
    transform: translate(-10px, -10px);
    box-shadow: 40px 40px 0 rgba(184, 134, 11, 0.15);
}

.bio-text {
    flex: 1;
}

.bio-text p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* CTA Section */
.cta-section {
    background-color: var(--bg-primary);
    padding: 80px 0;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .bio-content {
        flex-direction: column;
        gap: 40px;
    }

    .bio-image img {
        box-shadow: 10px 10px 0 var(--accent-secondary);
    }

    .featured-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
}

/* Page Header */
.page-header {
    height: 40vh;
    position: relative;
    background-image: url('../images/gallery/Tablo2.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-top: 70px;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.page-header-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #fff !important;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.breadcrumb {
    font-family: var(--font-body);
    font-size: 1.1rem;
    opacity: 0.9;
    color: #f0f0f0;
}

/* About Detail */
.about-bio {
    background-color: var(--bg-primary);
}

.about-grid {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    border-radius: 8px;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.image-frame {
    position: absolute;
    top: 20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-primary);
    z-index: 1;
    border-radius: 8px;
}

.about-text {
    flex: 1.5;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--accent-secondary);
}

.about-text p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.signature {
    font-family: 'Great Vibes', cursive;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.5rem;
    margin-top: 30px;
    color: var(--accent-primary);
    text-align: right;
}

/* Artist Statement */
.artist-statement-section {
    background-color: var(--bg-secondary);
    text-align: center;
}

.statement-box {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 40px;
}

.quote-icon {
    font-size: 2rem;
    color: var(--accent-primary);
    opacity: 0.3;
    margin-bottom: 20px;
}

.artist-statement {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--text-primary);
}

/* Timeline */
.timeline-section {
    background-color: var(--bg-secondary);
    padding: 120px 0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 20px;
    opacity: 0.5;
}

.timeline-item {
    padding: 20px 0 20px 50px;
    position: relative;
    margin-bottom: 40px;
}

.timeline-dot {
    width: 14px;
    height: 14px;
    background-color: var(--accent-primary);
    position: absolute;
    left: 14px;
    top: 35px;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 5px rgba(184, 134, 11, 0.15);
}

.timeline-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.timeline-item:hover .timeline-content {
    transform: translateX(10px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-lg);
}

.timeline-year {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.timeline-content h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* About Detail */
.signature {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 2rem;
    margin-top: 40px;
    color: var(--accent-primary);
    text-align: right;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

/* Responsive About */
@media (max-width: 768px) {
    .about-grid {
        flex-direction: column;
    }

    .image-frame {
        left: 10px;
        top: 10px;
    }

    .artist-statement {
        font-size: 1.3rem;
    }
}

/* Gallery Styles Updated */
.gallery-section {
    background-color: var(--bg-primary);
    min-height: 80vh;
}

/* Toolbar */
.gallery-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    gap: 30px;
    flex-wrap: wrap;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 100px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 14px 20px 14px 45px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
    background: transparent;
}

.search-box input:focus {
    border-color: var(--accent-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(184, 134, 11, 0.1);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.sort-box select {
    padding: 14px 40px 14px 20px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: transparent;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 15px;
    min-width: 200px;
    transition: var(--transition);
}

.sort-box select:hover {
    border-color: var(--accent-primary);
}

/* Gallery Grid - Responsive Grid Layout */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 40px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

/* Infinite Scroll Trigger */
.infinite-scroll-trigger {
    text-align: center;
    padding: 40px 0;
    font-family: var(--font-heading);
    color: var(--slate-light);
    font-style: italic;
    display: none;
    /* Controlled by JS */
}

.infinite-scroll-trigger i {
    display: block;
    margin-bottom: 10px;
    font-size: 24px;
    color: var(--accent-primary);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.gallery-img-wrapper {
    position: relative;
    width: 100%;
    min-height: 250px;
    /* Reserve space to reduce jump */
    overflow: hidden;
    background: #fdfdfd;
    transform: translateZ(0);
    /* Hardware acceleration to prevent flicker */
}

.gallery-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.6s ease;
    opacity: 0;
}

.gallery-img-wrapper img.loaded {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    transform: translateY(10px);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-card-info {
    transform: translateY(0);
    opacity: 1;
}

.card-title {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.card-year {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 60px;
}

.page-btn {
    width: 45px;
    height: 45px;
    border: 1px solid var(--border-color);
    background-color: transparent;
    color: var(--text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
    font-weight: 500;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: var(--bg-secondary);
}

.page-btn.active {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
    box-shadow: 0 5px 15px rgba(184, 134, 11, 0.3);
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Exhibitions Timeline */
.exhibitions-section {
    background-color: var(--bg-primary);
    padding: 100px 0;
}

.exhibition-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.exhibition-timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.ex-item {
    padding: 20px 0;
    position: relative;
    width: 50%;
}

.ex-item.left {
    left: 0;
    padding-right: 50px;
}

.ex-item.right {
    left: 50%;
    padding-left: 50px;
}

.ex-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: var(--bg-primary);
    border: 3px solid var(--accent-primary);
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    z-index: 2;
}

.ex-item.right::after {
    left: -8px;
}

.ex-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    position: relative;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.ex-item:hover .ex-content {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.ex-date {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.ex-content h3 {
    margin-bottom: 15px;
    font-size: 1.6rem;
    line-height: 1.3;
}

.ex-location {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
    font-weight: 300;
}


.ex-location {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.status-badge {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--accent-primary);
    color: #fff;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-top: 10px;
}

.ex-item.future .ex-content {
    border: 1px solid var(--accent-primary);
    box-shadow: 0 0 20px rgba(184, 134, 11, 0.1);
}

.ex-item.future::after {
    background-color: var(--accent-primary);
    border-color: #fff;
}

@media (max-width: 768px) {
    .gallery-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .exhibition-timeline::after {
        left: 20px;
    }

    .ex-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 20px;
    }

    .ex-item.left,
    .ex-item.right {
        left: 0;
        text-align: left;
    }

    .ex-item::after {
        left: 10px;
    }

    .ex-item.right::after {
        left: 10px;
    }
}

/* Contact Styles */
.contact-section {
    background-color: var(--bg-primary);
    padding: 120px 0;
}

.contact-wrapper {
    display: flex;
    gap: 100px;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
}

.contact-desc {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 35px;
}

.info-item i {
    font-size: 1.8rem;
    color: var(--accent-primary);
    margin-right: 20px;
    margin-top: 5px;
    width: 30px;
    text-align: center;
}

.info-item h4 {
    margin-bottom: 8px;
    font-size: 1.2rem;
    font-family: var(--font-heading);
}

.info-item p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 300;
}

.contact-social {
    margin-top: 50px;
    display: flex;
    gap: 20px;
}

.contact-social a {
    width: 50px;
    height: 50px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: var(--transition);
    font-size: 1.2rem;
}

.contact-social a:hover {
    background-color: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.contact-form-wrapper {
    flex: 1.4;
    background-color: #fff;
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    color: var(--text-primary);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(184, 134, 11, 0.1);
}

@media (max-width: 768px) {
    .contact-wrapper {
        flex-direction: column;
    }

    .contact-form-wrapper {
        width: 100%;
        padding: 20px;
    }
}

/* GLightbox Customization */
.glightbox-clean .gslide-description {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9)) !important;
    backdrop-filter: blur(5px);
    color: #fff !important;
    border-radius: 0 0 8px 8px;
}

.glightbox-clean .gslide-title {
    font-family: var(--font-heading);
    color: var(--accent-primary) !important;
    font-size: 1.5rem !important;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.glightbox-clean .gslide-desc {
    font-family: var(--font-body);
    color: #f0f0f0 !important;
    font-size: 1rem;
    line-height: 1.6;
}

/* Ensure close button is visible on all backgrounds */
.glightbox-clean .gclose path {
    fill: #fff !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* Fix Mobile Navigation Arrows */
@media (max-width: 768px) {

    .gprev,
    .gnext {
        top: 50% !important;
        transform: translateY(-50%) !important;
        position: absolute !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 30px !important;
        height: 30px !important;
    }

    .gprev {
        left: 10px !important;
    }

    .gnext {
        right: 10px !important;
    }

    .gprev path,
    .gnext path {
        fill: #fff !important;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
    }
}

/* News Section */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-md-6 {
    width: 50%;
    padding: 0 15px;
}

.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.news-img-wrapper {
    height: 200px;
    overflow: hidden;
}

.news-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img-wrapper img {
    transform: scale(1.05);
}

.news-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--accent-secondary);
}

.news-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex: 1;
    /* Pushes button down */
}

.read-more {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 12px;
}

/* Mobile Responsive Fixes */
@media (max-width: 768px) {
    .col-md-6 {
        width: 100%;
    }

    .page-header {
        background-attachment: scroll;
        /* Fix for some mobile browsers */
        background-position: center top !important;
        /* Ensure focal point */
        height: 30vh;
        /* Slightly smaller on mobile */
    }

    .page-title {
        font-size: 2.5rem;
    }
}