/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Playfair Display", serif;
    color: #333;
    line-height: 1.6;
}

.safari-hero {
    position: relative;
    height: 100vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    padding-top: 80px;
    margin-bottom: 0;
    overflow: hidden;
}

.safari-hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.safari-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.safari-hero-slide.active {
    opacity: 1;
}

.safari-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.safari-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.safari-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-transform: capitalize;
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

/* ============================
   CONTAINER & SECTIONS
============================ */
.safari-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 100px; 
}

.safari-category-section {
    padding: 40px 0;
    position: relative;
    z-index: 1;
}

.safari-section-title {
    font-size: 2.8rem;
    color: #54595f;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
}

/* ============================
   GRID LAYOUT
============================ */
.safari-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.safari-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.safari-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.safari-grid-5 {
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

/* ============================
   SAFARI CARDS
============================ */
.safari-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    background: #fff;
}

/* Clickable card link styles */
.safari-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.safari-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.safari-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Add cursor pointer for clickable cards */
.safari-card-link {
    cursor: pointer;
}

.safari-card-image {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.safari-card-large .safari-card-image {
    height: 400px;
}

.safari-grid-5 .safari-card-image {
    height: 280px;
}

.safari-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.safari-card:hover .safari-card-image img {
    transform: scale(1.1);
}

/* ============================
   CARD OVERLAY
============================ */
.safari-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
    color: #fff;
    padding: 30px 25px;
    transform: translateY(0);
    transition: all 0.4s ease;
}

.safari-card:hover .safari-card-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 70%, rgba(0, 0, 0, 0.3) 100%);
}

.safari-card-overlay h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

/* Smaller font for 5-column grid */
.safari-grid-5 .safari-card-overlay h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.safari-card-overlay p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.95;
}

.safari-grid-5 .safari-card-overlay p {
    font-size: 0.9rem;
}

/* ============================
   COOKING CAROUSEL STYLES
============================ */
.cooking-carousel-wrapper {
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
    padding: 0 20px;
}

.cooking-carousel {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease-in-out;
    /* Start at position to show first 3 cards (5, 1, 2) */
}

.cooking-carousel .safari-card {
    min-width: calc(33.333% - 20px);
    flex-shrink: 0;
}


/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 30px 0 20px;
}

.carousel-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dots .dot:hover {
    background: #999;
}

.carousel-dots .dot.active {
    background: #5bc0de;
    width: 14px;
    height: 14px;
}

/* ============================
   BUTTONS
============================ */
.safari-btn-container {
    text-align: center;
    margin-top: 50px;
}

.safari-see-more-btn {
    display: inline-block;
    background: #5bc0de;
    color: #fff;
    padding: 10px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(77, 208, 225, 0.3);
}

.safari-see-more-btn:hover {
    background: #106c73;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(77, 208, 225, 0.4);
    text-decoration: none;
    color: #fff;
}

/* ============================
   RESPONSIVE DESIGN
============================ */

/* Large Desktop (1400px and above) */
@media (min-width: 1400px) {
    .safari-grid-5 {
        gap: 25px;
    }
    
    .safari-grid-5 .safari-card-image {
        height: 300px;
    }
}

/* Large Tablets & Small Desktops (1024px and below) */
@media (max-width: 1024px) {
    .safari-container {
        padding: 0 50px;
    }
    
    .safari-hero {
        height: 60vh;
        min-height: 400px;
        padding-top: 70px;
    }
    
    .safari-hero h1 {
        font-size: 2.8rem;
    }
    
    .safari-section-title {
        font-size: 2.3rem;
        margin-bottom: 50px;
    }
    
    .safari-section-title::after {
        width: 400px;
    }
    
    .safari-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .safari-grid-4,
    .safari-grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .safari-grid-5 .safari-card-image {
        height: 260px;
    }
    
    .safari-card-image {
        height: 300px;
    }
    
    .safari-card-large .safari-card-image {
        height: 350px;
    }
    
    .safari-category-section {
        padding: 40px 0;
    }
    
    /* Carousel adjustments */
    .cooking-carousel .safari-card {
        min-width: calc(50% - 15px);
    }
}

/* Tablets (768px and below) */
@media (max-width: 768px) {
    .safari-container {
        padding: 0 20px;
    }
    
    .safari-hero {
        height: 50vh;
        min-height: 350px;
        padding-top: 60px;
    }
    
    .safari-hero h1 {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }
    
    .safari-section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .safari-section-title::after {
        width: 300px;
    }
    
    .safari-grid,
    .safari-grid-2,
    .safari-grid-4,
    .safari-grid-5 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .safari-card-image {
        height: 280px;
    }
    
    .safari-card-large .safari-card-image {
        height: 300px;
    }
    
    .safari-grid-5 .safari-card-image {
        height: 240px;
    }
    
    .safari-card-overlay {
        padding: 25px 20px;
    }
    
    .safari-card-overlay h3 {
        font-size: 1.3rem;
    }
    
    .safari-grid-5 .safari-card-overlay h3 {
        font-size: 1.1rem;
    }
    
    .safari-card-overlay p {
        font-size: 0.95rem;
    }
    
    .safari-category-section {
        padding: 40px 0;
    }
    
    .safari-btn-container {
        margin-top: 40px;
    }
    
    .safari-see-more-btn {
        padding: 12px 40px;
        font-size: 1rem;
    }
    
    /* Carousel adjustments */
    .cooking-carousel-wrapper {
        padding: 0 10px;
    }
    
    .cooking-carousel {
        gap: 20px;
    }
    
    .cooking-carousel .safari-card {
        min-width: calc(50% - 10px);
    }
}

/* Mobile Devices (480px and below) */
@media (max-width: 480px) {
    .safari-container {
        padding: 0 15px;
    }
    
    .safari-hero {
        height: 40vh;
        min-height: 300px;
        padding-top: 60px;
    }
    
    .safari-hero h1 {
        font-size: 1.8rem;
        letter-spacing: 0.5px;
    }
    
    .safari-section-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
        padding: 0 10px;
    }
    
    .safari-section-title::after {
        width: 200px;
        height: 2px;
        margin-top: 15px;
    }
    
    .safari-grid,
    .safari-grid-5 {
        gap: 15px;
        grid-template-columns: 1fr;
    }
    
    .safari-card-image {
        height: 250px;
    }
    
    .safari-card-large .safari-card-image {
        height: 280px;
    }
    
    .safari-grid-5 .safari-card-image {
        height: 250px;
    }
    
    .safari-card-overlay {
        padding: 20px 15px;
    }
    
    .safari-card-overlay h3 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .safari-grid-5 .safari-card-overlay h3 {
        font-size: 1.2rem;
    }
    
    .safari-card-overlay p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .safari-category-section {
        padding: 40px 0;
    }
    
    .safari-btn-container {
        margin-top: 30px;
    }
    
    .safari-see-more-btn {
        padding: 12px 35px;
        font-size: 0.95rem;
        letter-spacing: 0.5px;
    }
    
    /* Carousel adjustments */
    .cooking-carousel-wrapper {
        padding: 0 5px;
    }
    
    .cooking-carousel {
        gap: 15px;
    }
    
    .cooking-carousel .safari-card {
        min-width: 100%;
    }
    
    .carousel-dots .dot {
        width: 10px;
        height: 10px;
    }
    
    .carousel-dots .dot.active {
        width: 12px;
        height: 12px;
    }
}
