﻿/* Opera Travel Website - Main Stylesheet */

:root {
    --primary-color: #07558f;
    --secondary-color: #0b4775;
    --success-color: #15934f;
    --accent-color: #c8a96b;
    --danger-color: #ef4444;
    --warning-color: #d3a84f;
    --light-color: #f7f4ec;
    --dark-color: #082f49;
    --border-color: #e7deca;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', 'Poppins', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    background-color: #fffdf8;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--dark-color);
}

p {
    margin-bottom: 1rem;
}

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

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

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    border-bottom: 2px solid var(--accent-color);
    box-shadow: 0 4px 18px rgba(8, 47, 73, 0.22);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    margin-inline-end: 2rem;
    padding: 0.28rem 0.55rem;
    background: #fffdf8;
    border: 1px solid rgba(200, 169, 107, 0.85);
    border-radius: 12px;
}

.navbar-brand img {
    margin: 0;
    max-height: 70px;
    max-width: 250px;
    width: auto;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.18));
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
    margin-left: 1rem;
}

.nav-link:hover,
.nav-link.active {
    color: #fff !important;
    text-decoration: underline;
}

.nav-download-item {
    margin-inline-start: 1.75rem;
    display: flex;
    align-items: center;
}

.nav-download-btn {
    white-space: nowrap;
    color: var(--primary-color) !important;
}

.nav-search-item {
    display: flex;
    align-items: center;
    margin-inline-start: 1rem;
}

.nav-search-form {
    display: flex;
    align-items: center;
    height: 38px;
    gap: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

.nav-search-form .form-control {
    width: 170px;
    height: 38px;
    min-height: 38px;
    padding: 0.35rem 0.7rem;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: 0.95rem;
}

.nav-search-form .form-control:focus {
    box-shadow: none;
}

.nav-search-form .btn {
    width: 42px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color) !important;
    background: #fff;
}

.ltr-mode .nav-search-form .btn {
    border-left: 1px solid var(--border-color);
}

.rtl-mode .nav-search-form {
    flex-direction: row;
    direction: rtl;
}

.rtl-mode .nav-search-form .form-control {
    text-align: right;
    direction: rtl;
}

.rtl-mode .nav-search-form .btn {
    border-right: 1px solid var(--border-color);
}

.program-category-nav .btn,
.program-filters .btn {
    white-space: nowrap;
}

.search-result-card {
    display: flex;
    gap: 1rem;
    height: 100%;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    background: #fff;
    color: var(--dark-color);
    box-shadow: 0 1px 6px rgba(15, 23, 42, 0.06);
}

.search-result-card:hover {
    color: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}

.search-result-card img {
    flex: 0 0 110px;
    width: 110px;
    height: 86px;
    object-fit: cover;
    border-radius: 6px;
    background: #f8fafc;
}

.search-result-card p {
    margin: 0.35rem 0 0;
    color: #6b7280;
}

.flight-hero {
    background:
        linear-gradient(135deg, rgba(30, 58, 138, 0.96), rgba(59, 130, 246, 0.88)),
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.22), transparent 28%);
    color: #fff;
}

.flight-hero h1,
.flight-hero .lead {
    color: #fff;
}

.flight-hero h1 {
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.25;
    margin: 1rem 0;
}

.flight-service-panel {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    padding: 1.5rem;
    color: #fff;
}

.flight-service-panel div {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.flight-service-panel div:last-child {
    border-bottom: 0;
}

.flight-service-panel i {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
}

.flight-booking-form .content-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    background: #fff;
    box-shadow: 0 1px 8px rgba(15, 23, 42, 0.05);
}

.flight-booking-form .form-label {
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.flight-booking-form .form-control,
.flight-booking-form .form-select {
    min-height: 46px;
    border-radius: 6px;
    border-color: #d8dee8;
}

.flight-booking-form textarea.form-control {
    min-height: 116px;
}

.flight-booking-form .form-check {
    width: 100%;
    min-height: 46px;
    padding: 0.7rem 1rem 0.7rem 2.3rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: #f8fafc;
}

.rtl-mode .flight-booking-form .form-check {
    padding-right: 2.3rem;
    padding-left: 1rem;
}

.flight-booking-form .input-group-text {
    min-height: 46px;
    font-weight: 700;
    background: #eef2ff;
    color: var(--primary-color);
}

.flight-booking-actions {
    display: flex;
    justify-content: flex-start;
}

.hajj-booking-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 8px rgba(15, 23, 42, 0.05);
}

.hajj-booking-callout p,
.hajj-booking-form .form-text {
    color: var(--text-light);
}

.rtl-mode .hajj-booking-form .form-select {
    background-position: left 0.75rem center;
    padding-right: 0.75rem;
    padding-left: 2.25rem;
}

.ltr-mode .hajj-booking-form .form-select {
    background-position: right 0.75rem center;
    padding-right: 2.25rem;
    padding-left: 0.75rem;
}

.anti-spam-field {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" fill-opacity="1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,144C960,149,1056,139,1152,128C1248,117,1344,107,1392,101.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.5;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    color: #fff !important;
    text-shadow: 0 3px 8px rgba(75, 85, 99, 0.9);
}

.home-hero-fallback {
    background:
        radial-gradient(circle at 15% 20%, rgba(21, 147, 79, 0.32), transparent 28%),
        radial-gradient(circle at 85% 75%, rgba(200, 169, 107, 0.2), transparent 30%),
        linear-gradient(135deg, #063a63 0%, #07558f 55%, #0b4775 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-carousel {
    position: relative;
    height: clamp(360px, 44vw, 560px);
    overflow: hidden;
}

.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
    height: 100%;
}

.hero-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-carousel .carousel-item {
    position: relative;
    overflow: hidden;
    background: #052f4f;
}

