/* --- Global Site Background --- */
body {
    /* Make sure this filename matches your SVG file exactly */
    background-image: url('../images/background-pattern.svg');

    /* This makes the pattern repeat across the whole page */
    background-repeat: repeat;

    /* Optional: This keeps the background fixed in place as you scroll */
    background-attachment: fixed;
}


/* --- Hero Banners for Product and Course Pages --- */
.page-hero {
    padding: 5rem 0;
    color: white;
    background-size: cover;
    background-position: center;
}

.page-hero-products {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1657711772204-c90a591ad1e4?q=80&w=1740&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
}

.page-hero-courses {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1669633760258-186e9dee81e7?q=80&w=1740&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
}
/* --- Homepage Sections (New Centered Layout) --- */
.hero-section-contained {
    padding: 4rem 2rem;
    background-color: #e9ecef; /* A light grey background */
    border-radius: 0.5rem; /* Give it soft, rounded corners */
}

.section {
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.section-title {
    margin-bottom: 3rem;
}

.service-icon {
    font-size: 3rem;
    color: #0d6efd;
}
/* --- Homepage Sections --- */
/* --- Homepage Sections --- */
.hero-section {
    /* This is the gradient and image you provided */
     background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://i.imgur.com/LD2wnPg.jpeg');

    /* These properties make it fully responsive */
 
     background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* This keeps the image in place while scrolling */

    /* These are for layout and text color */
    color: white;
    padding: 8rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.section {
    padding: 4rem 0;
}

.section-title {
    margin-bottom: 3rem;
}

.service-icon {
    font-size: 3rem;
    color: #0d6efd;
}

/* --- Custom Header Style --- */
#mainNavbar {
    background-color: #BD4A76; /* Your custom brand color */
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

#mainNavbar .nav-link {
    color: #ffffff;      /* Solid white color */
    font-weight: 700;      /* Bolder font */
    font-size: 1.15rem;    /* Slightly larger font */
    margin: 0 0.5rem;
    transition: opacity 0.2s ease;
}

#mainNavbar .nav-link:hover, #mainNavbar .nav-link.active {
    opacity: 0.8; /* A subtle hover effect */
}

/* This keeps your logo white against the new dark background */
#mainNavbar .navbar-brand img {
    filter: brightness(0) invert(1);
}

/* Style the search button to match */
#mainNavbar .btn-outline-light {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}
#mainNavbar .btn-outline-light:hover {
    color: #BD4A76;
    background-color: #fff;
    border-color: #fff;
}
/* --- Floating WhatsApp Chat Button --- */
.whatsapp-chat-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25D366; /* Official WhatsApp Green */
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1050; /* Ensures it's on top of other content */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    text-decoration: none;
    transition: transform 0.2s ease-in-out;
}

.whatsapp-chat-button:hover {
    color: white;
    transform: scale(1.1); /* Slightly enlarges the button on hover */
}
/* =================================== */
/* General & Reusable Styles           */
/* =================================== */

/* Sets a standard size for all card images on catalog pages */
.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* --- Product Rating Stars (Display) --- */
.star-rating {
    color: #ffc107; /* Bootstrap's warning/gold color */
    font-size: 1.2rem;
}
.star-rating .bi-star {
    color: #e4e5e9; /* Light grey for empty stars */
}

/* --- Star Rating Input Form (in Modal) --- */
.star-rating-form { display: inline-flex; flex-direction: row-reverse; }
.star-rating-form input { display: none; }
.star-rating-form label { font-size: 1.5rem; color: #e4e5e9; cursor: pointer; transition: color 0.2s; }
.star-rating-form input:checked ~ label, .star-rating-form label:hover, .star-rating-form label:hover ~ label { color: #ffc107; }


/* =================================== */
/* Header & Layout Styles              */
/* =================================== */

/* This rule makes the navigation links bold and larger */
.navbar-dark .navbar-nav .nav-link {
    font-weight: bold;
    font-size: 1.1rem;
}

/* =================================== */
/* Mobile Responsiveness               */
/* =================================== */

/* Styles the background of the open mobile menu */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(0, 0, 0, 0.2);
        border-radius: 0.375rem;
        padding: 1rem;
        margin-top: 0.5rem;
    }
}
/* --- Product Thumbnail Gallery --- */
.main-product-image {
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.thumbnail-gallery img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid #dee2e6;
    border-radius: 0.375rem;
    opacity: 0.6;
    transition: all 0.2s ease-in-out;
}

