:root {
    --primary-color: #FF6B6B; /* A vibrant red for accents */
    --secondary-color: #4ECDC4; /* A complementary turquoise */
    --dark-color: #2C3E50; /* Dark blue-grey for text/backgrounds */
    --light-color: #ECF0F1; /* Light grey for backgrounds */
    --white-color: #FFFFFF;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark-color);
}

/* Responsive Typography */
.site-title {
    color: #FFFFFF;
    font-size: clamp(2.5rem, 8vw, 4.5rem); /* Desktop: 4.5rem, Tablet: ~3.5rem, Mobile: ~2.5rem */
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
}

.site-slogan {
    font-size: clamp(1.25rem, 3vw, 1.8rem);
}

.section-heading {
    font-size: clamp(2rem, 5vw, 3.5rem); /* Desktop: 3.5rem, Tablet: ~2.5rem, Mobile: ~2rem */
    color: var(--dark-color);
    position: relative;
    padding-bottom: 15px;
}

.section-heading::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.sub-heading {
    font-size: clamp(1.5rem, 4vw, 2.2rem); /* Desktop: 2.2rem, Tablet: ~1.8rem, Mobile: ~1.5rem */
    color: var(--primary-color);
    font-weight: 600;
}

.navbar-brand .site-name {
    font-size: clamp(1.25rem, 5vw, 1.8rem); /* Logo text size */
    font-weight: 700;
    color: var(--white-color);
}

/* General Link/Button Styles */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-outline-light {
    border-color: var(--white-color);
    color: var(--white-color);
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
}

/* Navbar */
.navbar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    background-color: rgba(44, 62, 80, 0.95) !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
    overflow: hidden;
    white-space: nowrap; /* Prevent menu items from wrapping */
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.navbar-dark .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link.active::after {
    transform: translateX(0);
}

.offcanvas-body .navbar-nav {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: auto; /* Allow horizontal scroll for many items on mobile */
    -webkit-overflow-scrolling: touch;
}
section {
    overflow: hidden;
}
/* Hero Section */
.hero-section {
    height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Dark overlay */
}

.hero-section .container {
    z-index: 1;
}

.category-tags a {
    margin: 5px;
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.category-tags a:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: -90%;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 1;
}

.scroll-indicator i {
    color: var(--white-color);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-7px);
    }
}

/* Featured Article Card */
.featured-article-card {
    perspective: 1000px;
    height: 400px; /* Fixed height for the card */
}

.featured-article-card .card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--dark-color);
}

.card-front {
    background-color: var(--white-color);
    color: var(--dark-color);
}

.card-front img {
    height: 60%; /* Image takes 60% of card height */
    width: 100%;
    object-fit: cover;
}

.card-front h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.card-front p {
    color: #6c757d;
}

.card-back {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.card-back h3 {
    color: var(--white-color);
    margin-bottom: 1rem;
}

.card-back p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.card-back .btn {
    background-color: var(--dark-color);
    border-color: var(--dark-color);
    color: var(--white-color);
}

.card-back .btn:hover {
    background-color: var(--light-color);
    border-color: var(--light-color);
    color: var(--dark-color);
}

/* About Section */
#about ul {
    list-style: none;
    padding-left: 0;
}

#about ul li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

#about img {
    height: 250px; /* Fixed height for about images */
    object-fit: cover;
    width: 100%;
}

/* Content Sections (Main Article, Genres, History, Facts) */
.lead {
    font-size: 1.15rem;
}

/* Testimonials Section */
.review-card {
    background-color: var(--white-color);
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.avatar-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.text-warning {
    color: #ffc107 !important; /* Ensure star color is vibrant */
}

/* Team Section */
.author-card {
    background-color: var(--dark-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white-color);
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
}

.author-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 4px solid var(--secondary-color);
    transition: transform 0.4s ease;
}

.author-card:hover img {
    transform: scale(1.1);
}

.author-card .author-details {
    max-height: 0;
    opacity: 0;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
    overflow: hidden;
    padding-top: 0;
}

.author-card.is-active .author-details {
    max-height: 200px; /* Adjust based on content */
    opacity: 1;
    padding-top: 1rem;
}