.hero-carousel .carousel-item img.hero-slide-backdrop {
    position: absolute;
    inset: -5%;
    width: 110%;
    height: 110%;
    object-fit: cover;
    filter: blur(24px) saturate(0.85);
    opacity: 0.52;
    transform: scale(1.04);
}

.hero-carousel .carousel-item img.hero-slide-image {
    position: relative;
    z-index: 1;
    object-fit: contain;
    object-position: center;
}

.hero-carousel-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(135deg, rgba(6, 48, 81, 0.78), rgba(8, 47, 73, 0.48));
}

.hero-carousel-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
}

.hero-carousel-content h1,
.hero-carousel-content p {
    color: #fff;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.65);
}

.hero-carousel-indicators {
    z-index: 4;
    margin-bottom: 1.25rem;
    gap: 0.45rem;
}

.hero-carousel-indicators [data-bs-target] {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 50%;
    margin: 0;
    background-color: rgba(255, 255, 255, 0.72);
    opacity: 1;
}

.hero-carousel-indicators .active {
    width: 28px;
    border-radius: 999px;
    background-color: #fff;
}

.latest-news-bar {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 8px rgba(15, 23, 42, 0.08);
}

.latest-news-label {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.25rem;
    background: var(--primary-color);
    color: #fff;
    font-weight: 700;
}

.latest-news-marquee {
    overflow: hidden;
    flex: 1;
    display: flex;
    align-items: center;
}

.latest-news-track {
    display: flex;
    align-items: center;
    gap: 2rem;
    width: max-content;
    animation: latest-news-scroll 32s linear infinite;
    padding-inline: 1.25rem;
}

.latest-news-track:hover {
    animation-play-state: paused;
}

.latest-news-track a,
.latest-news-track span {
    color: var(--dark-color);
    font-weight: 700;
    white-space: nowrap;
}

.latest-news-track a::before,
.latest-news-track span::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--warning-color);
    margin-inline-end: 0.6rem;
}

@keyframes latest-news-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.card-img-top {
    border-radius: 10px 10px 0 0;
}

.article-card-image {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background: #f8fafc;
    padding: 8px;
}

.article-detail-image {
    width: 100%;
    max-height: 560px;
    object-fit: contain;
    background: #f8fafc;
    padding: 8px;
}

/* About Page */
.about-hero {
    background:
        linear-gradient(135deg, rgba(6, 58, 99, 0.96), rgba(7, 85, 143, 0.9)),
        url('/assets/images/logo.png') center right 8% / 390px auto no-repeat;
    color: #fff;
}

.about-hero h1,
.about-hero .lead {
    color: #fff;
}

.about-hero h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.25;
    margin: 1rem 0;
}

.about-eyebrow {
    display: inline-block;
    color: #f3d89e;
    font-weight: 700;
    letter-spacing: 0;
}

.about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.about-actions .btn-outline-primary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.75);
}

.about-actions .btn-outline-primary:hover {
    color: var(--primary-color);
    background: #fff;
}

.about-highlight {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(200, 169, 107, 0.7);
    border-radius: 18px;
    padding: 2rem;
    backdrop-filter: blur(6px);
}

.about-highlight strong {
    display: block;
    color: #f3d89e;
    font-size: 4rem;
    line-height: 1;
}

.about-highlight span {
    display: block;
    color: #e0f2fe;
    font-size: 1.15rem;
    margin-top: 0.75rem;
}

.about-intro {
    font-size: 1.15rem;
    color: #4b5563;
}

.about-intro p {
    margin-bottom: 1rem;
    line-height: 1.9;
}

.about-intro p:last-child {
    margin-bottom: 0;
}

.about-service {
    height: 100%;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.25rem;
    background: #fff;
    box-shadow: 0 1px 8px rgba(15, 23, 42, 0.06);
}

.about-service i {
    color: var(--success-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.about-service h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.about-service p {
    color: #4b5563;
    margin: 0;
}

.about-trust {
    background: linear-gradient(180deg, #fbf8f1, #f3eee2);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.about-stat strong {
    display: block;
    color: var(--primary-color);
    font-size: 2.4rem;
    line-height: 1;
}

.about-stat span {
    display: block;
    color: #4b5563;
    margin-top: 0.5rem;
    font-weight: 700;
}

.about-contact-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.about-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.about-contact-list i {
    color: var(--primary-color);
    margin-top: 0.25rem;
    width: 22px;
}

.about-contact-list a,
.about-contact-list span {
    color: var(--dark-color);
    font-weight: 600;
}

.about-map {
    min-height: 420px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 8px rgba(15, 23, 42, 0.08);
}

.about-map iframe {
    width: 100%;
    height: 420px;
    border: 0;
    display: block;
}

/* Buttons */
.btn {
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.6rem 1.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: 1px solid rgba(200, 169, 107, 0.65);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.3);
}

.btn-success {
    background-color: var(--success-color);
}

.btn-success:hover {
    background-color: #059669;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--success-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
}

.whatsapp-float:hover {
    background-color: #059669;
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.6);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
}

.page-header h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-header .lead {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Article Body */
.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-color);
}

.article-body h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.article-body h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

.article-body p {
    margin-bottom: 1.2rem;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.2rem;
    margin-left: 2rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

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

/* Gallery */
.gallery-hero {
    background:
        linear-gradient(135deg, rgba(30, 58, 138, 0.94), rgba(59, 130, 246, 0.84)),
        url('/assets/images/Logo.jpg') center/320px auto no-repeat;
    color: #fff;
}

.gallery-hero h1,
.gallery-hero .lead {
    color: #fff;
}

.gallery-album-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.gallery-album-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
    color: var(--dark-color);
    font-weight: 700;
    box-shadow: 0 1px 5px rgba(15, 23, 42, 0.06);
}

