/* ============================================================
   Skiforeningen Den Sterke Stav – Custom Stylesheet
   Color palette: dark navy, gold/yellow, white panels
   ============================================================ */

:root {
    --navy:       #0a1628;
    --navy-light: #14539a;
    --gold:       #c9a84c;
    --gold-light: #e2c96d;
    --white:      #ffffff;
    --grey-light: #f4f4f4;
    --text-muted: #b0b8c8;
}

/* ---- Global ---- */
html, body {
    min-height: 100vh;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--navy);
    color: var(--white);
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

a {
    color: var(--gold);
}
a:hover {
    color: var(--gold-light);
}

/* ---- Navbar ---- */
.navbar {
    background-color: var(--navy-light) !important;
    border-bottom: 2px solid var(--gold);
    padding: .5rem 1rem;
}

.navbar-brand img {
    height: 50px;
}

.navbar .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    padding: .5rem .85rem;
    transition: color .2s;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--gold) !important;
}

.navbar .dropdown-menu {
    background-color: var(--navy-light);
    border: 1px solid var(--gold);
}
.navbar .dropdown-item {
    color: var(--white);
}
.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background-color: var(--gold);
    color: var(--navy);
}

.navbar-toggler {
    border-color: var(--gold);
}
.navbar-toggler-icon {
    filter: invert(1);
}

/* ---- Landing page: sky background wrapper ---- */
.landing-bg {
    background: url('../images/bg-sky.jpg') center top / cover no-repeat fixed;
}

/* ---- Landing: Hero / Banner ---- */
.hero-landing {
    padding: 2rem 0 1rem;
}
.banner-img {
    max-width: 700px;
    width: 100%;
    border: 3px solid var(--gold);
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,.4);
}
.tagline {
    color: var(--gold);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: .15em;
    margin-top: 1.25rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,.6);
    background: rgba(0, 0, 60, 0.55);
    display: inline-block;
    padding: .5rem 1.5rem;
    border-radius: .25rem;
}

/* ---- Landing: Splash quote ---- */
.splash-section {
    padding: 2.5rem 0 2rem;
}
.splash-quote {
    font-style: italic;
    font-size: 1.35rem;
    line-height: 1.6;
    color: var(--navy);
    text-shadow: 1px 1px 2px rgba(255,255,255,.4);
    border: none;
    padding: 1.5rem;
    background: rgba(255,255,255,.25);
    border-radius: .5rem;
}
.splash-quote p {
    margin-bottom: .75rem;
}
.splash-quote cite {
    display: block;
    font-style: normal;
    font-size: .95rem;
    color: rgba(0,0,50,.6);
    margin-top: .5rem;
}
.splash-photo {
    max-height: 350px;
    width: auto;
    border: 2px solid rgba(255,255,255,.3);
}

/* ---- Landing: Om oss ---- */
.section-sky {
    background: transparent;
    padding: 3rem 0;
}
.om-oss-heading {
    color: var(--navy);
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: .5rem;
    text-shadow: 1px 1px 3px rgba(255,255,255,.3);
}
.om-oss-rule {
    width: 200px;
    margin: 0 auto 2rem;
    border-top: 2px solid var(--navy);
    opacity: .5;
}
.om-oss-list {
    padding-left: 1.5rem;
}
.om-oss-list li {
    margin-bottom: .75rem;
    color: var(--navy);
    font-weight: 500;
    text-shadow: none;
}
.section-sky p,
.section-sky .fw-bold {
    color: var(--navy);
    text-shadow: none;
}
.protocol-quote {
    font-style: italic;
    color: var(--navy);
    border-left: 3px solid var(--gold);
    padding-left: 1.5rem;
    margin-top: 1rem;
    text-shadow: none;
}
.museum-plaque {
    max-width: 100%;
    border: 3px solid rgba(255,255,255,.5);
}

