:root {
    /* Colors */
    --primary-color: #1a2240;
    /* Dark blue */
    --secondary-color: #fcbc4b;
    /* Yellow/Gold accent */
    --about-bg: #f9f8eb;
    /* Light sand */
    --services-bg: #dfb256;
    /* Gold/Yellow background for core services */
    --stats-start: #4bacef;
    /* Light blue gradient start */
    --stats-end: #17609f;
    /* Dark blue gradient end */
    --footer-bg: #181c31;
    /* Footer dark blue */
    --text-dark: #333333;
    --text-light: #ffffff;

    /* Typography */
    --font-heading: 'Open Sans', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --font-tagline: 'Libre Baskerville', serif;

    /* Layout */
    --container-width: 1200px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--text-light);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #e5a840;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--text-light);
    color: var(--text-light);
}

.btn-outline:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

.btn-outline-dark {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-dark:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-services {
    background-color: rgba(255, 255, 255, 0.7);
    border-color: var(--text-light);
    color: var(--text-dark);
}

.btn-services:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Header */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 24px;
}

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.nav-links .active {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 25px;
}

.nav-links .active:hover {
    color: var(--primary-color);
    background-color: #e5a840;
}

/* Dropdown Submenu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 101;
    border-radius: 8px;
    top: 150%;
    transform: translateY(10px);
    transition: all 0.3s ease;
    padding: 10px 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-content a {
    color: var(--primary-color);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-size: 13px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: rgba(0, 0, 0, 0.02);
    color: var(--secondary-color);
    padding-left: 25px;
    /* slight indent effect on hover */
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    top: 150%;
    transform: translateY(0);
}