.gallery-album-tab small {
    min-width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eef2ff;
    color: var(--primary-color);
}

.gallery-album-tab:hover,
.gallery-album-tab.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.gallery-album-tab:hover small,
.gallery-album-tab.active small {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.gallery-section-heading {
    max-width: 760px;
    margin-bottom: 1.5rem;
}

.gallery-section-heading h2 {
    margin-bottom: 0.5rem;
}

.gallery-section-heading p {
    color: #6b7280;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.gallery-card {
    position: relative;
    min-height: 260px;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    background: #111827;
    cursor: pointer;
    text-align: inherit;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.gallery-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0.05));
}

.gallery-card span {
    position: absolute;
    right: 1rem;
    left: 1rem;
    bottom: 1rem;
    z-index: 2;
    color: #fff;
    font-weight: 700;
}

.gallery-card:hover img {
    transform: scale(1.05);
}

.gallery-modal {
    position: relative;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: #111827;
}

.gallery-modal img {
    width: 100%;
    max-height: 82vh;
    object-fit: contain;
    background: #111827;
}

.gallery-modal-caption {
    padding: 1rem;
    color: #fff;
    font-weight: 700;
    background: #111827;
}

.gallery-modal-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 5;
    background-color: #fff;
    opacity: 1;
}

.empty-state {
    padding: 4rem 1rem;
    text-align: center;
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    background: #f8fafc;
}

.empty-state i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: linear-gradient(145deg, #062d4b 0%, #082f49 70%, #0b3f49 100%);
    color: #ccc;
    margin-top: 5rem;
}

footer h5 {
    color: #f3d89e;
    margin-bottom: 1.5rem;
}

footer a {
    color: #fff !important;
}

footer a:hover {
    color: #fff !important;
    text-decoration: underline;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.65rem;
}

.social-links a,
.social-links a.me-2,
.social-links span {
    width: 44px;
    height: 44px;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-grid !important;
    place-items: center !important;
    border-radius: 8px;
    line-height: 1 !important;
    vertical-align: middle;
    position: static;
    text-align: center;
}

.social-links a i,
.social-links span i {
    position: static;
    display: block;
    width: auto;
    height: auto;
    font-size: 1.15rem;
    line-height: 1 !important;
    margin: 0 !important;
    transform: none;
}

.social-links a i::before {
    display: block;
    line-height: 1;
}

.social-links a:hover,
.social-links a:focus {
    background-color: var(--success-color) !important;
    border-color: var(--success-color) !important;
    color: #fff !important;
}

.why-choose-section .text-center,
.why-choose-section h5,
.why-choose-section p {
    text-align: center !important;
}

footer .text-muted,
footer a.text-muted,
footer a.text-muted:visited,
footer a.text-muted:hover,
footer a.text-muted:focus {
    color: #fff !important;
}

.testimonials-marquee-section {
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
    overflow: hidden;
}

.testimonials-marquee {
    overflow: hidden;
    width: 100%;
}

.testimonials-marquee-track {
    display: flex;
    gap: 1rem;
    width: max-content;
    animation: testimonials-scroll 35s linear infinite;
}

.testimonials-marquee-track:hover {
    animation-play-state: paused;
}

.testimonial-marquee-card {
    width: 320px;
    min-height: 150px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    direction: rtl;
    text-align: right;
}

.testimonial-marquee-card p {
    margin: 0.5rem 0;
    color: var(--dark-color);
}

.testimonial-comment-image,
.testimonial-marquee-image {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
    object-fit: contain;
}

.testimonial-comment-image {
    max-height: 260px;
}

.homepage-testimonials-carousel .carousel-inner {
    padding: 0.25rem 0 1.75rem;
}

.testimonial-large-card {
    height: 100%;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.testimonial-large-card .card-body {
    display: flex;
    min-height: 250px;
    flex-direction: column;
}

.testimonial-large-card .card-title {
    margin-top: auto;
    margin-bottom: 0;
}

.homepage-testimonials-indicators {
    position: static;
    gap: 0.45rem;
    margin: 0.5rem 0 0;
}

.homepage-testimonials-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    margin: 0;
    border: 0;
    border-radius: 999px;
    background-color: var(--primary-color);
    opacity: 0.35;
}

.homepage-testimonials-indicators .active {
    width: 26px;
    opacity: 1;
}

.testimonial-marquee-image {
    max-height: 180px;
    margin: 0.65rem 0;
}

.testimonial-stars {
    color: var(--warning-color);
}

.program-image-wrap {
    position: relative;
    overflow: hidden;
}

.program-card .program-image-wrap {
    aspect-ratio: 4 / 3;
    background: #f4f6f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.program-card .program-image-wrap .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 0.35rem;
}

.program-detail-image {
    aspect-ratio: 16 / 9;
    max-height: 500px;
    margin-bottom: 1.5rem;
    background: #f4f6f8;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.program-detail-image img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    object-position: center;
    margin-bottom: 0 !important;
    border-radius: 8px;
}

.program-completed img {
    filter: grayscale(100%);
}

.completed-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    background: rgba(17, 24, 39, 0.88);
    color: #fff;
    border-radius: 6px;
    padding: 0.45rem 0.8rem;
    font-weight: 700;
    line-height: 1;
}

.program-detail-image .completed-badge {
    font-size: 1.1rem;
}

@keyframes testimonials-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Badges */
.badge {
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
}