/* ---- Landing: Darker body text ---- */
.section-sky-dark {
    background: rgba(50, 70, 110, 0.65);
    padding: 3rem 0;
    color: var(--white);
}
.section-sky-dark p {
    font-size: 1.05rem;
    line-height: 1.7;
    text-shadow: 1px 1px 3px rgba(0,0,0,.4);
    margin-bottom: 1.25rem;
}

/* ---- Landing: Contact section ---- */
.section-contact {
    background-color: var(--navy);
    padding: 3rem 0;
}
.contact-list li {
    margin-bottom: .5rem;
    color: var(--text-muted);
}
.contact-list a {
    color: var(--gold);
}

/* ---- Back to top button ---- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 1.5rem;
    background: #5c6bc0;
    color: var(--white);
    padding: .5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
    z-index: 1050;
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
}
.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}
.back-to-top:hover {
    background: #3f51b5;
    color: var(--white);
}

/* ---- Hero Section (non-landing pages) ---- */
.hero {
    position: relative;
    background: url('../images/banner.jpg') center/cover no-repeat;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 22, 40, 0.65);
}
.hero-content {
    position: relative;
    z-index: 1;
}
.hero-content img {
    max-width: 180px;
    margin-bottom: 1.5rem;
}
.hero-content h1 {
    color: var(--gold);
    font-size: 2.8rem;
    font-weight: 700;
    text-shadow: 2px 2px 6px rgba(0,0,0,.5);
}
.hero-content p {
    font-size: 1.15rem;
    color: var(--white);
    max-width: 600px;
    margin: 1rem auto 0;
}

/* ---- Section helpers ---- */
.section-dark {
    background-color: var(--navy);
    padding: 4rem 0;
}
.section-light {
    background-color: var(--navy-light);
    padding: 4rem 0;
}

.section-heading {
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}
.section-heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin-top: .4rem;
}

/* ---- Quote block ---- */
.quote-block {
    border-left: 4px solid var(--gold);
    padding: 1.5rem 2rem;
    font-style: italic;
    font-size: 1.15rem;
    color: var(--text-muted);
    background: rgba(255,255,255,.04);
    border-radius: 0 .5rem .5rem 0;
}
.quote-block cite {
    display: block;
    margin-top: .75rem;
    font-style: normal;
    font-weight: 600;
    color: var(--gold);
}

/* ---- Cards / Panels ---- */
.card-panel {
    background-color: var(--white);
    color: #333;
    border-radius: .5rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.25);
}
.card-panel h2,
.card-panel h3 {
    color: var(--navy);
}

/* ---- Login page: Banner ---- */
/* ---- Login page: Background on body ---- */
body.login-bg {
    background: url('../images/skitracks.jpg') center top / cover no-repeat fixed;
}

/* ---- Login page: Hint ---- */
.login-hint-section {
    padding: 1.5rem 0;
    text-align: center;
}
.login-hint {
    color: var(--navy-light);
    font-size: 1rem;
    margin: 0;
}
.login-hint .hint-example {
    color: var(--white);
    font-weight: 600;
}

/* ---- Login page: Splash + form ---- */
.login-splash-section {
    padding: 2rem 0 3rem;
}
.login-splash-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: .5rem 0 0 .5rem;
}
.login-form-panel {
    border-radius: 0 .5rem .5rem 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem;
}
.login-form-panel .form-label {
    font-weight: 600;
}
.login-form-panel #togglePassword {
    background: var(--white);
    border-color: #ced4da;
    color: #555;
}
.login-form-panel #togglePassword:hover {
    color: var(--navy);
}

/* ---- Buttons ---- */
.btn-gold {
    background-color: var(--gold);
    color: var(--navy);
    border: none;
    font-weight: 600;
    padding: .55rem 1.5rem;
    transition: background-color .2s;
}
.btn-gold:hover {
    background-color: var(--gold-light);
    color: var(--navy);
}
.btn-outline-gold {
    border: 2px solid var(--gold);
    color: var(--gold);
    background: transparent;
    font-weight: 600;
    padding: .55rem 1.5rem;
}
.btn-outline-gold:hover {
    background-color: var(--gold);
    color: var(--navy);
}

