/* The site's fonts, as the variables the in-page game player (partials/vault-player.html) reads for its title bar. */
:root {
    --heading-font-font-family: 'Lato';
    --heading-font-font-weight: 700;
    --heading-font-letter-spacing: 0;
    --heading-font-text-transform: none;
    --meta-font-font-family: 'IBM Plex Mono';
    --meta-font-font-weight: 400;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.7;
    color: #333;
    background-color: #f8f9fa;
}

p {
    font-weight: 400;
}

/* Bootstrap Reset - Prevent Bootstrap from overriding our custom styles */
.games-page *,
.hero *,
.header *,
.footer * {
    box-sizing: border-box;
}

/* Ensure nav container matches main container width */
.header .nav-container {
    max-width: 1600px !important;
    width: 100% !important;
}

/* Typography - Headers use Lato and are bigger */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 700;
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 3rem;
}

h3 {
    font-size: 2.25rem;
}

h4 {
    font-size: 1.75rem;
}

h5 {
    font-size: 1.5rem;
}

h6 {
    font-size: 1.25rem;
}

/* Game cards keep IBM Plex Sans */
.game-card,
.game-card *,
.game-card-dark,
.game-card-dark * {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.game-card p,
.game-card-dark p {
    font-size: 16px;
}

/* Responsive typography */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.75rem;
    }

    h4 {
        font-size: 1.5rem;
    }

    h5 {
        font-size: 1.25rem;
    }

    h6 {
        font-size: 1.125rem;
    }
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #000000;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-logo .logo {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-cta {
    margin-left: auto;
}

.nav-link {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: white;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #00ECD0;
}

.nav-cta-button {
    background: #00ECD0;
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 236, 208, 0.3);
}

.nav-cta-button:hover {
    background: #00B8A3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 236, 208, 0.4);
    color: white !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.3) 0%, rgba(45, 74, 62, 0.3) 100%), url('/images/vault-computer-black.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 10rem 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #00ECD0, #00B8A3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #e5e7eb;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #d1d5db;
    line-height: 1.7;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, #00ECD0, #00B8A3);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 236, 208, 0.3);
}

.retro-screen {
    background: #000;
    border: 4px solid #333;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 236, 208, 0.3);
    position: relative;
}

.retro-screen::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00ECD0, #00B8A3, #00ECD0);
    border-radius: 22px;
    z-index: -1;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

.heart-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.screen-text {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    color: #00ECD0;
    font-weight: bold;
}

/* Hero Image Container */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

/* Games Masonry Layout */
.games-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
}

