/* This file contains styles specific to the 'explore' page layout. */

nav {
    flex-direction: column;
    padding-top: 3px;
    padding-bottom: 3px;
}

.logo-motto-container {
    width: 100%;
}

.logo-image {
    height: 100px;
}

.header-motto {
    font-size: 14px;
    padding-left: 10px;
    margin: 0;
}

.nav-links {
    gap: 22px;
    justify-content: flex-end;
    width: 100%;
    position: relative;
    top: -10px;
    margin-bottom: -10px;
}

.nav-links li a {
    border-radius: 4px;
}

.nav-links li a:hover, .nav-links a.active {
    color: var(--mena-gold);
    background-color: rgba(249, 249, 249, 0.1);
    padding: 8px 8px;
}


/* SERVICE HERO */
.service-hero {
    background: #f5f5f5;
    padding: 60px 0;
    color: var(--mena-navy);
    position: relative;
    overflow: hidden;
}

.service-hero::before {
    content: '';
    position: absolute;
    right: -10%;
    top: -10%;
    width: 40%;
    height: 120%;
    background: radial-gradient(circle, rgba(212,175,55,0.1) 0%, transparent 70%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hero-text h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--mena-navy) 0%, var(--mena-dark-navy) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    position: relative;
}

.hero-text h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--mena-gold);
}

.service-tagline {
    font-size: 1.3rem;
    color: var(--mena-gold);
    font-style: italic;
    margin-bottom: 25px;
    font-weight: 300;
}

.service-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
    color: #555;
}

.hero-visual {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.hero-visual video, .hero-visual img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.btn {
    display: inline-block;
    background: white;
    color: var(--mena-dark-navy);
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 2px solid var(--mena-gold);
    cursor: pointer;
    margin-right: 15px;
    margin-bottom: 10px;
}

.btn:hover {
    background: var(--mena-gold);
    color: var(--mena-dark-navy);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* PACKAGES SECTION */
.packages-section {
    padding: 80px 0;
    background-color: white;
    color: #333;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    color: var(--mena-navy);
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 600;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--mena-gold);
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 25px auto 0;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.package-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

.package-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

.package-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.package-card:hover .package-image {
    transform: scale(1.05);
}

.package-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.package-name, .service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mena-navy);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.package-name {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.package-tagline {
    color: var(--mena-gold);
    font-style: italic;
    text-align: center;
    margin-bottom: 20px;
}

.package-price {
    font-size: 2.5rem;
    color: var(--mena-navy);
    font-weight: 700;
    margin-bottom: 5px;
    text-align: center;
}

.package-duration {
    color: #666;
    font-size: 0.9rem;
    text-align: center;
}

.package-features {
    list-style: none;
    margin: 30px 0;
}

.package-features li {
    padding: 8px 0 8px 25px;
    color: #555;
    position: relative;
}

.package-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--mena-gold);
    font-weight: bold;
}

.featured-badge, .package-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 10;
}

.featured-badge {
    background: linear-gradient(135deg, var(--mena-gold) 0%, var(--mena-light-gold) 100%);
    color: var(--mena-dark-navy);
}

.package-badge.star {
    background: var(--mena-gold);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    border-radius: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    padding: 0;
}

/* BOOKING SIDEBAR */
.booking-container {
    display: flex;
    justify-content: center;
    padding: 40px 0;
    background-color: #f9f9f9;
}

.booking-sidebar {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.booking-sidebar h3 {
    color: var(--mena-navy);
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
}

.current-selection {
    background: var(--mena-navy);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    text-align: center;
}

.current-selection h4 {
    color: var(--mena-gold);
    margin-bottom: 10px;
}

.selection-price {
    font-size: 1.5rem;
    font-weight: 600;
}

/* FOOTER */
footer {
    background-color: var(--mena-navy);
    color: #f9f9f9;
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    margin-bottom: 2rem;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--mena-gold);
}

.footer-column p, .footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--mena-gold);
}

.footer-logo {
    margin-bottom: 15px;
    background-color: var(--mena-dark-navy);
    display: inline-block;
    padding: 0;
    border-radius: 6px;
}

.footer-logo-image {
    height: 100px;
    width: auto;
}

.footer-motto {
    font-size: 18px;
    margin: 15px 0;
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--mena-gold);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--mena-gold);
    color: var(--mena-dark-navy);
    transform: translateY(-2px);
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #aaa;
}

/* SERVICES GRID */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    perspective: 1200px;
    padding: 3rem 0;
    margin-top: 2rem;
}

.service-card {
    width: 100%;
    height: 500px;
    position: relative;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(255,255,255,0.95));
    border: 1px solid rgba(26, 30, 46, 0.08);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    backdrop-filter: blur(10px);
}

.service-card[data-position="left"], 
.service-card[data-position="right"] {
    transform: rotateX(-0.7deg) rotateY(0.5deg) rotateZ(0.05deg);
}

.service-card.single-item {
    grid-column: 1 / -1;
    width: 85%;
    max-width: 1000px;
    margin: 0 auto;
    transform: rotateX(0deg) rotateY(0deg);
    height: 700px;
    padding: 2rem 4rem;
}

.service-card:hover {
    transform: rotateX(0deg) rotateY(0deg) scale(1.03);
    box-shadow: 0 15px 35px rgba(0,0,0,0.18);
}

.service-title {
    text-align: center;
    color: var(--mena-navy);
    font-weight: 600;
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
}