/* ---- Footer ---- */
.site-footer {
    background-color: var(--navy-light);
    border-top: 2px solid var(--gold);
    padding: 2.5rem 0 1.5rem;
    font-size: .9rem;
    color: var(--text-muted);
}
.site-footer h5 {
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 1rem;
}
.site-footer a {
    color: var(--text-muted);
    text-decoration: none;
}
.site-footer a:hover {
    color: var(--gold);
}
.site-footer .copyright {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 1rem;
    margin-top: 1.5rem;
    text-align: center;
    font-size: .8rem;
}

/* ---- Dashboard: Background ---- */
body.dashboard-bg {
    background: url('../images/bg-sky.jpg') center top / cover no-repeat fixed;
}

/* ---- Dashboard: Header ---- */
.dash-header {
    padding: 3rem 0 1.5rem;
    background: rgba(50, 70, 130, 0.5);
}
.dash-header h1 {
    color: var(--white);
    font-size: 2.8rem;
    font-weight: 700;
    text-shadow: 2px 2px 6px rgba(0,0,0,.5);
}
.dash-subtitle {
    color: var(--gold);
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: .25rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,.5);
}
.dash-subtitle-sm {
    color: rgba(255,255,255,.75);
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-shadow: 1px 1px 3px rgba(0,0,0,.5);
}

/* ---- Dashboard: Action buttons ---- */
.dash-actions {
    padding: 1.5rem 0;
}
.btn-dash-action {
    background-color: var(--navy-light);
    color: var(--white);
    border: 2px solid rgba(255,255,255,.3);
    font-weight: 600;
    padding: .65rem 2rem;
    border-radius: .35rem;
    transition: all .2s;
}
.btn-dash-action:hover {
    background-color: #1a65b8;
    color: var(--white);
    border-color: var(--white);
}

/* ---- Dashboard: News heading ---- */
.dash-news-heading {
    padding: 1.5rem 0 1rem;
}
.dash-news-heading h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 2rem;
    color: var(--white);
    text-shadow: 2px 2px 6px rgba(0,0,0,.5);
}

/* ---- Dashboard: Post cards ---- */
.dash-posts {
    padding: 0 0 2rem;
}
.news-card {
    background: var(--white);
    border-radius: .5rem;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.news-card-img {
    height: 200px;
    overflow: hidden;
}
.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.news-card-body h3 {
    color: var(--navy);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: .5rem;
}
.news-card-excerpt {
    color: #555;
    font-size: .9rem;
    line-height: 1.5;
    flex: 1;
    margin-bottom: .75rem;
}
.news-read-more {
    color: var(--navy-light);
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
    cursor: pointer;
}
.news-read-more:hover {
    color: var(--gold);
    text-decoration: underline;
}
.news-card-meta {
    border-top: 1px solid #eee;
    padding-top: .75rem;
    margin-top: .5rem;
}
.news-card-author {
    display: block;
    color: var(--navy-light);
    font-weight: 600;
    font-size: .85rem;
}
.news-card-date {
    display: block;
    color: #888;
    font-size: .8rem;
}
.dash-pagination {
    color: rgba(255,255,255,.6);
    font-size: .85rem;
}

/* ---- Dashboard: Write info ---- */
.dash-write-info {
    background: rgba(50, 70, 130, 0.5);
    padding: 2.5rem 0;
}
.dash-write-info h2 {
    color: var(--navy);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.dash-write-info p {
    color: var(--white);
    font-size: 1rem;
    line-height: 1.7;
    text-shadow: 1px 1px 3px rgba(0,0,0,.3);
}

/* ---- Dashboard: Post manage cards (admin) ---- */
.post-card {
    background: var(--navy-light);
    border: 1px solid rgba(201, 168, 76, .2);
    border-radius: .5rem;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    transition: border-color .2s;
}
.post-card:hover {
    border-color: var(--gold);
}
.post-card .post-meta {
    font-size: .85rem;
    color: var(--text-muted);
    margin-bottom: .5rem;
}
.post-card h3 {
    color: var(--gold);
    font-size: 1.25rem;
}
.post-card .post-body {
    color: var(--white);
}

/* ---- Post modal ---- */
.post-full-body {
    line-height: 1.7;
}
.post-full-body img {
    max-width: 100%;
    height: auto;
    border-radius: .35rem;
}

/* ---- Content pages ---- */
.page-header {
    background: url('../images/bg-snow.jpg') center/cover no-repeat;
    position: relative;
    padding: 4rem 0 3rem;
    text-align: center;
}
.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 22, 40, 0.7);
}
.page-header h1 {
    position: relative;
    z-index: 1;
    color: var(--gold);
    font-weight: 700;
}

