/* Base Styles & Typography */
body {
    font-family: 'Syne', sans-serif;
    color: #343434;
    font-weight: 400; 
    padding-top: 60px; /* NEW: Pushes content down to fix the navbar overlap */
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .nav-link {
    font-family: 'Syne', sans-serif;
    font-weight: 800; /* Use the heavy weight for impact */
    text-transform: uppercase; /* Looks great with Syne's geometry */
}

/* Colors matching Figma */
.text-primary { color: #1C71C2 !important; }
.bg-primary { background-color: #1C71C2 !important; }
.text-danger { color: #e11d48 !important; }
.text-warning { color: #F5E364 !important; }


/* --- NEW: Split Navbar Styling --- */
.solid-blue-nav {
    background-color: #1C71C2; /* Matches your text-primary color */
    padding: 15px 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

#mainNav .nav-link {
    color: #ffffff !important;
    font-weight: 400;
    font-size: 1rem;
    margin: 0 1.5rem;
    position: relative;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

/* Navbar Hover Underline Animation */
#mainNav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px; /* Pushed down slightly for a cleaner look */
    left: 0;
    background-color: #facc15;
    transition: width 0.3s ease;
}

#mainNav .nav-link:hover::after, #mainNav .nav-link.active::after {
    width: 100%;
}

#mainNav .nav-link:hover {
    color: #facc15 !important;
}

/* The Overlapping Center Logo */
.nav-logo-center {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    z-index: 1050;
}

.logo-circle {
    background-color: #1C71C2; 
    width: 90px;  /* CHANGED: Scaled down from 110px */
    height: 90px; /* CHANGED: Scaled down from 110px */
    border-radius: 50%; 
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2px; /* CHANGED: Tucked the padding in tighter */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3); 
    overflow: hidden; /* NEW: Forces anything inside to stay within the circle limits */
}

.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures the logo scales nicely */
    border-radius: 50%; /* NEW: Rounds off the actual square corners of your logo file */
}
/* --------------------------------- */

/* Custom list icons for the Our Walks section */
.walks-list {
    list-style: none; /* Removes the native giant image/bullet entirely */
    padding-left: 0;   /* Resets default browser list indentation */
}

.walks-list li {
    position: relative;
    padding-left: 45px; /* Creates room on the left for the footprints */
    margin-bottom: 0;   /* Let the HTML <br> tags handle the vertical spacing */
    line-height: 1.5;
}

/* Inserts the footprint icon precisely */
.walks-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%); /* Centers the footprints vertically against the text line */
    
    /* CONTROL SIZE HERE */
    width: 28px;   /* Adjusted width of your icon */
    height: 35px;  /* Adjusted height of your icon */
    
    background-image: url('images/icon.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    text-align: center;
}

.calendar-day {
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
}

.calendar-day:hover:not(.disabled) {
    background-color: #f0f7ff;
    border-color: #1C71C2;
}

.calendar-day.selected {
    background-color: #1C71C2 !important;
    color: white !important;
    border-color: #1C71C2;
}

.calendar-day.disabled {
    color: #ccc;
    cursor: not-allowed;
    background-color: #fafafa;
}

.hero-carousel {
    height: 80vh;
    background-color: #f0f2f5;
    margin-top: 0px; /* Adjust based on your navbar height */
}

.hero-carousel .carousel-control-next {
    right: 15px; /* Adjust this value to bring it closer or further from the edge */
    width: 5%;   /* Shrinks the clickable area width so it doesn't overlap text */
    justify-content: flex-end; /* Forces the arrow icon to align right */
}

.hero-carousel .carousel-control-prev {
    left: 15px;
    width: 5%;
    justify-content: flex-start;
}

.carousel-item {
    height: 80vh;
}

.carousel-split {
    display: flex;
    flex-direction: row;
    height: 100%;
    width: 100%;
    align-items: center;
}

