/* GLOBAL ------------------------------------------------------ */

html, body {
    width: 100%;
    overflow-x: hidden;
    background-color: #FFE5D0;
    color: #ffffff;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

*, *::before, *::after {
    box-sizing: border-box;
}

img, .card-img-top {
    max-width: 100%;
    height: auto;
    display: block;
}

.fade-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* -------------------------------------------------------------
   FIXED HEADER (works 100% consistently vs sticky)
-------------------------------------------------------------- */

#mainHeader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background-color: #590514;
    padding: 15px 0;
    transition: padding 0.3s ease;
    text-align: center;
}

/* Space so page content does not hide under fixed header */
body {
    padding-top: 200px; /* Adjust depending on your logo height */
}

/* Logo inside Bootstrap container */
.header-inner {
    text-align: center;
}

.logo {
    width: 420px;
    transition: width 0.3s ease;
}
/* Center logo properly above navigation */
.logo-center {
    width: 100%;
    text-align: center;
    position: relative;
}

.logo-center .logo {
    display: inline-block;
}

#mainHeader.shrink {
    padding: 5px 0;
}

#mainHeader.shrink .logo {
    width: 210px;
}

/* -------------------------------------------------------------
   NAVIGATION
-------------------------------------------------------------- */

.main-nav {
    background-color: #590514;
    padding: 10px 0;
    position: relative;
    text-align: center;
    position: relative;
}

.main-nav ul.nav {
    justify-content: center;
}

.main-nav .nav-link {
    color: #ffffff !important;
    font-size: 1.1rem;
    padding: 10px 20px;
}

/* Mobile menu toggle button */
.mobile-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.8rem;
    display: none;
}

/* -------------------------------------------------------------
   MOBILE SLIDE MENU
-------------------------------------------------------------- */

#mobileMenu {
    position: fixed;
    left: -100%;
    top: 0;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background-color: #6B121A;
    transition: left 0.4s ease;
    z-index: 10000;
}

#mobileMenu.open {
    left: 0;
}

#mobileMenu .inner-box {
    background-color: #6B121A;
    height: 100%;
    padding: 25px;
}

.close-mobile {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    float: right;
}

.mobile-nav {
    margin-top: 60px;
    padding: 0;
}

.mobile-nav li {
    list-style: none;
    padding: 15px 0;
}

.mobile-nav a {
    color: #ffffff;
    font-size: 1.2rem;
    text-decoration: none;
}

/* -------------------------------------------------------------
   TEXT BOXES
-------------------------------------------------------------- */

.text-box {
    background-color: #6B121A;
    color: #ffffff;
    border-radius: 12px;
    margin: 50px auto;
    padding: 30px;
    max-width: 900px;
    text-align: left;
}

/* -------------------------------------------------------------
   CARDS
-------------------------------------------------------------- */

/* Match FAQ image style */
.custom-card {
    background: rgba(0,0,0,0.22);           /* same dark backdrop */
    border-radius: 12px;                    /* same roundness */
    padding: 1rem;                          /* same padding */
    overflow: hidden;
}

.custom-card .card-img-top {
    width: 100%;
    height: auto;
    border-radius: 8px;                    /* matches FAQ inner radius */
    border: 1px dashed rgba(255,255,255,0.35); /* same dashed border */
    display: block;
    background: transparent;
    padding: 1rem;                          /* same inner padding */
    object-fit: contain;                    /* keep square images correct */
}

.image-cards-wrapper {
    max-width: 950px;    /* increased from 900px → push cards outward */
    margin: 50px auto;
    padding: 0 30px;      /* matches .text-box inner spacing */
}


/* -------------------------------------------------------------
   FOOTER
-------------------------------------------------------------- */

footer {
    background-color: #590514;
    color: #ffffff;
    padding: 40px 0;
}

footer h5 {
    margin-bottom: 15px;
}



/* -------------------------------------------------------------
   RESPONSIVE
-------------------------------------------------------------- */

@media (max-width: 991.98px) {

    .mobile-toggle {
        display: block;
    }

    .main-nav ul.nav {
        display: none;
    }

    .logo {
        width: 260px;
    }

    #mainHeader.shrink .logo {
        width: 150px;
    }
}