.content-wrap {
    padding: 2.5rem 0;
}

/* ---- Tables ---- */
.table-dark-custom {
    --bs-table-bg: var(--navy-light);
    --bs-table-color: var(--white);
    --bs-table-border-color: rgba(201,168,76,.2);
}

/* ---- Flash messages ---- */
.flash-container {
    position: fixed;
    top: 80px;
    right: 1rem;
    z-index: 1060;
    max-width: 400px;
}

/* ---- Page Hero (full-height hero with background image) ---- */
.page-hero {
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(25,60,55,.45), rgba(10,22,40,.65));
}
.page-hero .hero-inner {
    position: relative;
    z-index: 2;
    padding: 3rem 1rem;
}
.page-hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0,0,0,.5);
    animation: fadeIn .8s ease-out;
}
.page-hero .hero-subtitle {
    color: var(--gold-light);
    font-size: .95rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: .75rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,.5);
}
.page-hero.page-hero-short {
    min-height: 300px;
}

.page-hero .hero-text {
    color: rgba(255,255,255,.9);
    font-size: 1rem;
    max-width: 700px;
    margin: 1rem auto 0;
}

/* Background video in hero */
.page-hero video.hero-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- Content Sections (with overlay background) ---- */
.content-section {
    position: relative;
    padding: 3rem 0;
}
.content-section.has-overlay {
    background-size: cover;
    background-position: center;
}
.content-section.has-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10,22,40,.72);
}
.content-section .container {
    position: relative;
    z-index: 1;
}

/* ---- Section headings (gold, with underline) ---- */
.content-section h2.section-title {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 600;
    text-shadow: 0 0 51px rgba(0,0,0,.5);
    margin-bottom: 1.5rem;
}
.content-section h4.section-title {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 600;
    text-shadow: 0 0 51px rgba(0,0,0,.5);
    margin-bottom: 1.5rem;
}

/* ---- Anchor nav (for overview page) ---- */
.anchor-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
    margin-bottom: 2rem;
}
.anchor-nav a {
    color: #1201B8;
    background: rgba(255,255,255,.9);
    padding: .5rem 1.25rem;
    border-radius: .25rem;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all .2s;
}
.anchor-nav a:hover {
    background: var(--gold);
    color: var(--navy);
}

/* ---- Back-to-section button ---- */
.btn-back-top {
    background: #6E61CE;
    color: var(--white);
    border: none;
    padding: .4rem 1rem;
    border-radius: .25rem;
    font-weight: 600;
    font-size: .85rem;
    text-decoration: none;
    float: right;
    margin-bottom: 1rem;
}
.btn-back-top:hover {
    background: #5a4fb8;
    color: var(--white);
}

/* ---- PDF Viewer ---- */
.pdf-viewer {
    width: 100%;
    max-width: 1330px;
    margin: 0 auto;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: .25rem;
    background: #fff;
}

/* ---- Image Gallery ---- */
.gallery-grid {
    display: grid;
    gap: .5rem;
}
.gallery-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.gallery-grid.cols-6 { grid-template-columns: repeat(6, 1fr); }

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: .25rem;
    cursor: pointer;
    aspect-ratio: 1;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.gallery-item .gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.7));
    color: var(--white);
    padding: 2rem .5rem .5rem;
    font-size: .8rem;
    text-align: center;
    opacity: 0;
    transition: opacity .3s;
}
.gallery-item:hover .gallery-caption {
    opacity: 1;
}