.carousel-img-side {
    width: 50%;
    height: 100%;
    background-color: #cccccc; /* Placeholder for missing images */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-text-side {
    width: 50%;
    padding: 5% 8%;
    background-color: #ffffff;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Custom Arrows */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(30%) sepia(100%) saturate(500%) hue-rotate(190deg); /* Blue tint for arrows */
    width: 3rem;
    height: 3rem;
}

/* Individual Slide Image Classes */
.slide-img-1 { background-image: url('images/home/tipbased.jpg'); }
.slide-img-2 { background-image: url('images/home/newelcome.jpeg'); }
.slide-img-3 { background-image: url('images/home/guido.png'); }
.slide-img-4 { background-image: url('images/home/bam.jpg'); }
.slide-img-5 { background-image: url('images/home/slide5.jpg'); }

/* Mobile Responsiveness & Fix Overlap Issues */
@media (max-width: 991px) {
    .hero-carousel, .carousel-item {
        height: auto !important; /* Forces container to fit stacked text and image cleanly */
    }
    
    .carousel-split {
        flex-direction: column;
    }
    
    .carousel-img-side {
        width: 100%;
        height: 300px; /* Establishes a solid, safe height for the image on mobiles */
    }
    
    .carousel-text-side {
        width: 100%;
        height: auto; /* Lets the text container expand naturally to prevent overlaps */
        padding: 3rem 1.5rem; /* Clean vertical spacing so buttons aren't pushed out */
        text-align: center;
    }

    /* Shrink the large header on mobile so words don't clip off screen */
    .carousel-text-side h1, 
    .carousel-text-side .display-4 {
        font-size: 2rem !important; 
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
    }
    
    .carousel-text-side p {
        font-size: 0.95rem !important;
        margin-bottom: 1.5rem !important;
    }
}


/* Hero Section (Kept as backup just in case, though unused with the iframe) */
.hero-slide {
    height: 80vh;
    background-size: cover;
    background-position: center;
}
.tracking-wide {
    letter-spacing: 2px;
}

/* Blue Banner with subtle pattern */
.blue-banner {
    background-color: #3b82f6;
    background-image: radial-gradient(#60a5fa 10%, transparent 10%);
    background-size: 20px 20px;
}
.diagonal-line {
    width: 2px;
    height: 60px;
    background-color: #fff;
    transform: rotate(30deg);
}

/* Placeholders & Interactions */
.grey-placeholder {
    background-color: #e5e7eb;
    height: 350px;
    width: 100%;
}
.hover-scale {
    transition: transform 0.3s ease;
}
.hover-scale:hover {
    transform: scale(1.03);
}
.hover-lift {
    transition: transform 0.2s ease, text-shadow 0.2s ease;
}
.hover-lift:hover {
    transform: translateY(-3px);
    text-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.cursor-pointer {
    cursor: pointer;
}

/* Tours Section */
.tours-section {
    background-color: #f3efe6; /* Beige background from Figma */
}
.tour-img {
    border: 4px solid #fff;
}
.learn-more-link {
    display: inline-block;
    transition: all 0.2s ease;
}
.learn-more-link:hover {
    color: #1d4ed8 !important; /* Darker blue */
    transform: translateX(5px); /* Tiny nudge right on hover */
}

/* --- TESTIMONIALS PAGE STYLES --- */
.testimonials-wrapper {
    background-color: #4385d8; /* Slightly lighter blue base to match Figma */
    /* Checkered/Square Pattern Effect */
    background-image: linear-gradient(rgba(255, 255, 255, 0.07) 50px, transparent 50px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.07) 50px, transparent 50px);
    background-size: 100px 100px;
    min-height: 100vh;
}

.testimonial-card {
    border: none;
    border-radius: 0; /* Keeps the sharp, modern edges from your prototype */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #1C71C2;
}

/* Ensure inline Read More behaves well */
.read-more-toggle {
    cursor: pointer;
}
.read-more-toggle:hover {
    color: #1C71C2 !important;
}

/* Footer */
.footer {
    background-color: #1C71C2;
    position: relative; 
    z-index: 20; /* Ensures it stays on top of the image */
}
.footer-link {
    transition: color 0.2s;
}
.footer-link:hover {
    color: #facc15 !important;
    text-decoration: underline !important;
}

/* =========================================
   --- ABOUT US PAGE STYLES ---
========================================= */
.about-page-wrapper {
    background-color: #f4f8fc;
    background-image: 
        linear-gradient(white 2px, transparent 2px),
        linear-gradient(90deg, white 2px, transparent 2px);
    background-size: 80px 80px;
    background-position: -2px -2px;
}

/* Yellow Underline Effect for headings */
.yellow-highlight-heading {
    display: inline-block;
    position: relative;
    z-index: 1;
    color: #333; /* Dark text */
}

.yellow-highlight-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 100%;
    height: 8px;
    background-color: #F5E364; /* Matching your Bootstrap warning color */
    z-index: -1;
    opacity: 0.8;
}