.thumbnail-gallery img:hover {
    opacity: 1.0;
    border-color: #6c757d;
}

.thumbnail-gallery img.active {
    opacity: 1.0;
    border-color: #0d6efd; /* Bootstrap's primary blue */
    box-shadow: 0 0 0 2px #0d6efd;
}
/* --- Top Contact Bar --- */
.top-contact-bar {
    background-color: #f8f9fa; /* A clean, light grey */
    padding: 0.5rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #dee2e6;
}
.top-contact-bar .contact-item {
    color: #495057;
    text-decoration: none;
    margin-left: 1.5rem;
    transition: color 0.2s ease;
}
.top-contact-bar .contact-item:hover {
    color: #0d6efd; /* Bootstrap's primary blue on hover */
}
.top-contact-bar i {
    margin-right: 0.5rem;
}
/* Style for the map modal */
.map-modal-body {
    height: 450px;
    padding: 0;
}
.map-modal-body iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
/* =================================== */
/* Forum Page Styling                  */
/* =================================== */

.forum-sidebar .list-group-item {
    border-left: 0;
    border-right: 0;
}

.forum-sidebar .list-group-item.active {
    font-weight: bold;
    color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.forum-topic-list .topic-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.forum-topic-list .topic-meta {
    font-size: 0.9rem;
    color: #6c757d;
}
/* --- View Topic Page Styling --- */
.original-post {
    border: 1px solid #0d6efd; /* Highlight the first post with a blue border */
}

/* Style for each indented reply */
.reply-post {
    border-left: 3px solid #dee2e6; /* Add a grey left border to create an indent */
    margin-left: 1.5rem; /* Push the entire reply to the right */
}

/* A subtle hover effect for reply cards */
.reply-post:hover {
    border-left-color: #0d6efd;
}
/* --- Icon Colors for Top Contact Bar --- */

/* WhatsApp Icon */
.top-contact-bar a[href*="wa.me"] i {
    color: #25D366; /* WhatsApp Green */
}

/* Phone Icon */
.top-contact-bar a[href^="tel:"] i {
    color: #0d6efd; /* Bootstrap Blue */
}

/* Email Icon */
.top-contact-bar a[href^="mailto:"] i {
    color: #6c757d; /* Bootstrap Secondary Grey */
}

/* Location/Map Icon */
.top-contact-bar a[data-bs-target="#mapModal"] i {
    color: #dc3545; /* Bootstrap Red */
}
/* --- Partners Section --- */
.partner-logo {
    max-height: 60px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}
.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}
/* --- Mobile Sub-Navigation Bar --- */
.mobile-nav-links {
    background-color: #343a40; /* A slightly lighter dark color than the main navbar */
}

.mobile-nav-links .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;      /* Reduced font size to fit */
    font-weight: 500;       /* Not quite as bold as desktop */
    padding: 0.5rem 0.75rem; /* Compact padding */
}

.mobile-nav-links .nav-link:hover {
    color: #ffffff;
}
/* --- Mobile Sub-Navigation Bar --- */
.mobile-nav-links {
    background-color: #343a40; /* A slightly lighter dark color than the main navbar */
}

.mobile-nav-links .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;      /* Reduced font size to fit */
    font-weight: 500;
    padding: 0.5rem 0.75rem; /* Compact padding */
}

.mobile-nav-links .nav-link:hover {
    color: #ffffff;
}

/* --- SIWES Letter Watermark --- */
.signature-block {
    position: relative; /* This is the container */
    width: 300px; /* Adjust as needed */
}

.matric-watermark {
    position: absolute; /* This lets us place it on top of the image */
    
    /* === You can adjust these values to fit your image === */
    top: 50px;    /* 50px from the top of the signature block */
    left: 20px;   /* 20px from the left */
    
    font-size: 0.7rem; /* Makes the font very small */
    font-weight: bold;
    color: #000;
    opacity: 0.6;      /* Makes it look like a faded "stamp" */
    transform: rotate(-10deg); /* Tilts the text slightly */
}