/* ===== CSS Variables ===== */
:root {
    --primary-color: #00bcd4;
    --primary-dark: #00acc1;
    --accent-color: rgba(0, 188, 212, 0.7);
    --text-dark: #212121;
    --text-body: #434343;
    --text-secondary: #363636;
    --text-light: #808080;
    --text-medium: #666666;
    --bg-white: #ffffff;
    --bg-light: #f5f5f5;
    --bg-dark: #434343;
    --bg-darker: #212121;
    --border-color: #c2c2c2;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --font-family: 'Lato', sans-serif;
}

/* ===== Reset & Base Styles ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-body);
    background-color: var(--bg-white);
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: var(--transition);
}

a:hover {
    color: var(--text-body);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Header & Navigation ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-darker);
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.nav-brand a {
    display: flex;
    align-items: center;
}

.logo {
    height: 45px;
    width: auto;
}

.brand-text {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--bg-white);
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    gap: 0;
}

.nav-link {
    padding: 11.5px 16px;
    font-weight: 400;
    font-size: 11pt;
    color: rgba(255, 255, 255, 1);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: rgba(255, 255, 255, 0.8);
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #ffffff;
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background-color: #ffffff;
    transition: var(--transition);
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

/* Hamburger Animation */
.nav-toggle.active .hamburger {
    background-color: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    padding: 120px 20px 80px;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(33, 33, 33, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-size: 34pt;
    font-weight: 300;
    color: var(--bg-white);
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 15pt;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 11pt;
    font-weight: 400;
    text-align: center;
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--bg-dark);
    color: var(--bg-white);
    border-color: var(--bg-dark);
}

.btn-primary:hover {
    background-color: var(--text-dark);
    color: var(--bg-white);
    border-color: var(--text-dark);
}

.btn-secondary {
    background-color: var(--bg-dark);
    color: var(--bg-white);
    border-color: var(--bg-dark);
}

.btn-secondary:hover {
    background-color: var(--text-dark);
    border-color: var(--text-dark);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 9pt;
    letter-spacing: 0.4px;
}

.actionlist-legal-links {
    margin: 18px 0 10px;
}

@media (max-width: 768px) {
    .actionlist-legal-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .actionlist-legal-links .btn {
        width: fit-content;
        margin-left: 0;
    }
}

/* ===== Section Styles ===== */
.section-title {
    font-size: 19pt;
    font-weight: 300;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

/* ===== Services Section ===== */
.services {
    padding: 60px 0;
    background-color: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background-color: var(--bg-white);
    overflow: hidden;
    text-align: left;
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-image img {
    transform: scale(1.03);
}

.service-content {
    padding: 20px 24px 24px;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    border-radius: 50%;
    color: var(--bg-white);
}

.service-title {
    font-size: 15pt;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.service-description {
    font-size: 11pt;
    color: var(--text-body);
    line-height: 1.6;
}

.service-description strong {
    color: var(--text-dark);
}

/* ===== Why Us Section ===== */
.why-us {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.why-us-card {
    background-color: var(--bg-white);
    overflow: hidden;
    text-align: left;
    transition: var(--transition);
}

.why-us-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.why-us-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.why-us-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.why-us-card:hover .why-us-image img {
    transform: scale(1.03);
}

.why-us-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    border-radius: 50%;
    color: var(--primary-color);
}

.why-us-card h4 {
    font-size: 13pt;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 8px;
    padding: 16px 16px 0;
}

.why-us-card p {
    font-size: 11pt;
    color: var(--text-body);
    line-height: 1.5;
    padding: 0 16px 20px;
}

/* Cards with icons instead of images */
.why-us-card.with-icon {
    padding: 30px 20px;
}

.why-us-card.with-icon h4 {
    padding: 0;
}

.why-us-card.with-icon p {
    padding: 0;
}

.why-us-card .why-us-icon + h4 {
    padding: 0;
}

.why-us-card .why-us-icon ~ p {
    padding: 0;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--bg-dark);
    color: var(--bg-white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 15px;
    color: var(--bg-white);
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 15px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11pt;
    line-height: 1.6;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
    font-size: 12pt;
    font-weight: 400;
    margin-bottom: 16px;
    color: var(--bg-white);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11pt;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
    font-size: 11pt;
    line-height: 1.6;
}

.footer-contact a {
    color: var(--primary-color);
}

.footer-contact a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--bg-white);
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 10pt;
}

/* ===== Responsive Design ===== */

/* Tablet - Large */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet - Small */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background-color: var(--bg-darker);
        flex-direction: column;
        padding: 16px;
        gap: 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        padding: 12px 16px;
        width: 100%;
        text-align: left;
    }

    .hero {
        padding: 100px 20px 60px;
        min-height: auto;
    }

    .hero-title {
        font-size: 24pt;
    }

    .hero-subtitle {
        font-size: 13pt;
    }

    .section-title {
        font-size: 17pt;
    }

    .services {
        padding: 50px 0;
    }

    .why-us {
        padding: 50px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 20pt;
    }

    .hero-subtitle {
        font-size: 12pt;
    }

    .section-title {
        font-size: 15pt;
    }

    .btn {
        padding: 10px 20px;
        font-size: 10pt;
    }

    .footer {
        padding: 50px 0 20px;
    }
}