/* Forms */
.form-control,
.form-select {
    border-radius: 5px;
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    font-size: 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

.contact-hp-field {
    position: fixed;
    inset: 0 auto auto 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.contact-form .form-select {
    min-height: 46px;
}

.contact-page {
    max-width: 100%;
    overflow-x: clip;
}

.contact-page .container,
.contact-page .card,
.contact-page .form-control,
.contact-page .form-select,
.contact-page textarea {
    max-width: 100%;
}

.rtl-mode .contact-page .row {
    margin-left: 0;
    margin-right: 0;
}

.rtl-mode .contact-form .form-select {
    background-position: left 0.75rem center;
    padding-right: 0.75rem;
    padding-left: 2.25rem;
}

.ltr-mode .contact-form .form-select,
body:not(.rtl-mode) .contact-form .form-select {
    background-position: right 0.75rem center;
    padding-right: 2.25rem;
    padding-left: 0.75rem;
}

.contact-info-card .card-body,
.rtl-mode .contact-info-card .card-body {
    text-align: center !important;
}

.contact-info-card i.fa-3x,
.rtl-mode .contact-info-card i.fa-3x {
    display: block;
    width: 100%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.contact-info-card .card-text,
.rtl-mode .contact-info-card .card-text {
    text-align: center !important;
}

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

/* Pagination */
.pagination {
    gap: 0.5rem;
}

.page-link {
    border-radius: 5px;
    border: 1px solid var(--border-color);
    color: var(--primary-color);
}

.page-link:hover {
    background-color: var(--primary-color);
    color: white;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Alerts */
.alert {
    border-radius: 5px;
    border: none;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.alert-info {
    background-color: #dbeafe;
    color: #0c2d6b;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    footer {
        text-align: center;
    }

    footer .list-unstyled li {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        margin-bottom: 0.55rem;
    }

    footer .list-unstyled li i {
        width: 18px;
        text-align: center;
        flex: 0 0 18px;
    }

    .social-links {
        max-width: 220px;
        margin: 0 auto;
        gap: 0.75rem;
    }

    .social-links a,
    .social-links a.me-2 {
        width: 46px;
        height: 46px;
    }

    .hajj-booking-callout {
        align-items: stretch;
        flex-direction: column;
    }

    .hajj-booking-callout .btn {
        width: 100%;
    }

    .nav-link {
        margin-left: 0;
        padding: 0.5rem 0;
    }

    .nav-download-item {
        margin-inline-start: 0;
        margin-top: 0.75rem;
    }

    .nav-download-btn {
        width: 100%;
    }

    .nav-search-item {
        margin-inline-start: 0;
        margin-top: 0.75rem;
    }

    .nav-search-form {
        width: 100%;
    }

    .nav-search-form .form-control {
        width: 100%;
    }

    .hero-carousel {
        height: 380px;
    }

    .hero-carousel-content h1 {
        font-size: 2rem;
    }

    .latest-news-bar {
        display: block;
    }

    .latest-news-label {
        justify-content: center;
    }

    .latest-news-marquee {
        min-height: 44px;
    }
}

/* Utilities */
.shadow-sm {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.shadow {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

.rounded {
    border-radius: 10px;
}

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

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

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

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

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

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

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

/* FAQ links */
#homeFaqAccordion .accordion-body a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

#homeFaqAccordion .accordion-body a:hover,
#homeFaqAccordion .accordion-body a:focus {
    color: var(--secondary-color);
}

/* Loading Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    animation: spin 1s linear infinite;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Opera Signature identity — intentionally distinct from the source template */
:root {
    --opera-navy: #063b63;
    --opera-blue: #08679e;
    --opera-green: #119b57;
    --opera-gold: #c8a96b;
    --opera-ink: #102d3f;
    --opera-cream: #f7f3e9;
}

body {
    background: #fff;
    color: var(--opera-ink);
}

.opera-topbar {
    position: relative;
    z-index: 1031;
    background: var(--opera-navy);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.78rem;
    letter-spacing: 0.01em;
}

.opera-topbar-inner,
.opera-credentials,
.opera-topbar-contact {
    display: flex;
    align-items: center;
}

.opera-topbar-inner {
    justify-content: space-between;
    min-height: 32px;
    gap: 1rem;
}

.opera-credentials,
.opera-topbar-contact {
    gap: 1.35rem;
}

.opera-topbar i {
    color: var(--opera-gold);
    margin-inline-end: 0.35rem;
}

.opera-topbar a {
    color: #fff;
}

.opera-topbar a:hover {
    color: #bfe8d1;
}

.opera-navbar.navbar {
    top: 0;
    min-height: 78px;
    padding: 0.3rem 0;
    background: rgba(255, 255, 255, 0.97) !important;
    border: 0;
    border-bottom: 1px solid rgba(6, 59, 99, 0.09);
    box-shadow: 0 12px 34px rgba(6, 59, 99, 0.08);
    backdrop-filter: blur(14px);
}

.opera-navbar .navbar-brand {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.opera-navbar .navbar-brand img {
    max-width: 185px;
    max-height: 62px;
    filter: none;
}

.opera-main-menu {
    align-items: center;
    gap: 0.05rem;
}

.opera-navbar .nav-link {
    position: relative;
    margin: 0;
    padding: 0.68rem 0.62rem !important;
    color: var(--opera-ink) !important;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none !important;
}

.opera-navbar .nav-link::after {
    border: 0;
}

.opera-navbar .nav-link::before {
    content: '';
    position: absolute;
    inset-inline: 0.62rem;
    bottom: 0.34rem;
    height: 2px;
    background: var(--opera-green);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.opera-navbar .nav-link:hover::before,
.opera-navbar .nav-link.active::before {
    transform: scaleX(1);
}

.opera-navbar .dropdown-menu {
    padding: 0.65rem;
    border: 1px solid rgba(6, 59, 99, 0.1);
    border-radius: 0 0 18px 18px;
    box-shadow: 0 20px 45px rgba(6, 59, 99, 0.16);
}

.opera-navbar .dropdown-item {
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    font-weight: 600;
}

.opera-navbar .dropdown-item:hover {
    color: var(--opera-navy);
    background: #eaf7f0;
}

.opera-nav-action {
    flex: 0 0 auto;
}

.opera-consult-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.62rem 0.9rem;
    color: #fff !important;
    background: var(--opera-green);
    border-radius: 6px 18px 6px 18px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(17, 155, 87, 0.2);
}

.opera-consult-btn:hover {
    color: #fff !important;
    background: #0b8348;
    transform: translateY(-2px);
}

.opera-desktop-tool {
    display: none !important;
}

.hero-carousel,
.home-hero-fallback {
    min-height: 0;
    height: clamp(500px, 58vh, 600px);
}

.home-hero-fallback {
    padding: 0;
    text-align: initial;
    background:
        linear-gradient(90deg, rgba(6, 59, 99, 0.02), rgba(6, 59, 99, 0.2)),
        radial-gradient(circle at 75% 25%, rgba(17, 155, 87, 0.27), transparent 25%),
        var(--opera-cream);
}

.home-hero-fallback::before {
    opacity: 0.14;
    background-image: linear-gradient(30deg, var(--opera-gold) 12%, transparent 12.5%, transparent 87%, var(--opera-gold) 87.5%, var(--opera-gold)), linear-gradient(150deg, var(--opera-gold) 12%, transparent 12.5%, transparent 87%, var(--opera-gold) 87.5%, var(--opera-gold));
    background-size: 80px 140px;
}

.hero-carousel-overlay {
    background: linear-gradient(90deg, rgba(4, 38, 64, 0.12) 0%, rgba(4, 38, 64, 0.55) 56%, rgba(4, 38, 64, 0.92) 100%);
}

.ltr-mode .hero-carousel-overlay {
    background: linear-gradient(270deg, rgba(4, 38, 64, 0.12) 0%, rgba(4, 38, 64, 0.55) 56%, rgba(4, 38, 64, 0.92) 100%);
}

.opera-hero-content {
    text-align: initial;
}

.opera-hero-content .container {
    display: flex;
    align-items: center;
    height: 100%;
}

.opera-hero-panel {
    position: relative;
    width: min(620px, 62%);
    padding: 2rem 2.35rem 1.55rem;
    color: #fff;
    background: rgba(5, 47, 78, 0.9);
    border-inline-start: 4px solid var(--opera-gold);
    border-radius: 4px 44px 4px 44px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(8px);
}

.home-hero-fallback .opera-hero-panel {
    background: var(--opera-navy);
}

.opera-hero-panel::after {
    content: '';
    position: absolute;
    inset-inline-end: -12px;
    bottom: -12px;
    width: 92px;
    height: 92px;
    border-inline-end: 1px solid rgba(200, 169, 107, 0.7);
    border-bottom: 1px solid rgba(200, 169, 107, 0.7);
}

.opera-eyebrow,
.opera-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--opera-gold);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.opera-hero-panel h1 {
    max-width: 620px;
    margin: 0.7rem 0;
    color: #fff !important;
    font-size: clamp(2.15rem, 4vw, 3.6rem);
    font-weight: 700;
    line-height: 1.1;
    text-shadow: none;
}

.opera-hero-panel > p {
    max-width: 580px;
    margin-bottom: 1.05rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.96rem;
    line-height: 1.7;
    text-shadow: none;
}

.opera-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.opera-hero-actions .btn-lg {
    padding: 0.62rem 1rem;
    font-size: 1rem;
}

.opera-hero-actions .btn-primary {
    border-radius: 4px 16px 4px 16px;
    background: var(--opera-green);
    border-color: var(--opera-green);
}

.opera-hero-actions .opera-text-link {
    color: #fff;
}

.opera-text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--opera-navy);
    font-weight: 800;
    border-bottom: 1px solid currentColor;
}

.opera-hero-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 1.25rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.opera-hero-trust div {
    display: flex;
    flex-direction: column;
    padding-inline: 1rem;
    border-inline-end: 1px solid rgba(255, 255, 255, 0.16);
}

.opera-hero-trust div:first-child {
    padding-inline-start: 0;
}

.opera-hero-trust div:last-child {
    border: 0;
}

.opera-hero-trust strong {
    color: #fff;
    font-size: 1.2rem;
}

.opera-hero-trust span {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.76rem;
}

.hero-carousel-indicators {
    width: auto;
    margin-inline: auto 7%;
    justify-content: flex-start;
}

.latest-news-bar {
    position: relative;
    z-index: 5;
    width: min(1180px, calc(100% - 3rem));
    margin: -28px auto 0;
    border: 0;
    border-radius: 4px 18px 4px 18px;
    box-shadow: 0 16px 40px rgba(6, 59, 99, 0.15);
}

.latest-news-label {
    background: var(--opera-green);
}

.opera-services {
    padding: 7rem 0 6rem;
    background: #fff;
}

.opera-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 3rem;
}

.opera-section-heading h2,
.opera-legacy-intro h2,
.opera-cta-card h2 {
    margin: 0.55rem 0 0;
    font-size: clamp(1.9rem, 3.2vw, 3.25rem);
    line-height: 1.25;
}

.opera-section-heading > p {
    max-width: 440px;
    margin: 0;
    color: #657b88;
}

.opera-service-grid {
    display: grid;
    grid-template-columns: 1.18fr 1fr 1fr;
    gap: 1.25rem;
    margin-top: 3rem;
}

.opera-service-card {
    position: relative;
    min-height: 315px;
    padding: 2rem;
    overflow: hidden;
    color: var(--opera-ink);
    background: var(--opera-cream);
    border: 1px solid #ece4d5;
    border-radius: 4px 34px 4px 34px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.opera-service-card:hover {
    color: var(--opera-ink);
    transform: translateY(-8px);
    box-shadow: 0 24px 50px rgba(6, 59, 99, 0.13);
}

.opera-service-card > i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 2.7rem 0 1.5rem;
    color: var(--opera-blue);
    background: #fff;
    border-radius: 50%;
    font-size: 1.8rem;
}

.opera-service-card h3 {
    font-size: 1.25rem;
}

.opera-service-card p {
    color: #667b87;
}

.opera-service-number {
    position: absolute;
    top: 1.3rem;
    inset-inline-end: 1.5rem;
    color: rgba(6, 59, 99, 0.18);
    font-family: Poppins, sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
}

.opera-service-arrow {
    position: absolute;
    inset-inline-end: 1.5rem;
    bottom: 1.5rem;
    color: var(--opera-green);
}

.opera-service-featured {
    color: #fff;
    background: var(--opera-navy);
    border-color: var(--opera-navy);
}

.opera-service-featured:hover,
.opera-service-featured h3 {
    color: #fff;
}

.opera-service-featured p {
    color: rgba(255, 255, 255, 0.72);
}

.opera-service-featured > i {
    color: #fff;
    background: var(--opera-green);
}

.opera-service-featured .opera-service-number {
    color: rgba(255, 255, 255, 0.14);
}

.opera-service-featured .opera-service-arrow {
    color: var(--opera-gold);
}

.opera-programs-section {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
    background: #f4f8fa;
}

.opera-programs-section .program-card {
    overflow: hidden;
    border: 1px solid rgba(6, 59, 99, 0.09);
    border-radius: 2px 28px 2px 28px;
    box-shadow: 0 12px 35px rgba(6, 59, 99, 0.07) !important;
}

.opera-programs-section .program-card .card-body {
    padding: 1.55rem;
}

.opera-legacy-section {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: var(--opera-navy);
}

.opera-legacy-section::before {
    content: '1974';
    position: absolute;
    inset-inline-start: -2rem;
    bottom: -4.5rem;
    color: rgba(255, 255, 255, 0.035);
    font-family: Poppins, sans-serif;
    font-size: clamp(10rem, 28vw, 28rem);
    font-weight: 800;
    line-height: 1;
}

.opera-legacy-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 6rem;
    min-height: 520px;
}

.opera-legacy-intro h2 {
    color: #fff;
}

.opera-legacy-intro p {
    margin: 1.4rem 0 2rem;
    color: rgba(255, 255, 255, 0.72) !important;
    line-height: 1.9;
}

.opera-legacy-points {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.opera-legacy-points article {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 1.25rem;
    padding: 1.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.opera-legacy-points article > span {
    color: var(--opera-gold);
    font-family: Poppins, sans-serif;
    font-size: 1.5rem;
}

.opera-legacy-points h3 {
    margin: 0 0 0.35rem;
    color: #fff;
    font-size: 1.2rem;
    text-align: start;
}

.opera-legacy-points p {
    margin: 0;
    color: rgba(255, 255, 255, 0.65) !important;
    text-align: start !important;
}

.opera-legacy-points article > div {
    min-width: 0;
    text-align: start;
}

#homeFaqAccordion .accordion-item {
    margin-bottom: 0.8rem;
    overflow: hidden;
    border: 1px solid #e4e9ec;
    border-radius: 4px 16px 4px 16px;
}

#homeFaqAccordion .accordion-button {
    padding: 1.25rem 1.4rem;
    font-weight: 800;
}

.opera-cta-section {
    padding: 6rem 0 !important;
    background: var(--opera-cream);
}

.opera-cta-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
    padding: 2.4rem 3rem;
    color: #fff;
    background: linear-gradient(120deg, var(--opera-green), #087743);
    border-radius: 4px 40px 4px 40px;
    box-shadow: 0 25px 65px rgba(17, 155, 87, 0.22);
}

.opera-cta-card h2,
.opera-cta-card .opera-kicker,
.opera-cta-card p {
    color: #fff;
}

.opera-cta-card p {
    margin: 0.65rem 0 0;
    opacity: 0.82;
}

.opera-cta-icon {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    font-size: 2rem;
}

.opera-cta-card .btn {
    color: var(--opera-green);
    border-radius: 4px 16px 4px 16px;
    font-weight: 800;
}

footer.bg-dark {
    position: relative;
    margin-top: 0 !important;
    padding-top: 5.5rem !important;
    background: #032a47 !important;
    border-top: 5px solid var(--opera-gold);
}

footer.bg-dark::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    width: 34%;
    height: 100%;
    opacity: 0.07;
    background: repeating-linear-gradient(45deg, transparent, transparent 18px, #fff 18px, #fff 19px);
    pointer-events: none;
}

footer h5 {
    padding-bottom: 0.7rem;
    color: #fff;
    border-bottom: 1px solid rgba(200, 169, 107, 0.35);
}

@media (max-width: 1199.98px) {
    .opera-navbar.navbar {
        min-height: 74px;
    }

    .opera-navbar .navbar-collapse {
        margin-top: 0.75rem;
        padding: 1rem;
        background: #fff;
        border-top: 1px solid #e6edf0;
    }

    .opera-main-menu {
        align-items: stretch;
    }

    .opera-navbar .nav-link {
        padding: 0.7rem 0.4rem !important;
    }

    .opera-navbar .nav-link::before {
        display: none;
    }

    .opera-nav-action {
        margin-top: 0.75rem;
    }
}

@media (max-width: 991.98px) {
    .opera-topbar-contact {
        display: none;
    }

    .opera-service-grid,
    .opera-legacy-layout {
        grid-template-columns: 1fr;
    }

    .opera-service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .opera-service-featured {
        grid-column: 1 / -1;
    }

    .opera-legacy-layout {
        gap: 2.5rem;
        padding: 3rem 0;
    }

    .opera-cta-card {
        grid-template-columns: auto 1fr;
    }

    .opera-cta-card .btn {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 767.98px) {
    .opera-topbar-inner {
        justify-content: center;
    }

    .opera-credentials span:nth-child(2) {
        display: none;
    }

    .opera-navbar .navbar-brand img {
        max-width: 150px;
        max-height: 54px;
    }

    .hero-carousel,
    .home-hero-fallback {
        min-height: 0;
        height: clamp(520px, 68vh, 580px);
    }

    .opera-hero-panel {
        width: 100%;
        padding: 1.5rem 1.2rem 1.15rem;
        border-radius: 3px 28px 3px 28px;
    }

    .opera-hero-panel h1 {
        font-size: clamp(1.85rem, 8.5vw, 2.55rem);
    }

    .opera-hero-trust div {
        padding-inline: 0.55rem;
    }

    .latest-news-bar {
        width: calc(100% - 1.5rem);
    }

    .opera-services {
        padding: 5rem 0 4rem;
    }

    .opera-section-heading,
    .opera-cta-card {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }

    .opera-service-grid {
        grid-template-columns: 1fr;
    }

    .opera-service-featured {
        grid-column: auto;
    }

    .opera-service-card {
        min-height: 285px;
    }

    .opera-legacy-layout {
        min-height: auto;
    }

    .opera-cta-card {
        padding: 2rem 1.5rem;
    }

    .opera-cta-card .btn {
        align-self: stretch;
        text-align: center;
    }
}

/* Inner pages — shared Opera Signature system */
body:not(.page-index) main {
    position: relative;
    overflow: hidden;
    background: #fbfcfc;
}

body:not(.page-index) main > section:not(.page-header):not(.about-hero):not(.flight-hero):not(.gallery-hero) {
    position: relative;
}

.page-header,
.gallery-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 310px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 16% 28%, rgba(17, 155, 87, 0.3), transparent 22%),
        linear-gradient(120deg, #032a47 0%, var(--opera-navy) 68%, #075c82 100%) !important;
    border-bottom: 5px solid var(--opera-gold);
}

.page-header::before,
.gallery-hero::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset-inline-end: -90px;
    top: -150px;
    width: 430px;
    height: 430px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    box-shadow: 0 0 0 55px rgba(255, 255, 255, 0.035), 0 0 0 110px rgba(255, 255, 255, 0.025);
}

