/* --- Global Styles & Fonts --- */
body {
    font-family: "Open Sans", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fdfdfd;
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Better box model */
}

*, *:before, *:after {
    box-sizing: inherit;
}

/* --- Core Layout Container --- */
.container {
    width: 100%;
    max-width: 1200px; /* Consistent max-width */
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px; /* Padding for mobile */
}

/* --- Color Palette & Variables --- */
:root {
    --color-primary: #FF4500; /* OrangeRed */
    --color-secondary: #FF8C00; /* DarkOrange */
    --color-text: #000000;
    --color-text-light: #555;
    --color-white: #fff;
    --color-bg-light: #fdfdfd;
    --color-border: #eaeaea;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: "Lora", serif;
    font-weight: 700;
    color: var(--color-text);
}

/* --- Buttons --- */
.btn, .btn-back {
    background-color: var(--color-primary);
    color: var(--color-white);
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: "Open Sans", sans-serif;
}

.btn:hover, .btn-back:hover {
    background-color: var(--color-secondary);
}

.btn-back {
    margin-top: 30px;
}

/* --- Header --- */
.main-header {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    position: relative;
    z-index: 1001; /* Ensure header is on top */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header .logo-link {
    text-decoration: none;
    display: inline-block;
    color: var(--color-primary);
}

.main-header h1 {
    margin: 0;
    font-size: 2.2rem;
}

.nav-extras {
    display: flex;
    align-items: center;
}

.language-switcher {
    font-size: 0.9em;
    margin-left: 20px;
}

.language-switcher a {
    color: var(--color-text-light);
    text-decoration: none;
    font-weight: bold;
    margin: 0 3px;
}

.language-switcher a:hover, .language-switcher a.active {
    color: var(--color-primary);
}

.btn-login {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    margin-right: 15px;
}

.btn-login:hover {
    background-color: var(--color-secondary);
}


/* --- Quick Access Bar --- */
.quick-access-bar {
    background-color: #f8f9fa;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
}

.quick-access-bar .container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on mobile */
    gap: 15px;
}

.btn-quick-access {
    background: none;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.btn-quick-access:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* --- Welcome Section --- */
.welcome-section {
    position: relative;
    width: 100%;
    height: 450px; /* Slightly taller */
    overflow: hidden;
    margin-bottom: 40px;
}

/* --- Video Hero Section --- */
.hero-video-container {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed for better visibility */
    overflow: hidden;
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translate(-50%, -50%);
    object-fit: cover; /* Ensures the video covers the container */
}

/* Use a background image as a fallback for browsers that don't support video */
@supports not (object-fit: cover) {
    #hero-video {
        top: 0;
        left: 0;
        transform: none;
    }
}

.welcome-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column; /* Centered column layout */
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--color-white);
    padding: 20px;
}

.welcome-overlay h2 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--color-white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.welcome-overlay p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 3px rgb(255, 0, 0);
}

/* --- Search & Highlights --- */
.search-section {
    background: var(--color-white);
    padding: 30px;
    margin-bottom: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: center;
}
.search-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.search-bar input[type="text"] {
    width: 100%;
    max-width: 500px; /* Set a max-width */
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.highlights-section {
    margin-bottom: 40px;
}
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.highlight-card {
    background: var(--color-white);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
}
.highlight-card h4 {
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 10px;
    margin-top: 0;
}
.food-gallery {
    display: flex;
    gap: 10px;
    justify-content: space-around;
    flex-wrap: wrap;
}
.food-item {
    text-align: center;
    font-size: 0.9em;
}
.food-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 5px;
}

/* --- Blog List (index.php) --- */
.latest-posts-section {
    padding: 40px 0;
}

.latest-posts-section > h1 {
    text-align: center;
    font-size: 2.5em;
    color: var(--color-primary);
    margin-bottom: 30px;
}

.post-excerpt {
  margin: 20px 0;
}