/* ===== Additional Page Styles ===== */

/* Page Header */
.page-header {
    padding: 140px 20px 60px;
    background-color: var(--bg-darker);
    text-align: center;
}

.page-header h1 {
    font-size: 34pt;
    font-weight: 300;
    color: var(--bg-white);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.page-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13pt;
    font-weight: 300;
}

.page-content {
    padding: 60px 0;
}

.page-content p {
    color: var(--text-body);
    margin-bottom: 16px;
    line-height: 1.6;
    font-size: 15pt;
}

.policy-content {
    max-width: 900px;
    margin: 0 auto;
}

.policy-content h2 {
    font-size: 15pt;
    font-weight: 400;
    color: var(--text-dark);
    margin: 24px 0 12px;
}

.policy-content h3 {
    font-size: 12pt;
    font-weight: 400;
    color: var(--text-dark);
    margin: 18px 0 10px;
}

.policy-content p,
.policy-content li {
    font-size: 11pt;
    color: var(--text-body);
    line-height: 1.7;
}

.policy-content ul {
    margin: 0 0 16px 20px;
    list-style: disc;
}

.policy-content ol {
    margin: 0 0 16px 20px;
    list-style: decimal;
}

.policy-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: 11pt;
}

.policy-content th,
.policy-content td {
    border: 1px solid var(--border-color);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.policy-content th {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-weight: 400;
}

.about-intro p {
    font-size: 15pt;
    line-height: 1.6;
}

/* Contact Page Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 400;
    font-size: 11pt;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 11pt;
    font-family: var(--font-family);
    border: 1px solid var(--border-color);
    border-radius: 0;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

/* Contact Info Cards */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}

.contact-info-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 24px;
    text-align: center;
}

.contact-info-card svg {
    color: var(--primary-color);
    margin-bottom: 12px;
}

.contact-info-card h4 {
    font-size: 13pt;
    font-weight: 400;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.contact-info-card p,
.contact-info-card a {
    color: var(--text-body);
    font-size: 11pt;
}

.contact-info-card a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .page-header {
        padding: 110px 20px 50px;
    }

    .page-header h1 {
        font-size: 24pt;
    }

    .page-content {
        padding: 40px 0;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Domains Section ===== */
.domains-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.domain-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: transparent;
    overflow: hidden;
    transition: var(--transition);
}

.domain-image {
    width: 100px;
    min-width: 100px;
    height: 75px;
    overflow: hidden;
    flex-shrink: 0;
}

.domain-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.domain-content {
    padding: 0 0 0 20px;
}

.domain-content h4 {
    font-size: 13pt;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.domain-content p {
    font-size: 11pt;
    color: var(--text-body);
    line-height: 1.5;
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .domains-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .domain-image {
        width: 80px;
        min-width: 80px;
        height: 60px;
    }

    .domain-content {
        padding-left: 16px;
    }

    .domain-content h4 {
        font-size: 12pt;
    }

    .domain-content p {
        font-size: 10pt;
    }
}

/* ===== Team Section ===== */
.team-section {
    margin-bottom: 20px;
}

.team-section-title {
    font-size: 15pt;
    font-weight: 400;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 30px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 500px;
    margin: 0 auto;
}

.leadership-grid {
    max-width: 450px;
}

.team-grid-large {
    grid-template-columns: repeat(4, 1fr);
    max-width: 100%;
    gap: 24px;
}

.team-card {
    text-align: center;
}

.team-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 12px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--bg-light);
}

.leadership-grid .team-image {
    width: 150px;
    height: 150px;
}

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