/* For active link within dropdown to not break styling */
.nav-links .dropdown .active {
    background-color: transparent;
    padding: 12px 20px;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    color: var(--primary-color);
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('images/hero.jpg');
    background-size: cover;
    background-position: center bottom;
    color: var(--text-light);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-family: var(--font-tagline);
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-border {
    height: 20px;
    width: 100%;
    background-color: var(--secondary-color);
    position: absolute;
    bottom: 0;
    left: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
        padding: 16px 0;
        z-index: 999;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a,
    .nav-links .dropbtn {
        padding: 14px 28px;
        font-size: 15px;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    }

    .nav-links .active {
        background-color: var(--secondary-color);
        border-radius: 0;
        padding: 14px 28px;
    }

    /* Mobile dropdown: always visible when parent is open */
    .dropdown {
        width: 100%;
    }

    .dropdown-content {
        position: static;
        visibility: visible;
        opacity: 1;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background-color: #f5f5f5;
        padding: 0;
        display: none;
        transition: none;
    }

    .dropdown.mobile-open .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        padding: 12px 40px;
        font-size: 13px;
        color: var(--primary-color);
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    }

    .dropbtn {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .menu-toggle {
        display: block;
    }

    header {
        position: sticky;
    }

    .hero h1 {
        font-size: 36px;
    }
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: var(--about-bg);
}

.about-container {
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-image {
    flex: 1;
}

.about-img {
    width: 75%;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-content p {
    color: #1a4d7d;
    font-weight: 500;
    margin-bottom: 30px;
}

.about-features {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.feature-box {
    width: 100px;
    height: 80px;
    background-color: #fce1ab;
    border-radius: 8px;
}

.about-content .btn-outline-dark {
    border-width: 1px;
    border-color: #d6b876;
    color: var(--primary-color);
    padding: 10px 40px;
    border-radius: 30px;
}

.about-content .btn-outline-dark:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* Core Services Section */
.services {
    padding: 80px 0;
    background-color: var(--services-bg);
    background-image: linear-gradient(rgba(223, 178, 86, 0.92), rgba(223, 178, 86, 0.92)), url('images/Services behind image.jpg');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
}

.text-center {
    text-align: center;
}

.services h2 {
    font-size: 42px;
    margin-bottom: 50px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.service-card {
    background-color: #131726;
    /* Very dark background */
    border-radius: 10px;
    overflow: hidden;
    text-align: left;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-image {
    height: 200px;
    background-color: #2c3e50;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Fallback backgrounds for images we don't have */
.bg-audit {
    background-image: url('images/Audit.png');
    background-color: #34495e;
}

.bg-inspection {
    background-image: url('images/Preparation.png');
    background-color: #2c3e50;
}

.bg-training {
    background-image: url('images/training.png');
    background-color: #1a252f;
}

.service-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, #131726 0%, rgba(19, 23, 38, 0) 50%);
}

.service-content {
    padding: 0 30px 40px;
    position: relative;
    z-index: 2;
    flex: 1;
}

.service-icon {
    font-size: 32px;
    color: #dfb256;
    margin-bottom: 20px;
    margin-top: -15px;
    /* Overlap image */
    position: relative;
    z-index: 10;
}

.service-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-light);
}

.service-content p {
    font-size: 14px;
    color: #a0a5b8;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .about-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Stats Section */
.stats {
    padding: 100px 0;
    background: linear-gradient(to bottom, var(--stats-start), var(--stats-end));
    color: var(--text-light);
}

.stats h2 {
    font-size: 36px;
    margin-bottom: 80px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card {
    background-color: var(--text-light);
    border-radius: 12px;
    padding: 40px 20px 20px;
    /* Extra top padding for the icon */
    color: var(--primary-color);
    position: relative;
    text-align: center;
}

.stat-icon-wrapper {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    font-size: 24px;
}

.stat-number-home {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label-home {
    font-size: 18px;
    font-weight: 600;
    color: #555;
}

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 60px;
    }
}

@media (max-width: 500px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* CTA Section */
.cta {
    background-color: var(--secondary-color);
    padding: 40px 0;
}

.cta-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.cta-text {
    color: var(--primary-color);
    font-size: 18px;
    font-family: var(--font-body);
    font-weight: 600;
    margin: 0;
}

.cta .btn-outline {
    border-color: var(--text-light);
    background-color: var(--text-light);
    color: var(--primary-color);
    padding: 12px 40px;
}

.cta .btn-outline:hover {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Footer Section */
footer {
    background-color: var(--footer-bg);
    color: var(--text-light);
    padding: 60px 0 40px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-col {
    flex: 1;
    min-width: 150px;
}

.footer-brand {
    flex: 1.5;
    min-width: 250px;
}

.footer-tagline {
    margin-top: 15px;
    font-size: 14px;
    color: #a0a5b8;
    font-style: italic;
    font-family: var(--font-heading);
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--secondary-color);
    letter-spacing: 1px;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul a {
    font-size: 12px;
    color: #d1d5e5;
    font-weight: 600;
    text-transform: uppercase;
}

.footer-col ul a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 13px;
    color: #a0a5b8;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: var(--secondary-color);
    font-weight: 600;
}

.footer-bottom a:hover {
    color: var(--text-light);
}

/* Contact & Profile Page Specific Styles */
.contact-header {
    background-image: linear-gradient(rgba(26, 34, 64, 0.9), rgba(26, 34, 64, 0.9)), url('images/hero.jpg');
    background-size: cover;
    background-position: center;
    padding: 150px 0 80px;
}

.contact-header h1 {
    font-size: 42px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.subtitle {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 1px;
}

.profile-intro {
    padding: 80px 0;
    background-color: var(--text-light);
}

.contact-container {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.contact-info-col {
    flex: 1;
    background-color: var(--about-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-info-col h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 28px;
}

.contact-info-col p {
    color: #555;
    margin-bottom: 30px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-method i {
    font-size: 24px;
    color: var(--secondary-color);
    background-color: var(--primary-color);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.contact-method h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
    font-size: 16px;
}

.contact-method a,
.contact-method span {
    color: #555;
    font-weight: 500;
}

.contact-method a:hover {
    color: var(--secondary-color);
}

.profile-content-col {
    flex: 1.5;
}

.profile-image-wrapper {
    margin-bottom: 30px;
    text-align: center;
}

.profile-image-wrapper img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.profile-text p {
    margin-bottom: 20px;
    color: #444;
    font-size: 16px;
    line-height: 1.8;
}

/* Expertise Section */
.expertise-section {
    padding: 80px 0;
    background-color: var(--about-bg);
}

.expertise-section h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.expertise-subtitle {
    max-width: 800px;
    margin: 0 auto 50px;
    color: #555;
    font-size: 16px;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: left;
}

.expertise-card {
    background-color: var(--text-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.expertise-img {
    height: 150px;
    background-size: cover;
    background-position: center;
}

.expertise-content {
    padding: 30px;
}

.expertise-content h3 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 15px;
    display: inline-block;
}

.mb-3 {
    margin-bottom: 15px;
    color: #555;
}

.custom-list {
    list-style: none;
    padding: 0;
}

.custom-list li {
    margin-bottom: 12px;
    color: #444;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.custom-list li i {
    color: var(--secondary-color);
    margin-top: 5px;
    font-size: 14px;
}

/* Alternating Row Layout for About Page */
.expertise-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-top: 50px;
}

.expertise-row {
    display: flex;
    align-items: center;
    gap: 50px;
    background-color: var(--text-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.expertise-row:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.expertise-row.reverse {
    flex-direction: row-reverse;
}

.expertise-row-img {
    flex: 1;
    min-height: 400px;
    align-self: stretch;
    /* Stretch image wrapper to match row height */
}

.expertise-row-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.expertise-row-content {
    flex: 1.2;
    padding: 50px 40px;
    text-align: left;
}

.expertise-row-content h3 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 15px;
    display: inline-block;
}

@media (max-width: 900px) {
    .contact-container {
        flex-direction: column-reverse;
    }

    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .expertise-row,
    .expertise-row.reverse {
        flex-direction: column;
        gap: 0;
    }

    .expertise-row-img {
        min-height: 250px;
        width: 100%;
    }
}

/* Training & Development Page Styles */
.training-hero,
.audit-hero,
.inspection-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    color: var(--text-light);
}

.training-hero {
    background-image: url('images/Training_Hero Image.JPG');
}

.audit-hero {
    background-image: url('images/Audit & Complain_Hero.JPG');
}

.inspection-hero {
    background-image: url('images/Inspection Preparation Hero.JPG');
}

.training-hero::before,
.audit-hero::before,
.inspection-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.training-hero h1,
.audit-hero h1,
.inspection-hero h1 {
    position: relative;
    z-index: 10;
    font-size: 48px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.training-stats {
    background-color: var(--primary-color);
    border-top: 5px solid var(--secondary-color);
    padding: 60px 20px;
    color: var(--text-light);
}

.stats-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
}

.stat-item {
    flex: 1;
}

.stat-number {
    font-size: 72px;
    font-weight: 400;
    margin-bottom: 5px;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--text-light);
}

.stat-divider {
    width: 80%;
    max-width: 200px;
    height: 1.5px;
    background-color: var(--text-light);
    margin: 15px auto;
}

.stat-label {
    font-size: 18px;
    font-weight: 600;
}

.training-row {
    display: flex;
    width: 100%;
}

.training-block {
    flex: 1;
    padding: 80px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 400px;
}

.block-light {
    background-color: #f7f7f4;
    align-items: center;
}

.block-light img {
    max-width: 280px;
    height: auto;
}

.block-dark {
    background-color: #1f375b;
    /* A lighter navy blue based on the design mock */
    color: var(--text-light);
    align-items: flex-start;
}

.block-dark h3 {
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 600;
}

.block-dark p {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.9;
}

.training-cta {
    background-color: var(--secondary-color);
    padding: 50px 20px;
}

.training-cta-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.training-cta h2 {
    color: var(--primary-color);
    font-size: 24px;
    margin: 0;
    font-weight: 700;
}

.btn-contact-outline {
    background-color: #ffffff;
    color: #000000;
    border: 2px solid #ffffff;
    padding: 12px 35px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-contact-outline:hover {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

@media (max-width: 768px) {
    .stats-container {
        flex-direction: column;
        gap: 50px;
    }

    .training-row {
        flex-direction: column;
    }

    .training-block {
        width: 100%;
        min-height: auto;
        padding: 50px 8%;
        flex: none;
    }

    /* Always show icon/image block first, text block second on mobile */
    .block-light {
        order: 1;
    }

    .block-dark {
        order: 2;
    }

    .block-light img {
        max-width: 200px;
    }

    .block-dark h3 {
        font-size: 24px;
    }

    .training-cta-container {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }

    .footer-container {
        flex-direction: column;
    }

    .cta-container {
        justify-content: center;
        text-align: center;
    }
}

/* ===================== PHOTO ALBUM SECTION ===================== */
.photo-album-section {
    padding: 80px 0;
    background-color: #f4f6f9;
}

.photo-album-section h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.album-section {
    margin-bottom: 60px;
}

.album-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--secondary-color);
    display: inline-block;
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.album-thumb {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.album-thumb:hover {
    transform: scale(1.04);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.album-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===================== LIGHTBOX ===================== */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 85vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
    z-index: 2100;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 36px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    padding: 12px 18px;
    border-radius: 50%;
    z-index: 2100;
    transition: background 0.2s;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

.lightbox-caption {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #ccc;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .album-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .lightbox-nav {
        font-size: 24px;
        padding: 8px 12px;
    }
}