/* --- Image Gallery (Shared) --- */
.image-gallery,
.image-gallery-full {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.image-gallery-full {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Adjusted for better fit */
}

.image-gallery img,
.image-gallery-full img {
  width: 100%;
  height: 150px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 5px;
}

.image-gallery-full img {
    height: 200px;
}


/* --- Single Post (post.php) --- */
.single-post-container {
    padding: 20px 0;
}
.single-post h1 {
  font-size: 2.8rem;
  line-height: 1.2;
}
.single-post .post-content {
  font-size: 1.1rem;
  color: #444;
}

/* --- About & Contact Page Styles --- */
.page-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    margin: 40px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.contact-info-container i {
    color: var(--color-primary);
    margin-right: 10px;
}
.support-buttons {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.btn-whatsapp { background-color: #25D366; }
.btn-whatsapp:hover { background-color: #128C7E; }
.btn-call { background-color: #34B7F1; }
.btn-call:hover { background-color: #1DA1F2; }


/* --- Cuisines Page --- */
.section-title-bar {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.section-title-bar h1 {
    font-size: 2.5em;
    color: var(--color-primary);
    margin: 0;
}

.hero-video-section {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    text-align: center;
}

#background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -100;
    transform: translateX(-50%) translateY(-50%);
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px 40px;
    border-radius: 10px;
}

.cuisine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.cuisine-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.cuisine-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.card-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cuisine-card:hover .card-image-container img {
    transform: scale(1.05);
}

.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.card-content h3 {
    font-size: 1.5em;
    color: var(--color-primary);
}

.card-actions {
    margin-top: auto; /* Pushes actions to the bottom */
}


/* --- Floating Share Button --- */
.share-button-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

/* =================================== */
/* ========== MEDIA QUERIES ========== */
/* =================================== */

/* -- Tablets and smaller devices -- */
@media (max-width: 992px) {
    .header-container {
        position: relative;
    }

    .main-nav {
        display: none; /* Hide nav by default */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--color-white);
        border-top: 1px solid var(--color-border);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
    
    .main-nav.active {
        display: flex; /* Show when toggled */
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
    }
    
    .nav-links li {
        width: 100%;
        margin-left: 0;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-links a {
        padding: 15px 20px;
        width: 100%;
    }

    .mobile-menu-toggle {
        display: block; /* Show hamburger icon */
        font-size: 24px;
        background: none;
        border: none;
        cursor: pointer;
        color: var(--color-primary);
    }

    .nav-extras {
        margin-left: auto; /* Push login/lang to the right */
    }
}

/* -- Mobile phones -- */
@media (max-width: 768px) {
    h1, .single-post h1 { font-size: 2rem; }
    .welcome-overlay h2 { font-size: 2.2rem; }
    .welcome-overlay p { font-size: 1rem; }

    .search-bar {
        flex-direction: column;
        align-items: center;
    }

    .search-bar .btn {
        width: 100%;
        max-width: 500px;
    }

    .contact-grid {
        grid-template-columns: 1fr; /* Stack contact info and form */
    }

    .image-gallery-full {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px; /* Reduce padding on very small screens */
    }
    
    .main-header h1 {
        font-size: 1.8rem;
    }

    .btn-login {
        padding: 6px 12px;
        font-size: 0.9em;
    }

    .language-switcher {
        display: none; /* Optionally hide language switcher on very small screens */
    }

    .page-content, .post-preview {
        padding: 50px;
    }

    .welcome-overlay h2 {
        font-size: 1.8rem;
    }
}

/* =================================== */
/* == New Blog Post Card Styles == */
/* =================================== */

/* Grid container for the posts */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Removes underline from the link wrapping the card */
.post-preview-link {
    text-decoration: none;
}

.post-preview {
    position: relative;
    height: 350px; /* Set a fixed height */
    border-radius: 8px;
    overflow: hidden;
    background-size: cover;
    background-position: center center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.post-preview:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(153, 118, 118, 0.2);
}

/* Dark overlay for text readability */
.post-preview.has-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 50%);
    z-index: 1;
    border-radius: inherit;
}

/* Fallback style for posts without an image */
.post-preview.no-background {
    background-color: #2c3e50;
}

/* Sits on top of the overlay */
.post-preview-content {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Styling for the text on the card */
.post-preview h2,
.post-preview .post-meta {
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.post-preview h2 {
    font-family: "Open Sans", sans-serif; /* Changed font to match body */
    font-size: 1.5em;
    margin: 0 0 5px 0;
    line-height: 1.3;
    /* Styles to make title fit and handle overflow */
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Allow up to 3 lines for the title */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1.5em * 1.3 * 3); /* Corresponds to font-size * line-height * line-clamp */
}

.post-preview .post-meta {
    font-size: 0.9em;
    font-family: "Open Sans", sans-serif;
    opacity: 0.9;
}


/* =================================== */
/* == ENHANCED ABOUT US PAGE STYLES == */
/* =================================== */

/* --- General Page Enhancements --- */
.about-us-page .page-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 20px;
    background-color: var(--color-bg-light);
    border-bottom: 2px solid var(--color-primary);
}

.about-us-page h1 {
    font-size: 2.8rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.about-us-page .page-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto;
}

.about-section {
    margin-bottom: 50px;
    padding: 20px;
    border-left: 4px solid var(--color-secondary);
    background-color: #fff;
}

.about-section h2 {
    font-size: 2.2rem;
    color: var(--color-text);
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
}

.content-display {
    line-height: 1.8;
    color: var(--color-text-light);
}

/* --- Meet the Team Section --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.team-card {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.team-photo {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: top; /* Adjust as needed */
}

.team-info {
    padding: 25px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.team-name {
    font-family: "Lora", serif;
    font-size: 1.6rem;
    color: var(--color-primary);
    margin: 0 0 5px 0;
}

.team-title {
    font-size: 1rem;
    color: var(--color-text);
    font-weight: bold;
    margin: 0 0 15px 0;
}

.team-bio {
    font-size: 0.95rem;
    color: var(--color-text-light);
    flex-grow: 1;
    margin-bottom: 20px;
}

/* --- Social Share Buttons --- */
.social-share {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: auto; /* Pushes to the bottom */
}

.social-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #f0f0f0;
    color: var(--color-text);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-share a:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.1);
}


/* --- Our Impact Section --- */
.impact-section {
    background-color: var(--color-white);
    border-left-color: #27ae60; /* A green color for impact */
}

.impact-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.impact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.impact-item i {
    font-size: 2rem;
    color: var(--color-secondary);
    background-color: rgba(255, 140, 0, 0.1);
    padding: 15px;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    text-align: center;
}

.impact-text h3 {
    margin: 0 0 5px 0;
    font-size: 1.3rem;
    color: var(--color-text);
}

.impact-text p {
    margin: 0;
    color: var(--color-text-light);
}

@media (max-width: 480px) {
    .about-us-page h1 {
        font-size: 2.2rem;
    }
    .about-section h2 {
        font-size: 1.8rem;
    }
    .impact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* --- Personalized Journey Section --- */
.personalized-journey-section {
    background: var(--color-bg-light);
    padding: 40px 30px;
    margin-bottom: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.personalized-journey-section h2, .personalized-journey-section p {
    text-align: center;
}

.interest-options {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.interest-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1em;
    cursor: pointer;
}

.interest-options input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-primary);
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.interest-options input[type="checkbox"]:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.interest-options input[type="checkbox"]:checked::after {
    content: '✔';
    font-size: 14px;
    color: var(--color-white);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#personalized-results {
    margin-top: 40px;
}

/* --- Community Gallery Section --- */
.gallery-section {
    padding: 40px 20px;
    background-color: var(--color-bg-light);
}

.gallery-section h2, .gallery-section p {
    text-align: center;
    margin-bottom: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding-top: 20px;
}

.gallery-item {
    background-color: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.media-content {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.media-content img, .media-content video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.item-info h3 {
    margin: 0 0 5px;
    font-size: 1.2em;
    color: var(--color-text);
}

.item-info p {
    margin: 0 0 10px;
    font-size: 0.9em;
    color: var(--color-text-light);
}

.action-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.like-button, .share-button {
    cursor: pointer;
    font-size: 1em;
    color: var(--color-text-light);
    transition: color 0.3s ease;
}

.like-button:hover, .share-button:hover {
    color: var(--color-primary);
}

.like-button i.fa-solid {
    color: var(--color-primary);
}

.likes-count {
    margin-left: 5px;
    font-weight: 600;
}

.verified-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #27ae60;
    font-size: 1.5em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    cursor: help;
}

/* --- Admin Approval Page Styling --- */
.admin-container {
    padding: 20px;
}

.gallery-pending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.pending-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.pending-media-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.media-item {
    position: relative;
    width: 120px;
    height: 120px;
    overflow: hidden;
    border: 1px solid #eee;
    border-radius: 4px;
}

.media-item img, .media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-verify {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background-color: #3498db;
    color: #fff;
    padding: 5px;
    font-size: 0.8em;
    border-radius: 4px;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.btn-verify:hover {
    opacity: 1;
}

.card-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-approve { background-color: #2ecc71; color: #fff; }
.btn-reject { background-color: #e74c3c; color: #fff; }

.gallery-header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    margin-bottom: 20px;
}

.gallery-header-section h2,
.gallery-header-section p {
    margin: 0;
    text-align: left; /* Aligns text to the left */
}

.upload-button {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.upload-button:hover {
    background-color: var(--color-secondary);
}

@media (max-width: 768px) {
    .gallery-header-section {
        flex-direction: column;
        align-items: flex-start;
    }
    .upload-button {
        margin-top: 15px; /* Adds space between text and button on mobile */
    }
}

/* --- New Gallery Card & Slider Styles --- */
.gallery-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.gallery-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.card-header, .card-footer {
    padding: 20px;
}

.card-header {
    border-bottom: 1px solid var(--color-border);
}

.card-header h3 {
    margin: 0;
}

.card-header p {
    margin-top: 5px;
    color: var(--color-text-light);
}

.card-footer {
    margin-top: auto; /* Pushes the footer to the bottom */
}

.media-slider-wrapper {
    position: relative;
    width: 100%;
    /* Set a consistent aspect ratio, e.g., 4:3 */
    padding-top: 75%; 
    overflow: hidden;
}

.media-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.media-slide {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.media-slide img, .media-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 10;
    font-size: 1.5em;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.slider-btn:hover {
    opacity: 1;
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

.slider-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.indicator-dot.active {
    background: var(--color-white);
}

.description {
    color: var(--color-text-light);
    margin: 0 0 15px 0;
}

.action-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.home-partners-section {
        background-color: #fafafa;
        padding: 4rem 1rem;
        text-align: center;
    }
    .home-partners-section h2 {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 2rem;
        color: #333;
    }
    .featured-partners-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        max-width: 1000px;
        margin: 0 auto 3rem auto;
    }
    .featured-partner-logo {
        height: 80px; /* Fixed height for consistency */
        filter: grayscale(100%);
        opacity: 0.7;
        transition: filter 0.3s ease, opacity 0.3s ease;
    }
    .featured-partner-logo:hover {
        filter: grayscale(0%);
        opacity: 1;
    }
    .view-all-btn-wrapper {
        margin-top: 2rem;
    }
    .view-all-btn {
        display: inline-block;
        padding: 0.9rem 2rem;
        background-color: #ff6600;
        color: #fff;
        text-decoration: none;
        font-weight: 600;
        border-radius: 8px;
        transition: background-color 0.3s ease, transform 0.3s ease;
    }
    .view-all-btn:hover {
        background-color: #e65c00;
        transform: translateY(-3px);
    }

    /* =============================================
   Hero Video Section Styles
   ============================================= */

.hero-video-section {
  position: relative; /* This is the anchor for positioning the video and text */
  height: 60vh; /* Sets the height of the hero section. Adjust 60vh to be taller or shorter. */
  width: 100%;
  display: flex; /* Using flexbox to easily center the text content */
  align-items: center;
  justify-content: center;
  overflow: hidden; /* Hides any parts of the video that might stick out */
  color: #fff; /* Sets the default text color to white for better contrast */
}

.hero-video-section .video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* Puts the video container in the background */
}

#background-video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* This is the key property! It makes the video cover the entire area without distortion. */
}

.hero-video-section .hero-content {
  position: relative; /* Ensures this content sits on top of the video */
  z-index: 2;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.4); /* Replaces the solid gray with a semi-transparent black for readability */
  padding: 30px 40px;
  border-radius: 8px;
  max-width: 80%;
}

.hero-content h1 {
  font-size: 2.5rem; /* Makes the title larger */
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Adds a shadow to make text pop */
}

.hero-content p {
  font-size: 1.2rem; /* Makes the subtitle larger */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.load-more-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
}

.load-more-btn, .refresh-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.load-more-btn {
    background-color: var(--color-primary);
    color: white;
}

.load-more-btn:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
}

.load-more-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.refresh-btn {
    background-color: #f0f0f0;
    color: #333;
    width: 50px;
    height: 50px;
    justify-content: center;
    border-radius: 50%;
}

.refresh-btn:hover {
    background-color: #e0e0e0;
    transform: rotate(180deg);
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