.team-info h4 {
    font-size: 12pt;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.team-info p {
    font-size: 10pt;
    color: var(--text-body);
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .team-grid-large {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .team-grid-large {
        grid-template-columns: repeat(2, 1fr);
    }

    .leadership-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .team-grid-large {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-image {
        width: 100px;
        height: 100px;
    }

    .leadership-grid .team-image {
        width: 120px;
        height: 120px;
    }
}

/* ===== Life at COS Q Gallery ===== */

/* Anniversary Gallery - Featured Layout */
.anniversary-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.gallery-featured {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.gallery-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.gallery-featured:hover img {
    transform: scale(1.02);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.gallery-grid .gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.gallery-grid .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.gallery-grid .gallery-item:hover img {
    transform: scale(1.05);
}

/* Onam Gallery */
.onam-gallery {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    align-items: start;
}

.onam-images {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 16px;
}

.onam-image-large {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.onam-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.onam-image-large:hover img {
    transform: scale(1.02);
}

.onam-image-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.onam-image-small {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    flex: 1;
}

.onam-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.onam-image-small:hover img {
    transform: scale(1.03);
}

.onam-video {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: fit-content;
    position: relative;
    cursor: pointer;
}

.onam-video video {
    width: 100%;
    height: auto;
    display: block;
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.video-play-overlay svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: var(--transition);
}

.onam-video:hover .video-play-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.onam-video:hover .video-play-overlay svg {
    transform: scale(1.1);
}

@media (max-width: 1024px) {
    .anniversary-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .onam-gallery {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .onam-images {
        grid-template-columns: 1.5fr 1fr;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .onam-images {
        grid-template-columns: 1fr;
    }

    .onam-image-stack {
        flex-direction: row;
    }

    .onam-image-large {
        max-height: 300px;
    }

    .onam-image-small {
        max-height: 150px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .onam-image-stack {
        flex-direction: column;
    }

    .onam-image-large,
    .onam-image-small {
        max-height: none;
    }
}

/* ===== Image Gallery (horizontal images) ===== */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

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

.section-text {
    max-width: 900px;
    margin: 0 auto;
}

.section-text p {
    font-size: 11pt;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 16px;
    text-align: center;
}

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

@media (max-width: 768px) {
    .image-gallery {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .section-text p {
        text-align: left;
    }
}

/* ===== Content Block (alternating image/text layout) ===== */
.content-block {
    margin-bottom: 40px;
}

.content-block:last-child {
    margin-bottom: 0;
}

.content-block-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.content-block-grid.reverse {
    direction: rtl;
}

.content-block-grid.reverse > * {
    direction: ltr;
}

.content-block-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

.content-block-text h2 {
    font-size: 19pt;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.content-block-text p {
    font-size: 11pt;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 16px;
}

.content-block-text p:last-child {
    margin-bottom: 0;
}

/* Photo Credit */
.page-content .photo-credit {
    font-size: 7pt;
    color: var(--text-light);
    margin-top: 8px;
    margin-bottom: 0;
    text-align: right;
}

.page-content .photo-credit a {
    color: var(--text-light);
    text-decoration: underline;
}

.page-content .photo-credit a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .content-block-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .content-block-grid.reverse {
        direction: ltr;
    }

    .content-block {
        margin-bottom: 40px;
    }

    .content-block-text h2 {
        font-size: 17pt;
    }
}

/* ===== Feature Cards (for detail pages) ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.feature-card {
    background-color: var(--bg-white);
    padding: 24px 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    border-radius: 50%;
    color: var(--primary-color);
}

.feature-card h4 {
    font-size: 12pt;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 10pt;
    color: var(--text-body);
    line-height: 1.5;
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* ===== Product Detail Section ===== */
.product-detail {
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--border-color);
}

.product-detail:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: center;
}

.product-detail-grid.reverse {
    direction: rtl;
}

.product-detail-grid.reverse > * {
    direction: ltr;
}

.product-detail-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    max-width: 300px;
}

.product-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.product-detail-content h2 {
    font-size: 19pt;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.product-detail-content p {
    font-size: 11pt;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .product-detail-grid.reverse {
        direction: ltr;
    }

    .product-detail-image {
        max-width: 250px;
        margin: 0 auto;
    }

    .product-detail {
        margin-bottom: 40px;
        padding-bottom: 40px;
    }
}

/* ===== Projects Section ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.project-card {
    background-color: var(--bg-white);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    width: 100%;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.03);
}

.project-content {
    padding: 24px;
}

.project-content h3 {
    font-size: 17pt;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.project-content p {
    font-size: 11pt;
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-content .btn {
    padding: 10px 24px;
}

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

/* ===== Products Section ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    display: block;
    background-color: var(--bg-white);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    text-decoration: none;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.03);
}

.product-content {
    padding: 16px;
    text-align: center;
}

.product-content h4 {
    font-size: 13pt;
    font-weight: 400;
    color: var(--text-dark);
    margin: 0;
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .product-content {
        padding: 12px;
    }

    .product-content h4 {
        font-size: 11pt;
    }
}

/* ===== Lightbox/Popup ===== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img,
.lightbox-content video {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    padding: 5px 10px;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--primary-color);
}

/* Clickable gallery items */
.gallery-clickable {
    cursor: pointer;
}

.gallery-clickable img,
.gallery-clickable video {
    cursor: pointer;
}

/* ===== Utility Classes ===== */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}
