/* ================= GENERAL INNER PAGE HERO ================= */
.page-hero {
    position: relative;
    overflow: hidden;
    height: 400px;
    background: url('../legacy-imgs/hero.png') center/cover; /* Fallback */
}

.page-hero img, .page-hero .hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.page-hero .hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 2rem 3rem;
    z-index: 2;
}

.page-hero h1 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* ================= SIDEBAR ================= */
.sidebar-menu {
    background: linear-gradient(180deg, var(--primary-dark) 0%, #1a3a6b 100%);
    padding: 2rem 0;
    border-radius: 13px;
    min-height: calc(100vh - 400px);
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
}

.sidebar-title {
    color: var(--primary-gold);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    margin-left: 2rem;
    margin-right: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(180, 150, 81, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-line {
    display: none; /* Replaced by border-bottom on title */
}

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

.sidebar-menu li {
    margin-bottom: 5px;
    border-bottom: none; /* Override old */
}

.sidebar-menu a, .sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-weight: 500;
}

.sidebar-menu a:before, .sidebar-nav a:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--primary-gold);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.sidebar-menu a:hover:before,
.sidebar-menu a.active:before {
    transform: scaleY(1);
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(180, 150, 81, 0.1);
    color: var(--primary-gold);
    padding-left: 35px;
}

/* RTL Support for Sidebar */
[dir="rtl"] .sidebar-title {
    margin-left: 2rem;
    margin-right: 2rem;
}
[dir="rtl"] .sidebar-menu a:before {
    left: auto;
    right: 0;
}
[dir="rtl"] .sidebar-menu a:hover,
[dir="rtl"] .sidebar-menu a.active {
    padding-left: 25px;
    padding-right: 35px;
}

/* ================= PAGE CONTENT AREA ================= */
.content-section {
    background-color: #fff;
}
.page-content {
    background-color: #fff;
    padding: 2rem 2.5rem;
    min-height: calc(100vh - 400px);
}

.content-text {
    color: #555;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* ================= GALLERY PAGES ================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important;
    cursor: pointer;
    transition: all 0.4s ease;
    background: #fff;
    border: none;
}

.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(61, 79, 124, 0.3) !important;
}

.gallery-card img,
.gallery-card video {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover img,
.gallery-card:hover video {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(61, 79, 124, 0.95) 0%, rgba(61, 79, 124, 0.3) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 25px;
    z-index: 2;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-card-body {
    background-color: var(--primary-dark) !important;
    color: #fff;
    padding: 1.5rem;
}

.gallery-card-body .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-gold);
}

.gallery-card-body small {
    color: rgba(255,255,255,0.8) !important;
}

/* ================= CONTACT FORM (Preserved & Themed) ================= */
.contact-info-wrapper {
    padding-right: 2rem;
}
[dir="rtl"] .contact-info-wrapper {
    padding-right: 0;
    padding-left: 2rem;
}
.contact-card {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}
.contact-card:hover {
    transform: translateY(-5px);
}
.icon-box {
    width: 50px;
    height: 50px;
    background-color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-gold);
    font-size: 1.2rem;
    margin-right: 1.5rem;
    flex-shrink: 0;
}
[dir="rtl"] .icon-box {
    margin-right: 0;
    margin-left: 1.5rem;
}
.contact-details h5 {
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.contact-details p, 
.contact-details a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}
.contact-details a:hover {
    color: var(--primary-gold);
}
.contact-form-wrapper {
    border-top: 5px solid var(--primary-gold);
    border-radius: 15px;
    background: #fff;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.contact-form-wrapper .form-control {
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
}
.contact-form-wrapper .form-control:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 0.2rem rgba(180, 150, 81, 0.1);
}
.map-section iframe {
    width: 100%;
    height: 450px;
    display: block;
    border-radius: 15px;
}

/* ================= VIDEO WRAPPER (Preserved) ================= */
.video-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.video-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}
.video-wrapper .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 1.8rem;
    transition: all 0.3s ease;
    padding-left: 5px;
}
.video-wrapper .play-btn:hover {
    background-color: #102548;
    transform: translate(-50%, -50%) scale(1.1);
    color: var(--primary-gold);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 991px) {
    .page-content {
        padding: 2rem 1.5rem;
    }
    .page-hero {
        height: 300px;
    }
    .page-hero h1 {
        font-size: 2rem;
    }
}
@media (max-width: 768px) {
    .page-hero {
        height: 250px;
    }
    .page-hero h1 {
        font-size: 1.8rem;
    }
    .page-hero .hero-content {
        padding: 1.5rem 2rem;
    }
    
    .contact-info-wrapper {
        padding-right: 0;
    }
    
    .video-wrapper .play-btn {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }
}

@media (max-width: 991px) {
    .sidebar-menu {
        min-height: auto;
        border-radius: 10px;
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .page-hero {
        height: 200px;
    }
    
    .page-hero h1 {
        font-size: 1.5rem;
    }
    
    .page-hero .hero-content {
        padding: 1rem 1.25rem;
    }
    
    .page-content {
        padding: 1.5rem 1rem;
    }
    
    .gallery-grid {
        gap: 15px;
    }
    
    .gallery-card img,
    .gallery-card video {
        height: 200px;
    }
    
    .contact-form-wrapper {
        padding: 1.25rem;
    }
    
    .map-section iframe {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .page-hero {
        height: 180px;
    }
    
    .page-hero h1 {
        font-size: 1.3rem;
    }
    
    .gallery-grid {
        grid-template-columns: minmax(200px, 1fr);
    }
    
    .gallery-card img,
    .gallery-card video {
        height: 180px;
    }
}