.page-header::after,
.gallery-hero::after {
    content: 'OPERA · 1974';
    position: absolute;
    z-index: -1;
    inset-inline-end: 7%;
    bottom: -0.35em;
    color: rgba(255, 255, 255, 0.055);
    font-family: Poppins, sans-serif;
    font-size: clamp(4rem, 10vw, 9rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    white-space: nowrap;
}

.page-header .container,
.gallery-hero .container {
    position: relative;
    z-index: 2;
}

.page-header h1,
.gallery-hero h1 {
    max-width: 850px;
    margin: 0 0 0.75rem;
    color: #fff !important;
    font-size: clamp(2.25rem, 4.4vw, 4.25rem);
    line-height: 1.15;
    text-shadow: none;
}

.page-header h1::before,
.gallery-hero h1::before {
    content: '';
    display: block;
    width: 54px;
    height: 3px;
    margin-bottom: 1rem;
    background: var(--opera-gold);
}

.page-header .lead,
.gallery-hero .lead {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 1.05rem;
    line-height: 1.9;
}

/* About and flight pages get editorial split heroes */
.about-hero,
.flight-hero {
    position: relative;
    isolation: isolate;
    min-height: 470px;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(100deg, rgba(3, 42, 71, 0.97), rgba(6, 59, 99, 0.87)),
        var(--opera-navy) !important;
    border-bottom: 5px solid var(--opera-gold);
}

.about-hero::before,
.flight-hero::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset-inline-end: -8%;
    top: -45%;
    width: 52%;
    aspect-ratio: 1;
    background: repeating-radial-gradient(circle, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 28px);
    border-radius: 50%;
}

