/* Custom Tailwind Configuration */
@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400;700&family=Source+Sans+3:wght@400;500;600;700&family=Special+Elite&family=Source+Serif+4:wght@400;600&display=swap');

:root {
    --primary-navy: #2c5f6f;
    --dark-bg: #1a1a1a;
    --button-hover: #377d91;
}

body {
    font-family: 'Source Sans 3', sans-serif;
}

.logo-text {
    font-family: 'Special Elite', cursive;
}

/* Slideshow container */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slideshow-wrapper {
    height: calc(100vh - var(--header-height, 160px) - var(--form-height, 80px));
}

/* Calculate actual heights */
:root {
    --header-height: 160px;
    --form-height: 80px;
}

/* Individual slides */
.slide {
    display: none;
    width: 100%;
    height: 100%;
    position: relative;
}

.slide.active {
    display: block;
    animation: slideIn 0.5s ease-in-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes slideInFromBottom {
    from {
        transform: translate(20px, 20px);
        opacity: 0;
    }

    to {
        transform: translate(0, 0);
        opacity: 1;
    }
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background-color: #000;
}

.slide-content {
    opacity: 0;
}

.slide.active .slide-content {
    animation: slideInFromBottom 1.5s ease-out forwards;
}

/* Text shadows for readability */
.slide-content h2,
.slide-content p,
.slide-content a {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Button frame shadow */
.slide-content a {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    font-family: 'Source Serif 4', serif;
}

/* Category card subtitles */
.category-subtitle {
    font-family: 'Source Serif 4', serif;
}

/* Navigation arrows */
.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.slide-arrow:hover {
    opacity: 1;
}

.slide-arrow img {
    width: 60px;
    height: 60px;
    filter: invert(1) opacity(0.3);
}

.slide-arrow.prev {
    left: 2rem;
}

.slide-arrow.next {
    right: 2rem;
}

/* Dark overlay for readability */
.hero-overlay {
    background: transparent;
}

/* Optional overlay variations for individual slides */
.hero-overlay.overlay-light {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.3));
}

.hero-overlay.overlay-medium {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5));
}

.hero-overlay.overlay-dark {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom button styles */
.btn-primary {
    background-color: var(--primary-navy);
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--button-hover);
}

/* Sticky elements */
.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 100;
}

.sticky-nav > div {
    position: relative;
}

/* Dropdown menu styles */
.nav-item {
    position: relative;
}

.dropdown-menu {
    position: fixed;
    border-bottom-left-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
    padding: 0.75rem 0;
    margin-top: 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    text-align: left;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li {
    padding: 0;
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.625rem 1.25rem;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.sticky-subscribe {
    position: sticky;
    bottom: 0;
    z-index: 40;
}

/* Grid card hover effect */
.category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Ensure images maintain aspect ratio and don't stretch */
.category-card img {
    object-fit: cover;
    width: 100%;
    height: auto;
    max-width: 100%;
}

/* Slideshow images */
.slide img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Prevent category cards from stretching on mobile */
@media (max-width: 768px) {
    .category-card {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .category-card img {
        aspect-ratio: 1 / 1;
        object-fit: cover;
        height: auto;
    }
}

/* Scroll to top button */
.scroll-top {
    transition: opacity 0.3s ease;
}

.scroll-top.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Mobile menu styles */
.mobile-menu-button {
    display: none;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: #082f49;
    z-index: 200;
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu.active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.mobile-menu-content {
    position: relative;
    z-index: 201;
    background-color: #082f49;
    height: 100%;
}

/* Responsive breakpoints */
@media (max-width: 1024px) {
    .logo-text {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-button {
        display: block !important;
    }

    .desktop-nav {
        display: none !important;
    }

    .sticky-nav {
        position: static;
    }

    .logo-text {
        font-size: 2rem;
    }

    .sticky-nav > div {
        max-width: 100%;
    }

    .sticky-nav .rounded-b-3xl {
        border-radius: 0;
    }

    :root {
        --header-height: 120px;
        --form-height: 120px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.5rem;
    }

    :root {
        --header-height: 100px;
        --form-height: 140px;
    }
}

