/* =====================================================================
   GLOBAL STYLES
   ===================================================================== */
  
body {
    margin: 0;
    font-family: Arial, sans-serif;
   background: linear-gradient(90deg, rgba(101,193,230,0.6) 0%, rgba(87,199,133,0.6) 50%, rgba(88,83,237,0.6) 100%);
}

h1, h2, h3 {
    margin-top: 0;
}

.content {
    margin-left: 250px; /* space for sidebar (desktop) */
    padding: 20px;
}

.section.section {
	padding: 12px;
	margin-bottom: 18px;
	background: rgba(255,255,255,0.95);
	border-radius: 8px;
	box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    }

.btn {
    background-color: #990000;
    color: #fff;
    padding: 10px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

.btn:hover {
    opacity: 0.85;
}

/* =====================================================================
   SIDEBAR NAVIGATION (DESKTOP)
   ===================================================================== */

.sidebar {
    width: 250px;
    height: 100vh;
    background-color: #333;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    padding-top: 20px;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 9990;
}

.sidebar h3, .sidebar h4 {
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
}

/* Logo */
.sidebar .logo {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.sidebar .logo img {
    width: 80px;
    height: auto;
}

/* Links */
.sidebar .nav-link {
    padding: 10px 20px;
    color: white;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.sidebar .nav-link:hover {
    background-color: #444;
}

.navicon {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* =====================================================================
   SOCIAL ICONS
   ===================================================================== */
.social-links {
    text-align: center;
    margin-top: 20px;
}

.social-icon {
    display: inline-block;
    position: relative;
    margin: 0 15px;
}

.icon-ico {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #eee;
    padding: 10px;
    object-fit: contain;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.icon-ico:hover {
    transform: scale(1.1);
}

.icon-label {
    position: absolute;
    top: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 3px 8px;
    font-size: 0.75em;
    border-radius: 3px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.social-icon:hover .icon-label {
    opacity: 1;
}

/* =====================================================================
   MOBILE SIDEBAR TOGGLE BUTTON
   ===================================================================== */

.sidebar-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 10000;
    background: #333;
    border: none;
    color: white;
    padding: 10px 12px;
    font-size: 1.6rem;
    border-radius: 4px;
    cursor: pointer;
}

/* =====================================================================
   HERO SECTION (PARALLAX)
   ===================================================================== */

.hero {
    margin-left: 250px; /* prevent being under sidebar */
    background: url('../img/background5.webp') center center / cover no-repeat fixed;
    height: 100vh;
    min-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-shadow: 1px 1px 3px black;
    margin-bottom: 30px;
    position: relative;
}

/* Dark overlay 
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.15);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

*/

/* =====================================================================
   IMAGES
   ===================================================================== */
.responsive {
    max-width: 100%;
    height: auto;
}
/* =====================================================================
   SECTION7
   ===================================================================== 
 /* --- SWIPER / VOX POP STYLES --- */

.swiper {
    width: 100%;
    /* FIX 1: Essential height definition to prevent container collapse */
    height: 550px; 
    padding: 20px 0; 
}

.swiper-slide {
    height: auto;
    /* FIX 2: Use flexbox to align content vertically */
    display: flex;
    align-items: center; /* Center the slides vertically in the swiper track */
    justify-content: center;
    box-sizing: border-box; 
}

.slider-item {
    padding: 20px;
    text-align: center;
    /* FIX 3: Make the inner item fill the full slide height */
    height: 100%;
    min-height: 320px; 
    
    /* FIX 4: Use flexbox on the item to manage internal spacing */
    display: flex;
    flex-direction: column;
    /* This pushes the quote and image/name group to opposite ends */
    justify-content: space-between; 
    align-items: center;
}

.slider-item p {
	font-style: italic;
	padding: 4px;
	background-color: var(--surface-color);
	position: relative;
	border-radius: 6px;
	box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
	/* FIX 5: Allow the paragraph to grow and fill the available vertical space */
	flex-grow: 1;
	display: flex;
	flex-direction: column; /* Align content inside the quote */
	justify-content: center;
	margin-top: 0;
	margin-right: 15px;
	margin-bottom: 15px;
	margin-left: 15px;
}

.slider-item p span {
    /* Ensure the text is vertically centered within the quote box */
    align-self: center;
}

/* Ensure the pointer sits correctly below the quote box */
.slider-item p::after {
    content: "";
    position: absolute;
    border-style: solid;
    border-width: 0 15px 15px 15px;
    border-color: transparent transparent var(--surface-color) transparent;
    bottom: -18px; /* Adjusted to point closer to the image */
    left: calc(50% - 15px);
}

.slider-img {
    /* Optional: To ensure the image size is reasonable */
    max-width: 80px; 
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 15px 0 5px 0; 
    /* The Flexbox 'space-between' takes care of the vertical margin */
}
/* Add this rule to your CSS if you applied the HTML update */
.slider-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* FIX 2: Added a safe margin to position it neatly */
    margin-top: 20px;
}

.slider-footer span {
    font-weight: bold;
    margin-top: 5px;
}

/* Update the image style to only target the image within the new wrapper */
.slider-footer .slider-img {
    max-width: 100px; 
    height: auto; /* Let the image define its own height */
    /* Remove any unnecessary margin here */
    margin: 0; 
}
/* --- QUOTE ICONS (from previous fix) --- */

.quote-icon-left,
.quote-icon-right {
    color: var(--primary-color);
    font-size: 24px;
    line-height: 1;
    position: absolute;
}

.quote-icon-left {
    left: 10px;
    top: 10px;
}

.quote-icon-right {
    right: 10px;
    bottom: 10px;
}
/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
    text-align: center;
    padding: 10px;
    margin-top: 40px;
    color: #666;
    font-size: 0.9rem;
}

/* =====================================================================
   MOBILE RESPONSIVE OVERRIDES
   ===================================================================== */

@media (max-width: 768px) {

    /* Toggle button visible */
    .sidebar-toggle {
        display: block;
    }

    /* Sidebar slides off-screen */
    .sidebar {
        position: fixed;
        width: 250px;
        height: 100%;
        transform: translateX(-100%);
    }

    /* When active */
    .sidebar.open {
        transform: translateX(0);
    }

    /* Content shifts back to normal */
    .content {
        margin-left: 0;
        padding: 15px;
    }

    /* Hero should not be offset */
    .hero {
        margin-left: 0;
        background-attachment: scroll; /* disable parallax on phones */
        height: 80vh;
    }
	/* =====================================================================
   MOBILE BOTTOM NAVIGATION
   ===================================================================== */

.bottom-nav {
    display: none; /* hidden by default (shown in mobile only) */
}

@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
        justify-content: center;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #fff;
        border-top: 1px solid #ccc;
        padding: 10px 0;
        font-size: 1rem;
        z-index: 9999;
        box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
    }

    .bottom-nav a {
        color: #333;
        text-decoration: none;
        padding: 0 10px;
    }

    .bottom-nav a:hover {
        text-decoration: underline;
    }

    .bottom-nav .divider {
        margin: 0 5px;
        color: #aaa;
        font-weight: bold;
    }
}
}

/* Very small phones */
@media (max-width: 500px) {
    .hero {
        height: 75vh;
    }
}