.about-hero::after,
.flight-hero::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset-inline-end: 8%;
    bottom: -180px;
    width: 360px;
    height: 360px;
    background: rgba(17, 155, 87, 0.22);
    border: 1px solid rgba(200, 169, 107, 0.45);
    border-radius: 4px 90px 4px 90px;
    transform: rotate(12deg);
}

.about-hero h1,
.about-hero .lead,
.flight-hero h1,
.flight-hero .lead {
    color: #fff !important;
}

.about-hero h1,
.flight-hero h1 {
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    line-height: 1.18;
}

.about-eyebrow {
    color: var(--opera-gold);
    letter-spacing: 0.08em;
}

.about-actions .btn,
.flight-hero .btn {
    border-radius: 4px 18px 4px 18px;
}

.about-highlight,
.flight-service-panel {
    padding: 1.7rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px 28px 4px 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(10px);
}

/* Content cards */
body:not(.page-index):not(.page-admin) main .card {
    overflow: hidden;
    border: 1px solid rgba(6, 59, 99, 0.09);
    border-radius: 4px 26px 4px 26px;
    box-shadow: 0 14px 38px rgba(6, 59, 99, 0.08) !important;
}

body:not(.page-index) main .card .card-body {
    padding: 1.55rem;
}

body:not(.page-index) main .card .card-footer {
    padding: 1rem 1.55rem;
    border-top: 1px solid rgba(6, 59, 99, 0.08);
}