@media (max-width: 1200px) {
    .games-masonry {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .games-masonry {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.game-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.game-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.05);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.game-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.game-title {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.game-description {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.grade-tag, .subject-tag, .topic-tag, .maker-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.grade-tag {
    background: #dbeafe;
    color: #1e40af;
}

.subject-tag {
    background: #dcfce7;
    color: #166534;
}

.topic-tag {
    background: #fef3c7;
    color: #92400e;
}

.maker-tag {
    background: #f3e8ff;
    color: #7c3aed;
}

/* Game Maker Section */
.game-maker {
    padding-top: 0.75rem;
}

.maker-separator {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 0 0 0.5rem 0;
}

.maker-text {
    font-size: 0.875rem;
    color: #6b7280;
    font-style: italic;
}

.maker-text .maker-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.maker-text .maker-link:hover {
    color: #7c3aed;
}

a.maker-tag {
    text-decoration: underline;
    text-underline-offset: 2px;
}

a.maker-tag:hover {
    background: #e9d5ff;
}


/* Featured Games Section */
.featured-games {
    padding: 4rem 0;
    background: white;
}

.section-title {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1f2937;
}

/* Newsletter Section */
.newsletter {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: white;
    padding: 4rem 0;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter h2 {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.newsletter p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #d1d5db;
}

.newsletter-form {
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
}

.submit-button {
    background: linear-gradient(45deg, #00ECD0, #00B8A3);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
}

.privacy-note {
    font-size: 0.875rem;
    color: #9ca3af;
}

.privacy-note a {
    color: #00ECD0;
    text-decoration: none;
}

/* Games Page Layout */
.games-page {
    padding: 2rem 0;
    min-height: 80vh;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
}

.page-description {
    font-size: 1.2rem;
    color: #6b7280;
}

.games-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
}

@media (max-width: 1024px) {
    .games-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .filters-sidebar {
        order: 2;
    }
    
    .games-content {
        order: 1;
    }
}

.filters-sidebar {
    
    height: calc(100vh - 120px);
    max-height: calc(100vh - 120px);
    position: sticky;
    top: 100px;
    overflow-y: auto;
}

.filters {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Custom scrollbar for filters sidebar */
.filters-sidebar::-webkit-scrollbar {
    width: 6px;
}

.filters-sidebar::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.filters-sidebar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.filters-sidebar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.filters h3 {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-icon {
    font-size: 1.1rem;
    opacity: 0.8;
    color: #00ECD0;
}

/* Filter Headers */
.filter-header {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    background: none;
    border: none;
    width: 100%;
    padding: 1rem 0;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e5e7eb;
    transition: color 0.2s ease;
}

.filter-header:hover {
    color: #00ECD0;
}

.filter-toggle {
    font-size: 1.2rem;
    font-weight: 700;
    transition: transform 0.2s ease;
}

.filter-toggle.expanded {
    transform: rotate(45deg);
}

.filter-group {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #374151;
}

.search-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #00ECD0;
}

.filter-options {

}

.filter-option {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    cursor: pointer;
    font-size: 0.875rem;
}

.filter-option input[type="checkbox"] {
    margin-right: 0.5rem;
}

.count {
    margin-left: auto;
    color: #6b7280;
    font-size: 0.75rem;
}

.clear-filters {
    width: 100%;
    padding: 0.75rem;
    background: #f3f4f6;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.clear-filters:hover {
    background: #e5e7eb;
}

.games-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.games-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f3f4f6;
}

.results-info {
    font-weight: 600;
    color: #374151;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-select {
    padding: 0.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.875rem;
}

/* Game Single Page */
.game-single {
    padding: 2rem 0;
}

/* Content Layout */
.content-layout {
    display: flex;
    gap: 3rem;
    margin: 3rem 0;
    align-items: flex-start;
    min-height: 0; /* Prevent container from shrinking */
}

.content-layout > .accordion,
.content-layout > .content-sections {
    flex: 3;
    min-width: 0; /* Allow flex item to shrink */
}

.content-layout > .right-column {
    flex: 2;
    min-width: 0; /* Allow flex item to shrink */
}

/* Accordion Container - Center within its flex column */
.content-layout > .accordion {
    max-width: 100%;
    margin: 0 auto;
    min-height: 0; /* Prevent shrinking */
    height: auto; /* Allow natural height */
    overflow: visible; /* Ensure content is visible */
}

/* Content Sections (replacing accordion) */
.content-sections {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.content-section h2 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
}

.content-section .section-body {
    line-height: 1.7;
    color: #374151;
}

.content-section .section-body p {
    margin: 0 0 1rem 0;
}

.content-section .section-body p:last-child {
    margin-bottom: 0;
}

/* Standard Item Styling */
.standard-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.standard-item:last-child {
    margin-bottom: 0;
}

.standard-item strong {
    display: block;
    font-size: 1.1rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.standard-item p {
    margin: 0;
    color: #4b5563;
    line-height: 1.6;
}

/* Right Column */
.right-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .content-layout {
        flex-direction: column;
        gap: 2rem;
    }
    
    .content-layout > .accordion,
    .content-layout > .content-sections,
    .content-layout > .right-column {
        flex: none;
        width: 100%;
    }
}

/* Screenshots Section */
.screenshots-section {
    margin: 0;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (max-width: 480px) {
    .screenshots-grid {
        grid-template-columns: 1fr;
    }
}

.screenshot-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.screenshot-item:hover {
    transform: translateY(-2px);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #00ECD0;
}

#lightbox-image {
    width: 50vw;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.lightbox-prev,
.lightbox-next {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 30px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    pointer-events: auto;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0, 236, 208, 0.8);
}

.lightbox-prev {
    margin-left: 20px;
}

.lightbox-next {
    margin-right: 20px;
}

@media (max-width: 768px) {
    .lightbox-content {
        width: 95%;
        height: 95%;
        padding: 10px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        font-size: 24px;
        padding: 10px 15px;
    }
    
    .lightbox-prev {
        margin-left: 10px;
    }
    
    .lightbox-next {
        margin-right: 10px;
    }
}


.game-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.game-image-large {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
}

.game-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-image-large {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    border-radius: 8px;
}

.game-info h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.meta-group {
    margin-bottom: 1rem;
}

.meta-label {
    font-weight: 600;
    color: #374151;
    display: block;
    margin-bottom: 0.5rem;
}

.play-button {
    display: inline-block;
    background: linear-gradient(45deg, #00ECD0, #00B8A3);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.play-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 236, 208, 0.3);
}

.game-content {
    background: white;
    padding: 2rem 2rem 1rem 2rem;
    border-radius: 12px;
}

.game-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.game-content .content {
    line-height: 1.7;
    color: #374151;
}

.learning-objectives ul {
    list-style: none;
    padding-left: 0;
}

.learning-objectives li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.learning-objectives li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #00ECD0;
    font-weight: bold;
}

/* Bootstrap Accordion Customization */
.accordion {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: visible; /* Allow content to be visible during transitions */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-height: 0; /* Prevent shrinking */
    height: auto; /* Allow natural height */
}

.accordion-item {
    border: 1px solid #e5e7eb;
    border-bottom: none;
    overflow: visible; /* Ensure content is visible */
}

.accordion-item:last-child {
    border-bottom: 1px solid #e5e7eb;
}

.accordion-button {
    background-color: #f8f9fa;
    border: none;
    font-weight: 600;
    color: #1f2937;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.accordion-button:not(.collapsed) {
    background-color: #e9ecef;
    color: #1f2937;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 236, 208, 0.25);
    border-color: #00ECD0;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231f2937'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231f2937'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(180deg);
}

.accordion-body {
    background-color: white;
    padding: 1.5rem;
    line-height: 1.7;
    color: #374151;
    border-top: 1px solid #e5e7eb;
}

/* Ensure smooth accordion transitions without layout shifts */
.accordion-collapse {
    transition: height 0.35s ease;
    overflow: hidden; /* Prevent content from showing during collapse */
}

.accordion-collapse.collapsing {
    height: 0;
    overflow: hidden;
    transition: height 0.35s ease;
}

.accordion-collapse.show {
    overflow: visible; /* Allow content to be visible when expanded */
}

/* Prevent accordion from shrinking during transitions */
#gameAccordion {
    min-height: 200px; /* Set a minimum height to prevent shrinking */
}

/* Gameplay Video Section */
.gameplay-video-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gameplay-video-section h2 {
    margin: 0 0 1.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Screenshots Section (3x3 Grid) */
.screenshots-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.screenshots-section h2 {
    margin: 0 0 1.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.screenshot-item {
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e5e7eb;
    aspect-ratio: 1;
}

.screenshot-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Responsive adjustments for screenshots */
@media (max-width: 768px) {
    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .screenshots-grid {
        grid-template-columns: 1fr;
    }
}

.game-navigation {
    text-align: center;
}

.back-link {
    color: #00ECD0;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #00B8A3;
}

/* Join Vault Page Styles */
.join-vault-page {
    background: #f8f9fa;
}

.join-vault-page .container {
    max-width: 1400px;
}

.hero-section {
    background: #000000;
    padding: 10rem 0;
    color: white;
}

.hero-title {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #00ECD0;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.hero-graphics {
    position: relative;
    display: block;
    width: 100%;
    height: 300px;
}

.hero-archway {
    max-width: 300px;
    height: auto;
    margin-right: 2rem;
}

.hero-key {
    max-width: 600px;
    height: auto;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}


.section-title {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: left;
}

.section-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 1.5rem;
}

.content-image {
    text-align: center;
}

.content-image img {
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.join-vault-section {
    background: #000000;
    color: white;
    padding: 4rem 0;
}

.vault-brand {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.join-title {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #00ECD0;
    margin-bottom: 1.5rem;
}

.join-description {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.join-form {
    margin-bottom: 2rem;
}

.join-form .form-control {
    background: white;
    border: none;
    border-radius: 8px;
    padding: 1rem;
    font-size: 1rem;
    color: #333;
}

.join-form .form-control:focus {
    box-shadow: 0 0 0 3px rgba(0, 236, 208, 0.3);
    border-color: #00ECD0;
}

.btn-teal {
    background: #00ECD0;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-teal:hover {
    background: #00B8A3;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 236, 208, 0.3);
}

.privacy-text {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.privacy-text a {
    color: #00ECD0;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .join-title {
        font-size: 2.5rem;
    }
    
    .hero-graphics {
        margin-top: 2rem;
    }
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 1rem;
    color: #00ECD0;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #00ECD0;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .games-layout {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        position: static;
    }
    
    .game-header {
        grid-template-columns: 1fr;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .games-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

/* About Page Styles */
.about-page {
    background: white;
    min-height: 100vh;
}

.about-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-main {
    padding: 4rem 0 0 0;
    background: #000000;
    color: white;
}

.about-main .about-cta {
    margin-bottom: 0;
}

.about-main .container {
    padding-bottom: 0;
}

.about-hero-layout {
    display: block;
    max-width: 1600px;
    margin: 0 auto;
    margin-bottom: 0;
}

.about-hero-image-wrapper {
    width: 100%;
    margin: 2rem 0 0 0;
}

.about-hero-img {
    width: 100%;
    height: auto;
    display: block;
}

.about-why {
    padding: 4rem 0;
    background: #f8f9fa;
}

.about-who {
    padding: 4rem 0;
    background: #00ECD0;
}

.about-who .about-subtitle {
    color: #000000;
}

.about-who .about-text p {
    color: #000000;
}

/* Game Bar Section */
.about-game-bar {
    padding: 0;
    margin: 0;
    background: white;
    overflow: hidden;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.game-bar-wrapper {
    position: relative;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.game-bar-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.game-bar-img {
    width: 150%;
    max-width: 2400px;
    height: auto;
    display: block;
    transition: transform 0.3s ease-out;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 0 2rem;
}

.about-main .about-content {
    padding-bottom: 0;
    margin-bottom: 0;
}

.about-title {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #00ECD0;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.about-subtitle {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.about-text {
    margin-bottom: 2rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 1.5rem;
}

.about-text em {
    font-style: italic;
    color: white;
}

.about-cta {
    margin-bottom: 2rem;
}

.about-cta .btn {
    background: #00ECD0;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.about-cta .btn:hover {
    background: #00B8A3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 236, 208, 0.3);
}

.about-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.institution-logo {
    height: 60px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.institution-logo:hover {
    opacity: 1;
}

.about-brand {
    margin-top: 3rem;
    text-align: center;
}

.brand-text {
    font-size: 0.9rem;
    color: #999;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Join Vault Section */
.join-vault-section {
    background: #000000;
    color: white;
    padding: 4rem 0;
}

.join-content {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.join-title {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #00ECD0;
    margin-bottom: 1.5rem;
}

.join-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #ccc;
}

.join-form {
    margin-bottom: 2rem;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.join-form .form-control {
    background: white;
    border: none;
    border-radius: 6px;
    padding: 1rem;
    font-size: 1rem;
    color: #333;
    width: 100%;
}

.join-form .form-control:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 236, 208, 0.3);
}

.join-form .btn {
    background: #00ECD0;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 6px;
    width: 100%;
    transition: all 0.3s ease;
}

.join-form .btn:hover {
    background: #00B8A3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 236, 208, 0.3);
}

.privacy-text {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.privacy-text a {
    color: #00ECD0;
    text-decoration: underline;
}

.thank-you {
    margin: 2rem 0;
}

.thank-you p {
    font-size: 1.2rem;
    color: #00ECD0;
    font-weight: 600;
}

/* Responsive adjustments for about page */
@media (max-width: 768px) {
    .about-page .container {
        padding: 0 1rem;
    }

    .about-hero-image-wrapper {
        margin: 1.5rem 0 2rem 0;
    }

    .game-bar-img {
        width: 200%;
    }

    .about-title {
        font-size: 2.5rem;
    }

    .about-subtitle {
        font-size: 1.75rem;
    }

    .join-title {
        font-size: 2rem;
    }

    .about-main,
    .about-why,
    .about-who {
        padding: 3rem 0;
    }

    .about-game-bar {
        padding: 2rem 0;
    }

    .join-vault-section {
        padding: 3rem 0;
    }

    .about-logos {
        gap: 2rem;
    }

    .institution-logo {
        height: 50px;
    }
}

/* Blog Styles */
.blog-page {
    padding: 3rem 0;
    min-height: 80vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.blog-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem 0;
}

.blog-title {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    position: relative;
}

.blog-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #00ECD0, #00b8a3);
    border-radius: 2px;
}

.blog-description {
    font-size: 1.2rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.blog-post-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 236, 208, 0.1);
    position: relative;
}

.blog-post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00ECD0, #00b8a3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-post-card:hover::before {
    opacity: 1;
}

.blog-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 236, 208, 0.3);
}

.post-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.post-image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-post-card:hover .post-image-img {
    transform: scale(1.08);
}

.post-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.post-date {
    font-weight: 500;
}

.post-author {
    color: #00ECD0;
    font-weight: 600;
    background: rgba(0, 236, 208, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
}

.post-title {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

.post-title-link {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title-link:hover {
    color: #00ECD0;
}

.post-excerpt {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
    font-size: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: linear-gradient(135deg, #e9ecef, #f8f9fa);
    color: #495057;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.tag:hover {
    background: linear-gradient(135deg, #00ECD0, #00b8a3);
    color: white;
    transform: translateY(-1px);
}

.read-more {
    color: #00ECD0;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    align-self: flex-start;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 236, 208, 0.1);
    border-radius: 25px;
    border: 2px solid transparent;
}

.read-more:hover {
    color: white;
    background: linear-gradient(135deg, #00ECD0, #00b8a3);
    border-color: #00ECD0;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 236, 208, 0.3);
}

/* Blog Single Post Styles */
.blog-single {
    padding: 2rem 0;
    background: white;
    min-height: 80vh;
}

.post-header {
    margin-bottom: 3rem;
}

.post-featured-image {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.featured-image {
    width: 100%;
    height: auto;
    display: block;
}

.post-header-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.post-header .post-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.post-header .post-meta {
    justify-content: center;
    margin-bottom: 2rem;
}

.post-body {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    color: #374151;
}

.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4,
.post-body h5,
.post-body h6 {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 700;
    color: #1f2937;
    margin: 2rem 0 1rem;
}

.post-body h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.post-body h3 {
    font-size: 1.5rem;
}

.post-body p {
    margin-bottom: 1.5rem;
}

.post-body ul,
.post-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-body li {
    margin-bottom: 0.5rem;
}

.post-body blockquote {
    border-left: 4px solid #00ECD0;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #6b7280;
}

.post-body code {
    background: #f3f4f6;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.post-body pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
}

.post-body pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-footer {
    max-width: 800px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 2px solid #e5e7eb;
}

.post-tags-section h3 {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tag-link {
    background: #00ECD0;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.tag-link:hover {
    background: #00B8A3;
    color: white;
}

.post-navigation {
    text-align: center;
}

.back-to-blog {
    color: #00ECD0;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.back-to-blog:hover {
    color: #00B8A3;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
    padding: 2rem 0;
}

.pagination-link {
    color: #00ECD0;
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: 2px solid #00ECD0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pagination-link:hover {
    background: #00ECD0;
    color: white;
}

.pagination-info {
    color: #6b7280;
    font-weight: 500;
}

/* Responsive Design for Blog */
@media (max-width: 768px) {
    .blog-title {
        font-size: 2.5rem;
    }
    
    .blog-posts {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .post-header .post-title {
        font-size: 2rem;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .pagination {
        flex-direction: column;
        gap: 1rem;
    }
    
    .tags-list {
        justify-content: center;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
    font-size: 1.1rem;
}

/* Featured Carousel (Homepage) */
.featured-carousel {
    background: #000000;
    color: #ffffff;
}

.featured-carousel .carousel-inner {
    min-height: 460px; /* Prevent layout snapping between slides */
}

.featured-carousel .carousel-item {
    padding: 2rem 0;
}

.featured-carousel .carousel-item img {
    border-radius: 12px; /* Stronger rounding for hero images */
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.featured-carousel .container {
    padding: 3vw;
}

.featured-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #00ECD0, #00B8A3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.featured-carousel .carousel-inner {
    height: 560px; /* Fix overall height to prevent snapping on fade */
}

.featured-carousel .carousel-item .row {
    min-height: 560px; /* Ensure slide content fills the fixed height */
}

.featured-image-frame {
    width: 100%;
    height: 420px;
    background: #000000;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.featured-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Prevent distortion while enforcing uniform dimensions */
    display: block;
}

/* Clamp text so slide height stays consistent across varying descriptions */
.featured-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 8; /* adjust lines to fit design */
    overflow: hidden;
    max-height: 12rem; /* fallback for non-webkit */
}

@media (max-width: 768px) {
    .featured-image-frame {
        height: 300px;
    }
    .featured-carousel .carousel-inner {
        height: 480px;
    }
    .featured-carousel .carousel-item .row {
        min-height: 480px;
    }
    .featured-title {
        font-size: 2.25rem;
    }
}