.service-card.single-item .service-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.service-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 1.2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.service-card.single-item .service-image {
    height: 350px;
    margin-bottom: 2rem;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.08);
}

.service-description {
    color: #555;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 1.5rem;
    text-align: left;
    font-size: 0.95rem;
}

.service-card.single-item .service-description {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.service-link {
    padding: 8px 0;
    margin-top: auto;
    color: var(--mena-gold);
    font-weight: 600;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    display: inline-block;
}

.service-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--mena-gold);
    transition: width 0.3s ease;
}

.service-link:hover {
    color: var(--mena-light-gold);
}

.service-link:hover::after {
    width: 100%;
}

.service-link-left { align-self: flex-start; }
.service-link-right { align-self: flex-end; }
.service-link-center { align-self: center; }

@keyframes serviceFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.service-card[data-position="left"]:not(:hover),
.service-card[data-position="right"]:not(:hover),
.service-card.single-item:not(:hover) {
    animation: serviceFloat 3.2s ease-in-out infinite;
}

.service-card:nth-child(1) { animation-delay: 0s; }
.service-card:nth-child(2) { animation-delay: 0.4s; }
.service-card:nth-child(3) { animation-delay: 0.8s; }
.service-card:nth-child(4) { animation-delay: 1.2s; }
.service-card:nth-child(5) { animation-delay: 1.6s; }

/* RESPONSIVE DESIGN */
@media (max-width: 1100px) {
    .nav-links {
        gap: 15px;
    }
    .nav-links li a {
        font-size: 14px;
    }
}

@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-text h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 0;
    }
    nav {
        align-items: flex-start;
    }
    .logo-container {
        margin-bottom: 20px;
    }
    .nav-links {
        justify-content: flex-start;
        gap: 10px;
        margin-top: 15px;
        top: 0;
        margin-bottom: 0;
    }
    .nav-links li a {
        padding: 5px 10px;
        font-size: 13px;
    }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 0;
    }
    .service-card, .service-card.single-item {
        width: 100%;
        height: auto;
        min-height: 450px;
        animation: serviceFloat 3.2s ease-in-out infinite !important;
    }
    .service-card:hover { 
        transform: scale(1.02); 
    }
    .packages-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .package-card {
        min-height: 450px;
    }
    .service-card.single-item {
        height: auto;
        min-height: 500px;
        padding: 2rem;
    }
    .service-card.single-item .service-image {
        height: 250px;
    }
    .service-card.single-item .service-title {
        font-size: 1.5rem;
    }
    .service-card.single-item .service-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .service-card {
        padding: 1.5rem;
        min-height: 400px;
    }
    .service-image { 
        height: 200px; 
    }
    .service-title { 
        font-size: 1.2rem; 
    }
    .service-description { 
        font-size: 0.9rem; 
    }
    .service-card.single-item {
        padding: 1.5rem;
        min-height: 450px;
    }
    .service-card.single-item .service-image {
        height: 220px;
    }
    .service-card.single-item .service-title {
        font-size: 1.3rem;
    }
}

/* SINGLE SERVICE CARD ENHANCEMENTS */
.service-card.single-item .service-link {
    font-size: 1.1rem;
    padding: 15px 30px;
    background-color: var(--mena-gold);
    color: var(--mena-dark-navy);
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    border: 2px solid transparent;
}

.service-card.single-item .service-link:hover {
    background-color: var(--mena-dark-navy); 
    color: var(--mena-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.service-card.single-item .service-link::after {
    display: none;
}



/* STYLES FOR NEW 3-CARD PACKAGE LAYOUT */

.packages-grid {
    /* This will now act as a container for the rows */
    display: flex;
    flex-direction: column;
    gap: 3rem; /* This creates space between each package row */
}

.package-row-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch; /* Ensures all cards stretch to the same height */
}

/* Styling for the Packages Category Title */
.package-category-title {
    color: var(--mena-navy);
    font-size: 2.8rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 60px; /* Adds space below the title */
    position: relative;
    padding-bottom: 15px; /* Ensures space for the underline */
}

.package-category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--mena-gold);
}

.package-grid-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.package-grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* Card 1: Title */
.package-card-title .package-badge.star {
    position: static; /* Override absolute positioning */
    margin-bottom: 1rem;
    transform: scale(1.2);
}

.package-card-title .package-name {
    color: var(--mena-navy);
    font-size: 2rem;
    font-weight: 700;
}

/* Card 2: Image */
.package-card-image {
    padding: 0;
    overflow: hidden; /* Ensures media fits within rounded corners */
}

.package-featured-media {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crucial for controlling the height of the row */
}

/* Card 3: Details */
.package-card-details .package-message {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.7;
    flex-grow: 1; /* Pushes the button down */
    display: flex;
    align-items: center; /* Vertically centers the text */
    margin-bottom: 1.5rem;
}

.btn-package-book {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: var(--mena-gold);
    color: var(--mena-dark-navy);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-package-book:hover {
    background: var(--mena-dark-navy);
    color: var(--mena-gold);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26, 30, 46, 0.3);
}

.btn-package-book .fa-calendar-check {
    margin-right: 0.75rem; /* Ensure consistent spacing */
}

/* RESPONSIVE ADJUSTMENTS FOR NEW LAYOUT */
@media (max-width: 900px) {
    .package-row-grid {
        grid-template-columns: 1fr;
    }

    .package-card-image {
        min-height: 300px; /* Give the image a minimum height on mobile */
        order: -1; /* Move image to the top on mobile */
    }
}