body:not(.page-index) main .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 55px rgba(6, 59, 99, 0.14) !important;
}

.page-program main .card:hover,
.page-contact main .card:hover,
.page-flight-booking main .card:hover,
.page-hajj-booking main .card:hover {
    transform: none;
}

.program-card .program-image-wrap,
.article-card .article-card-image {
    position: relative;
}

.program-card .program-image-wrap::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(transparent, rgba(3, 42, 71, 0.34));
    pointer-events: none;
}

.program-card .card-title,
.article-card .card-title {
    font-size: 1.18rem;
    line-height: 1.5;
}

/* Programs catalogue */
.program-category-nav {
    background: #fff !important;
    border-bottom: 1px solid #e3ebee;
    box-shadow: 0 12px 30px rgba(6, 59, 99, 0.05);
}

.program-category-nav .d-flex {
    gap: 0.65rem !important;
}

.program-category-nav .btn,
.program-filters .btn {
    padding: 0.65rem 1rem;
    border-radius: 999px;
    font-weight: 700;
}

.program-filters .container > form,
.search-page-form {
    padding: 1.35rem;
    background: var(--opera-cream);
    border: 1px solid #e9dfca;
    border-radius: 4px 24px 4px 24px;
}

.program-filters .form-control,
.program-filters .form-select,
.search-page-form .form-control {
    background-color: #fff;
}