/* ---- Carousel (for scrapbook letters/speeches) ---- */
.content-carousel {
    position: relative;
    overflow: hidden;
    border-radius: .25rem;
    background: rgba(0,0,0,.3);
}
.content-carousel .carousel-inner {
    background: transparent;
}
.content-carousel .carousel-item img {
    max-height: 700px;
    object-fit: contain;
    margin: 0 auto;
}

/* ---- Video grid ---- */
.video-section {
    border: 2px solid #6EC1E4;
    border-radius: .5rem;
    padding: 2rem;
    margin: 2rem 0;
}
.video-card {
    border: 1px solid #6EC1E4;
    border-radius: .25rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}
.video-card h5 {
    color: var(--white);
    font-weight: 600;
    font-size: 1.4rem;
    margin-bottom: .75rem;
}
.video-card p {
    color: rgba(255,255,255,.85);
    font-size: .95rem;
}
.video-card video {
    width: 100%;
    border-radius: .25rem;
    margin-top: .75rem;
}

/* ---- Toggle/Accordion ---- */
.content-accordion .accordion-item {
    background: transparent;
    border: 1px solid rgba(255,255,255,.2);
    margin-bottom: .5rem;
    border-radius: .25rem;
}
.content-accordion .accordion-button {
    background: rgba(72,76,188,.3);
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: none;
}
.content-accordion .accordion-button:not(.collapsed) {
    background: #484CBC;
    color: var(--white);
}
.content-accordion .accordion-button::after {
    filter: invert(1);
}
.content-accordion .accordion-body {
    background: rgba(0,0,0,.2);
    color: rgba(255,255,255,.9);
}
.content-accordion .accordion-body a {
    color: var(--gold-light);
}

/* ---- Two-column text content ---- */
.content-text {
    color: rgba(255,255,255,.9);
    font-size: 1.05rem;
    line-height: 1.7;
}
.content-text h2 {
    color: var(--white);
    text-align: center;
    margin-bottom: 1rem;
}
.content-text p {
    margin-bottom: 1rem;
}

/* ---- Lightbox modal ---- */
.lightbox-modal .modal-content {
    background: rgba(0,0,0,.95);
    border: none;
}
.lightbox-modal .modal-body {
    padding: 0;
    text-align: center;
}
.lightbox-modal .modal-body img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}
.lightbox-modal .btn-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    filter: invert(1);
}
.lightbox-caption {
    color: var(--white);
    text-align: center;
    padding: .75rem;
    font-size: .95rem;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .hero {
        min-height: 50vh;
    }
    .hero-content img {
        max-width: 120px;
    }
    .banner-img {
        max-width: 100%;
    }
    .tagline {
        font-size: .85rem;
        letter-spacing: .08em;
    }
    .splash-quote {
        font-size: 1.1rem;
    }
    .om-oss-heading {
        font-size: 1.8rem;
    }
    .museum-plaque {
        max-width: 100%;
    }
    .dash-header h1 {
        font-size: 2rem;
    }
    .dash-news-heading h2 {
        font-size: 1.4rem;
    }
    .btn-dash-action {
        display: block;
        width: 100%;
        margin-bottom: .5rem;
    }
    .page-hero {
        min-height: 40vh;
        background-attachment: scroll;
    }
    .page-hero h1 {
        font-size: 2.2rem;
    }
    .gallery-grid.cols-5,
    .gallery-grid.cols-6 {
        grid-template-columns: repeat(3, 1fr);
    }
    .gallery-grid.cols-3,
    .gallery-grid.cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .video-section {
        padding: 1rem;
    }
    .content-section h2.section-title,
    .content-section h4.section-title {
        font-size: 1.8rem;
    }
    .pdf-viewer {
        height: 500px;
    }
}

@media (max-width: 480px) {
    .gallery-grid.cols-3,
    .gallery-grid.cols-4,
    .gallery-grid.cols-5,
    .gallery-grid.cols-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}
