/* General Styles */
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: #212529; /* Default dark text for headings */
}

/* Custom Colors */
.text-primary { color: #212529 !important; } /* Dark charcoal for primary text */
.text-secondary { color: #555 !important; } /* Slightly lighter dark for secondary text */
.text-warning { color: #DAA520 !important; } /* Gold accent color */
.bg-dark { background-color: #1a1a1a !important; } /* Very dark background */
.bg-light { background-color: #f8f9fa !important; } /* Light background */
.bg-secondary { background-color: #343a40 !important; } /* Dark gray for news cards */
.text-white-50 { color: rgba(255, 255, 255, 0.5) !important; }
.text-white-75 { color: rgba(255, 255, 255, 0.75) !important; }

/* Header */
.main {
    overflow-x: hidden;
}

.main-header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.site-logo {
    max-height: 50px;
}
.logo-link {
    display: inline-block;
}

/* Hero Section */
.hero-section {
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: #000;
}

.hero-collage {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.collage-img {
    object-fit: cover;
    filter: grayscale(80%) brightness(0.6);
    transition: transform 0.8s ease-out, filter 0.8s ease-out;
}

.collage-img:nth-child(1) { top: 0%; left: 0%; width: 40%; height: 50%; z-index: 1; }
.collage-img:nth-child(2) { top: 20%; right: 0%; width: 45%; height: 60%; z-index: 2; }
.collage-img:nth-child(3) { bottom: 0%; left: 10%; width: 35%; height: 45%; z-index: 3; }
.collage-img:nth-child(4) { bottom: 10%; right: 20%; width: 30%; height: 40%; z-index: 4; }

.hero-overlay {
    background: rgba(0, 0, 0, 0.7);
    z-index: 5;
}

.hero-content {
    z-index: 10;
}

.hero-logo {
    max-height: 100px;
    filter: brightness(2);
}

/* Team Blog Introduction */
.team-intro-section img {
    border-radius: 10px;
    object-fit: cover;
    height: 350px;
    width: 100%;
}

/* Featured Article */
.featured-article-section {
    background-color: #1a1a1a;
    color: #fff;
}
.featured-thumbnail {
    border-radius: 10px;
    height: 400px;
    object-fit: cover;
    width: 100%;
}
.featured-author {
    display: flex;
    align-items: center;
}
.author-avatar-small {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border: 2px solid #DAA520;
}
.why-it-matters {
    background-color: rgba(255, 255, 255, 0.08);
    border-left: 5px solid #DAA520;
    padding: 1.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}
.why-it-matters:hover {
    box-shadow: 0 0 15px rgba(218, 165, 32, 0.4);
}

/* Articles Grid */
.article-card {
    background-color: #fff;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}
.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}
.article-thumbnail-wrapper {
    flex-shrink: 0;
    width: 100%;
    max-width: 300px; /* Max width for image on larger screens */
    height: 200px;
}
.article-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}
.article-card .social-share a {
    color: #6c757d;
    border-color: #6c757d;
}
.article-card .social-share a:hover {
    color: #DAA520;
    border-color: #DAA520;
}

@media (max-width: 767.98px) {
    .article-card {
        flex-direction: column;
    }
    .article-thumbnail-wrapper {
        max-width: 100%;
        height: 250px;
        margin-bottom: 1rem !important;
    }
}

/* News Grid */
.news-card {
    background-color: #343a40;
    color: #fff;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}
.news-card .card-img-top {
    height: 180px;
    object-fit: cover;
}
.news-card .card-body {
    padding: 1.5rem;
}
.news-card .card-title {
    color: #DAA520;
}

/* Categories Sidebar */
.categories-sidebar {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
}
.categories-sidebar h4 {
    color: #212529;
}
.categories-sidebar summary {
    cursor: pointer;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    list-style: none;
    position: relative;
}
.categories-sidebar summary::marker, .categories-sidebar summary::-webkit-details-marker {
    display: none;
}
.categories-sidebar summary::after {
    content: '\F282'; /* bi-chevron-down */
    font-family: 'bootstrap-icons';
    position: absolute;
    right: 0;
    transition: transform 0.2s ease;
}
.categories-sidebar details[open] summary::after {
    content: '\F286'; /* bi-chevron-up */
    transform: rotate(180deg);
}
.categories-sidebar ul ul {
    padding-left: 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.categories-sidebar details[open] ul ul {
    max-height: 200px; /* Adjust as needed for content */
}
.categories-sidebar ul li a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s ease;
}
.categories-sidebar ul li a:hover {
    color: #DAA520;
}

/* About Author Section */
.about-author-section {
    height: auto;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.about-author-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4) grayscale(50%);
    z-index: 1;
}
.about-author-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}
.author-avatar-large {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 4px solid #DAA520;
}

/* Footer Menu */
.footer-section {
    background-color: #1a1a1a;
    color: #fff;
}
.footer-logo {
    max-height: 60px;
    filter: brightness(2);
}
.footer-section h5 {
    color: #DAA520;
    margin-bottom: 1.5rem;
}
.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}
.footer-section ul li a:hover {
    color: #DAA520;
}
.footer-social-icon {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease, transform 0.2s ease;
}
.footer-social-icon:hover {
    color: #DAA520;
    transform: translateY(-3px);
}

/* Responsive details/summary for footer */
@media (max-width: 991.98px) { /* For small to medium screens */
    .footer-section details summary {
        list-style: none;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
    }
    .footer-section details summary::after {
        content: '\F282'; /* bi-chevron-down */
        font-family: 'bootstrap-icons';
        transition: transform 0.2s ease;
    }
    .footer-section details[open] summary::after {
        content: '\F286'; /* bi-chevron-up */
        transform: rotate(180deg);
    }
    .footer-section details[open] ul {
        margin-top: 1rem;
    }
}

/* Cookie Banner */
.cookie-banner {
    background-color: #212529;
    color: #fff;
    padding: 1rem 1.5rem;
    z-index: 1050;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
.cookie-banner p {
    font-size: 0.9rem;
}
.cookie-banner a {
    font-weight: 600;
}
.cookie-banner .btn-warning {
    background-color: #DAA520;
    border-color: #DAA520;
    color: #212529;
    font-weight: 600;
}
.cookie-banner .btn-warning:hover {
    background-color: #c7941c;
    border-color: #c7941c;
}
.cookie-banner .btn-outline-light {
    color: #fff;
    border-color: #fff;
}
.cookie-banner .btn-outline-light:hover {
    background-color: #fff;
    color: #212529;
}

/* Modal Overrides */
.modal-content {
    border-radius: 10px;
}
.modal-header {
    background-color: #212529;
    color: #fff;
    border-bottom: none;
    padding: 1.5rem;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
.modal-header .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%); /* Make white for dark background */
}
.modal-title {
    color: #DAA520 !important;
}
.modal-body {
    color: #333;
    padding: 2rem;
}
.modal-body p {
    margin-bottom: 1rem;
    line-height: 1.8;
    font-size: 1.05rem;
}
.modal-body img {
    max-height: 400px;
    width: 100%;
    object-fit: cover;
}
.modal-body .social-share .btn {
    font-size: 1.1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    color: #212529;
    border-color: #212529;
}
.modal-body .social-share .btn:hover {
    background-color: #212529;
    color: #DAA520;
}

/* AOS Customizations (optional, but good for consistency) */
[data-aos] {
    transition-property: opacity, transform;
}
/* Parent container for content with standard spacing */
.infoGuardBlock {
    padding-top: 3rem;    /* Top padding for the block */
    padding-bottom: 3rem; /* Bottom padding for the block */
    padding-left: 1.5rem; /* Left padding for the block */
    padding-right: 1.5rem;/* Right padding for the block */
    /* On larger screens, you might want to center it or limit max-width */
    max-width: 1200px;     /* Maximum width for content within the block */
    margin-left: auto;     /* Center the block horizontally */
    margin-right: auto;    /* Center the block horizontally */
}

/* Headings within .infoGuardBlock */
.infoGuardBlock h1 {
    font-size: 2.2rem;      /* Font size for H1 */
    margin-bottom: 1.5rem;  /* Bottom margin for H1 */
    line-height: 1.2;       /* Line height for H1 */
    color: #212529;         /* Dark text color */
}

.infoGuardBlock h2 {
    font-size: 1.8rem;      /* Font size for H2 */
    margin-bottom: 1.2rem;  /* Bottom margin for H2 */
    line-height: 1.3;       /* Line height for H2 */
    color: #212529;         /* Dark text color */
}

.infoGuardBlock h3 {
    font-size: 1.5rem;      /* Font size for H3 */
    margin-bottom: 1rem;    /* Bottom margin for H3 */
    line-height: 1.4;       /* Line height for H3 */
    color: #212529;         /* Dark text color */
}

.infoGuardBlock h4 {
    font-size: 1.2rem;      /* Font size for H4 */
    margin-bottom: 0.8rem;  /* Bottom margin for H4 */
    line-height: 1.5;       /* Line height for H4 */
    color: #212529;         /* Dark text color */
}

.infoGuardBlock h5 {
    font-size: 1.1rem;      /* Font size for H5 */
    margin-bottom: 0.7rem;  /* Bottom margin for H5 */
    line-height: 1.5;       /* Line height for H5 */
    color: #212529;         /* Dark text color */
}

/* Paragraphs within .infoGuardBlock */
.infoGuardBlock p {
    font-size: 1rem;        /* Base font size for paragraphs */
    margin-bottom: 1rem;    /* Bottom margin for paragraphs */
    line-height: 1.7;       /* Line height for readability */
    color: #333;            /* Standard text color */
}

/* Unordered and Ordered Lists within .infoGuardBlock */
.infoGuardBlock ul,
.infoGuardBlock ol {
    margin-bottom: 1rem;    /* Bottom margin for lists */
    padding-left: 1.5rem;   /* Indentation for list items */
}

/* List Items within .infoGuardBlock */
.infoGuardBlock li {
    font-size: 1rem;        /* Font size for list items */
    margin-bottom: 0.5rem;  /* Bottom margin between list items */
    line-height: 1.6;       /* Line height for list items */
    color: #333;            /* Standard text color */
}

/* Last child adjustments for better spacing */
.infoGuardBlock h1:last-child,
.infoGuardBlock h2:last-child,
.infoGuardBlock h3:last-child,
.infoGuardBlock h4:last-child,
.infoGuardBlock h5:last-child,
.infoGuardBlock p:last-child,
.infoGuardBlock ul:last-child,
.infoGuardBlock ol:last-child {
    margin-bottom: 0;       /* Remove bottom margin for the last element in the block */
}