.author-card h3 {
    color: var(--white-color);
}

.author-card p.text-primary {
    color: var(--secondary-color) !important;
    font-weight: 600;
}

/* Footer */
.site-footer {
    background-color: var(--dark-color);
    color: rgba(255, 255, 255, 0.7);
}

.site-footer .footer-heading {
    color: var(--white-color);
    font-weight: 600;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.site-footer .list-unstyled li {
    margin-bottom: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 1100px) {
    .navbar-collapse {
        display: none !important; /* Hide collapse on smaller screens for offcanvas */
    }
    .navbar-toggler {
        display: block;
    }
    .navbar-brand .site-name {
        font-size: 1.5rem; /* Smaller on mobile */
    }
}

@media (max-width: 767px) {
    .hero-section {
        height: 80vh; /* Shorter hero on mobile */
    }
    .site-title {
        font-size: 2.2rem;
    }
    .site-slogan {
        font-size: 1rem;
    }
    .section-heading {
        font-size: 1.8rem;
    }
    .sub-heading {
        font-size: 1.25rem;
    }
    .category-tags a {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    .featured-article-card {
        height: auto; /* Allow height to adjust on mobile */
    }
    .card-front img {
        height: 200px; /* Fixed height for image on mobile */
    }
    .card-front h3, .card-back h3 {
        font-size: 1.1rem;
    }
    .card-back p {
        font-size: 0.85rem;
    }
    .author-card img {
        width: 80px;
        height: 80px;
    }
}/* Styles for the main content grid container */
.consentTunnelGrid {
    padding-top: 30px; /* Top padding for the grid */
    padding-left: 20px; /* Left padding for the grid */
    padding-right: 20px; /* Right padding for the grid */
    /* Consider adding max-width and margin: auto for centering on larger screens if needed */
    /* max-width: 960px; */
    /* margin-left: auto; */
    /* margin-right: auto; */
}

/* Heading 1 styles */
.consentTunnelGrid h1 {
    font-size: 1.8em; /* Moderate font size for H1 */
    margin-top: 1.5em; /* Top margin for spacing */
    margin-bottom: 0.8em; /* Bottom margin for spacing */
    line-height: 1.2; /* Line height for readability */
    font-weight: bold; /* Default bold weight */
}

/* Heading 2 styles */
.consentTunnelGrid h2 {
    font-size: 1.4em; /* Moderate font size for H2 */
    margin-top: 1.4em;
    margin-bottom: 0.7em;
    line-height: 1.2;
    font-weight: bold;
}

/* Heading 3 styles */
.consentTunnelGrid h3 {
    font-size: 1.2em; /* Moderate font size for H3 */
    margin-top: 1.3em;
    margin-bottom: 0.6em;
    line-height: 1.2;
    font-weight: bold;
}

/* Heading 4 styles */
.consentTunnelGrid h4 {
    font-size: 1.1em; /* Moderate font size for H4 */
    margin-top: 1.2em;
    margin-bottom: 0.5em;
    line-height: 1.2;
    font-weight: bold;
}

/* Heading 5 styles */
.consentTunnelGrid h5 {
    font-size: 0.9em; /* Moderate font size for H5 */
    margin-top: 1.1em;
    margin-bottom: 0.4em;
    line-height: 1.2;
    font-weight: bold;
}

/* Paragraph styles */
.consentTunnelGrid p {
    font-size: 1em; /* Standard paragraph font size */
    line-height: 1.6; /* Good line height for readability */
    margin-top: 0; /* Remove default top margin for paragraphs */
    margin-bottom: 1em; /* Space between paragraphs */
}

/* Unordered list styles */
.consentTunnelGrid ul {
    list-style: disc; /* Default bullet style */
    margin-top: 1em; /* Top margin for lists */
    margin-bottom: 1em; /* Bottom margin for lists */
    padding-left: 25px; /* Indentation for bullet points */
}

/* List item styles */
.consentTunnelGrid li {
    margin-bottom: 0.5em; /* Space between list items */
    line-height: 1.5; /* Line height for list item readability */
}