.hajj-booking-callout {
    border-inline-start: 5px solid var(--opera-green);
    border-radius: 4px 24px 4px 24px;
    box-shadow: 0 16px 38px rgba(6, 59, 99, 0.08);
}

/* Detail pages */
.program-detail-image {
    border: 1px solid rgba(6, 59, 99, 0.1);
    border-radius: 4px 36px 4px 36px;
    box-shadow: 0 24px 55px rgba(6, 59, 99, 0.13);
}

.program-detail-image img {
    border-radius: inherit;
}

.page-program main .col-lg-4 > .card:first-child {
    color: #fff;
    background: var(--opera-navy);
    border: 0;
}

.page-program main .col-lg-4 > .card:first-child h2,
.page-program main .col-lg-4 > .card:first-child h5,
.page-program main .col-lg-4 > .card:first-child .text-primary {
    color: #fff !important;
}

.article-body {
    padding: clamp(1.4rem, 3vw, 3rem);
    background: #fff;
    border: 1px solid rgba(6, 59, 99, 0.08);
    border-radius: 4px 34px 4px 34px;
    box-shadow: 0 18px 45px rgba(6, 59, 99, 0.07);
}

.article-body p {
    color: #405966;
    line-height: 2;
}

/* Booking and contact forms */
.flight-booking-form,
.contact-form {
    position: relative;
}

.flight-booking-form .content-card,
.contact-page .row > div:first-child > .card {
    padding: clamp(1.25rem, 3vw, 2.25rem);
    border: 1px solid rgba(6, 59, 99, 0.09);
    border-radius: 4px 30px 4px 30px;
    box-shadow: 0 20px 50px rgba(6, 59, 99, 0.08);
}

.flight-booking-form .content-card h2,
.contact-form + h2 {
    position: relative;
}

.flight-booking-form .content-card h2::after {
    content: '';
    display: block;
    width: 46px;
    height: 3px;
    margin-top: 0.65rem;
    background: var(--opera-green);
}

.form-control,
.form-select {
    min-height: 50px;
    border-color: #d9e2e6;
    border-radius: 4px 12px 4px 12px;
    background-color: #fff;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--opera-green);
    box-shadow: 0 0 0 0.22rem rgba(17, 155, 87, 0.12);
}

textarea.form-control {
    min-height: 125px;
}

.flight-booking-actions .btn,
.contact-form .btn[type='submit'] {
    min-height: 52px;
    padding-inline: 1.7rem;
    border-radius: 4px 18px 4px 18px;
    font-weight: 800;
}

.contact-info-card {
    border-inline-start: 4px solid var(--opera-green) !important;
}

.contact-info-card i.fa-3x,
.rtl-mode .contact-info-card i.fa-3x,
.ltr-mode .contact-info-card i.fa-3x {
    display: inline-grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin-inline: auto;
    color: var(--opera-blue) !important;
    background: #eaf7f0;
    border-radius: 50%;
    font-size: 1.7rem;
}

/* Blog, gallery, search and utility pages */
.article-card .article-card-image {
    height: 230px;
}

.gallery-album-tabs {
    padding: 0.7rem;
    background: #fff;
    border: 1px solid #e4ebee;
    border-radius: 4px 22px 4px 22px;
    box-shadow: 0 14px 35px rgba(6, 59, 99, 0.07);
}

.gallery-album-tab {
    border-radius: 4px 15px 4px 15px;
}

.gallery-card {
    border: 6px solid #fff;
    border-radius: 4px 28px 4px 28px;
    box-shadow: 0 18px 40px rgba(6, 59, 99, 0.12);
}

.search-result-card {
    border-radius: 4px 20px 4px 20px;
    box-shadow: 0 12px 30px rgba(6, 59, 99, 0.07);
}

.pagination .page-link {
    min-width: 42px;
    min-height: 42px;
    display: grid;
    place-items: center;
    border-radius: 4px 12px 4px 12px !important;
    margin: 0 0.2rem;
}

.empty-state {
    padding: 4rem 1.5rem;
    background: var(--opera-cream);
    border: 1px dashed var(--opera-gold);
    border-radius: 4px 30px 4px 30px;
}

@media (max-width: 767.98px) {
    .page-header,
    .gallery-hero {
        min-height: 250px;
    }

    .page-header h1,
    .gallery-hero h1 {
        font-size: 2.25rem;
    }

    .about-hero,
    .flight-hero {
        min-height: auto;
        padding-block: 4rem !important;
    }

    .program-category-nav .d-flex {
        justify-content: flex-start !important;
        overflow-x: auto;
        flex-wrap: nowrap !important;
        padding-bottom: 0.5rem;
    }

    .hajj-booking-callout {
        align-items: stretch;
        flex-direction: column;
    }

    .hajj-booking-callout .btn {
        width: 100%;
    }
}