.team-image-wrapper {
    width: 100%;
    display: block;
    line-height: 0; /* Prevents tiny gaps at the bottom of the image */
}

.team-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* The Overlap Logic */
.overlap-text-area {
    position: relative;
    /* Adjust this value (e.g., -150px to -250px) depending on 
       how high up the gradient starts in your specific image */
    margin-top: -800px; 
    padding-bottom: 100px;
    z-index: 10; /* Ensures text stays above the image */
}

/* Ensure the text is readable against the blue */
.overlap-text-area p {
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); /* Optional: adds a tiny bit of pop */
}

.partner-logo-img {
    /* Adjust these two numbers to find your "sweet spot" */
    width: 140px; 
    height: 160px;
    
    object-fit: contain; /* This is key: it prevents stretching/squishing */
    filter: grayscale(20%); /* Optional: makes them look a bit more uniform */
    transition: transform 0.3s ease, filter 0.3s ease;
}

.partner-logo-img:hover {
    transform: scale(1.1);
    filter: grayscale(0%);
}

/* Add this to keep the row organized */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

/* --- MEDIA PAGE SPECIFIC --- */

.media-card {
    transition: transform 0.3s ease;
    text-align: center;
}

.media-card img {
    border: 1px solid #ddd;
    background: white;
    padding: 5px; /* Gives it that "paper" border look */
    cursor: pointer;
}

.media-card:hover {
    transform: translateY(-8px);
}

.media-caption {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    color: #666;
    margin-top: 10px;
    line-height: 1.2;
    text-transform: none; /* Keeps it readable */
    font-weight: 600;
}

/* Adjusting the grid for smaller screens */
@media (max-width: 992px) {
    .media-caption {
        font-size: 0.7rem;
    }
}


/* Expandable Tour Layouts */
.transition-layout {
    transition: all 0.4s ease-in-out;
}

.tour-poster {
    transition: transform 0.4s ease-in-out, max-width 0.4s ease-in-out;
    max-width: 100%;
}

/* When the poster is expanded, we make it a bit larger and centered */
.expanded-tour-img {
    max-width: 85%; 
    margin: 0 auto;
    display: block;
    transform: scale(1.02); /* Gives it a slight pop */
}

/* A soft fade-in for the new text/image content */
.fade-in-section {
    animation: fadeIn 0.6s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Tour Pictures Gallery Styles */
.tour-pic-card {
    cursor: pointer;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    aspect-ratio: 4 / 3; /* Forces uniform box sizes across landscape/portrait files */
}

.tour-pic-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Hover effects */
.tour-pic-card:hover img {
    transform: scale(1.06);
}

/* Make lightbox backdrop nice and dark to focus on the image */
#lightboxModal .modal-backdrop {
    background-color: rgba(0, 0, 0, 0.9);
}

#lightboxModal .modal-content {
    outline: none;
}