.home-page .contact-info {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align to top */
    padding-top: 0; /* Remove any top padding */
}

.home-page .contact-subheading {
    font-size: 1.8rem; /* 20% larger */
    margin-bottom: 30px;
    margin-top: 0; /* Ensure no top margin */
    padding-top: 20px; /* Add minimal top padding if needed */
}

.home-page .contact-details-container {
    margin-top: 0; /* Remove any top margin */
}

/* Remove any existing top spacing from the first element */
.home-page .contact-detail-row:first-child {
    margin-top: 0;
    padding-top: 0;
}
/* ===== UNIFIED MODAL ARROW STYLES ===== */
/* For Chronicles, Studio, and all Gallery pages */

.modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.7);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 1003;
    transition: all 0.3s ease;
    border: 2px solid white;
    outline: none;
    font-family: Arial, sans-serif;
}

.modal-arrow:hover {
    background: rgba(232,0,51,0.9);
    transform: translateY(-50%) scale(1.1);
    border-color: #e80033;
}

.modal-arrow-prev {
    left: 20px;
}

.modal-arrow-next {
    right: 20px;
}

/* Gallery-specific arrow positioning */
.gallery-modal-arrow-prev {
    left: 20px;
}

.gallery-modal-arrow-next {
    right: 20px;
}

/* Ensure proper z-index stacking for all modals */
.modal-content,
.awards-modal-content,
.gallery-modal-content {
    position: relative;
    z-index: 1001;
}

.modal-gallery-container,
.awards-modal-gallery-container,
.gallery-modal-container {
    position: relative;
    z-index: 1002;
}

.modal-arrow {
    z-index: 1003;
}

/* Hide arrows on mobile */
@media (max-width: 768px) {
    .modal-arrow {
        display: none !important;
    }
}

/* Ensure gallery containers have proper positioning */
.modal-gallery-container,
.awards-modal-gallery-container,
.gallery-modal-container {
    position: relative !important;
}

/* For mobile responsiveness */
@media (max-width: 768px) {
    .home-page .contact-info {
        justify-content: flex-start;
        padding-top: 0;
    }
    
    .home-page .contact-subheading {
        font-size: 1.5rem;
        margin-top: 0;
        padding-top: 15px;
    }
}



/* Extend map to show more top/bottom and adjust contact section */
.home-page .map-wrapper {
    height: 600px; /* Increase height to show more area */
    overflow: hidden;
}

.home-page .map-wrapper img {
    width: 100%;
    height: 120%; /* Extend height to show more top/bottom */
    object-fit: cover;
    object-position: center 45%; /* Adjust vertical position to show "Tai Kun" at bottom */
}

/* Enlarge right side contact section to match height */
.home-page .contact-column {
    height: 600px; /* Match map height */
    display: flex;
    align-items: stretch; /* Make contact info fill the height */
}

.home-page .contact-info {
    height: 100%; /* Fill the entire contact column height */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
}

/* For mobile responsiveness */
@media (max-width: 768px) {
    .home-page .map-wrapper {
        height: 450px; /* Adjusted mobile height */
    }
    
    .home-page .map-wrapper img {
        height: 110%;
        object-position: center 40%;
    }
    
    .home-page .contact-column {
        height: auto; /* Reset height on mobile */
    }
    
    .home-page .contact-info {
        height: auto; /* Reset height on mobile */
        justify-content: flex-start; /* Reset alignment on mobile */
    }
}
/* Grey underline for main page section headers - matching studio.html style */
.home-page .section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    color: var(--dark-gray); /* Grey color instead of red */
}

.home-page .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--dark-gray); /* Grey underline */
}

/* Specific styling for each section header */
.home-page #projects .section-title::after,
.home-page #news .section-title::after, 
.home-page #contact .section-title::after {
    background-color: var(--dark-gray); /* Ensure grey color */
}

/* ===== BASE STYLES & VARIABLES ===== */
:root {
    --primary-red: #e80033;
    --title-color: var(--primary-red);
    --light-gray: #b3b3b3;
    --dark-gray: #666666;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Avenir', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--dark-gray);
    overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4 {
    font-family: 'Avenir', -apple-system, sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.subtitle {
    font-weight: 500;
    font-size: 1.25rem;
    letter-spacing: 0.2px;
}

.caption {
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.red-text {
    color: var(--primary-red);
}



/* ===== LAYOUT & CONTAINERS ===== */

.tagline-text .fio-red {
    color: #e80033;
    /* Your primary red color */
    font-weight: 700;
    /* Optional: makes it bolder */
}

/* For mobile responsiveness */
@media (max-width: 768px) {
    .tagline-text .fio-red {
        color: #e80033;
        /* Ensures it stays red on mobile */
    }
}


.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
    position: relative;
}

section[id] {
    scroll-margin-top: 100px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-red);
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #d1002d;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(232, 0, 51, 0.3);
}

.arch-btn {
    background: linear-gradient(to bottom, #f5f5f5, #e0e0e0);
    color: var(--dark-gray);
    padding: 14px 28px;
    border: none;
    border-left: 4px solid var(--primary-red);
    font-weight: 500;
    letter-spacing: 1px;
    box-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.05),
        inset 1px 1px 2px rgba(255, 255, 255, 0.8);
    position: relative;
    display: inline-block;
    text-decoration: none;
    transition: var(--transition);
}

.arch-btn:hover {
    background: linear-gradient(to bottom, #e0e0e0, #f5f5f5);
    box-shadow:
        1px 1px 2px rgba(0, 0, 0, 0.05),
        inset 2px 2px 4px rgba(255, 255, 255, 0.8);
}

/* ===== HEADER & NAVIGATION ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 20px 0;
    transition: var(--transition);
    opacity: 0;
    animation: fadeIn 0.5s 2.5s forwards;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    margin-right: auto;
    text-decoration: none;
}

.logo-image {
    height: auto;
    width: auto;
    max-height: 32px;
}

.logo-red {
    color: #e80033;
}

.logo-black {
    color: black;
}

.logo:hover .logo-red,
.logo:hover .logo-black {
    opacity: 0.8;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    margin-left: auto;
}

nav ul li {
    margin-left: 40px;
}

nav ul li a {
    position: relative;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 5px;
    color: var(--dark-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: width 0.3s ease;
}

nav ul li a.active,
nav ul li a.active-link {
    color: var(--primary-red);
}

nav ul li a.active::after,
nav ul li a.active-link::after {
    width: 100%;
}
/* Desktop navigation styles */
nav ul li a.active,
nav ul li a.active-link {
    color: var(--primary-red);
}

nav ul li a.active::after,
nav ul li a.active-link::after {
    width: 100%;
}

/* Fix for Connect section highlighting */
nav ul li a[href="#contact"].active,
nav ul li a[href="#contact"].active-link {
    color: var(--primary-red);
}

nav ul li a[href="#contact"].active::after,
nav ul li a[href="#contact"].active-link::after {
    width: 100%;
}
nav ul li a:hover::after {
    width: 100%;
}

nav ul li a.active:hover::after {
    width: 100% !important;
}

/* Dropdown Menu */
nav ul li.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background-color: white;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    padding: 15px 0;
    text-align: center;
}

nav ul li.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    margin: 0;
    padding: 0 20px;
}

.dropdown-menu li a {
    padding: 10px 0;
    text-transform: none;
    font-size: 0.9rem;
    display: block;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    white-space: nowrap;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

@media (max-width: 768px) {

    /* Make header bar thinner */
    header {
        padding: 5px 0;
        /* Reduced from 20px */
    }

    /* Adjust logo size */
    .logo-image {
        max-height: 24px;
        /* Reduced from 32px */
    }

    /* Adjust nav toggle spacing */
    .nav-toggle {
        padding: 6px;
        /* Reduced from 8px */
    }

    /* Optional: Make menu bars slightly thinner */
    .menu-bar {
        height: 1.5px;
        /* Reduced from 2px */
    }

    /* Adjust navigation menu position to match thinner header */
    nav {
        top: 54px;
        /* Reduced from 70px to account for thinner header */
    }
}


/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
    margin-left: 20px;
    font-family: 'Avenir', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-red);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 720px;
    overflow: hidden;
    background: #000;
}

.slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(1.0);
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

@media (max-width: 768px) {
    .slide {
        transition: opacity 0.8s ease-in-out 0.2s;
    }

    .slide.active {
        opacity: 1 !important;
    }
}


.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blueprint-frame {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 60px;
    border: 1px solid rgba(255, 255, 255, 0.01);
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(3px);
}

.blueprint-marks {
    position: absolute;
    width: calc(100% - 120px);
    height: calc(100% - 120px);
    pointer-events: none;
}

.blueprint-marks span {
    position: absolute;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
}

.blueprint-marks .top-left {
    top: -10px;
    left: 0;
}

.blueprint-marks .top-right {
    top: 40px;
    /* Increased from 20px */
    right: 60px;
    /* Increased from 40px */
    text-align: right;
    line-height: 1.0;
}

.blueprint-marks .bottom-left {
    bottom: -10px;
    /* Increased from 5px */
    left: 0px;
    font-size: 0.7rem;
}

.blueprint-marks .bottom-right {
    bottom: -10px;
    /* Increased from 0 */
    right: 0;
    text-align: right;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 40px;
    text-transform: uppercase;
    color: white;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.title-line.arch-line {
    display: block;
    position: relative;
    padding-left: 40px;
}

.title-line.arch-line:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 30px;
    height: 1px;
    background: rgba(255, 255, 255, 0.8);
}

/* Desktop styles (outside any media query) */


.architectural-scale {
    position: absolute;
    right: 60px;
    bottom: 60px;
    display: flex;
    align-items: center;
    z-index: 2;
}

.scale-mask {
    position: absolute;
    right: 40px;
    bottom: 40px;
    width: 140px;
    height: 40px;
    background: rgba(0, 0, 0, 0.01);
    backdrop-filter: blur(3px);
    border-radius: 3px;
    z-index: 1;
}

.scale-bar {
    width: 100px;
    height: 1px;
    background: white;
    margin-right: 10px;
    position: relative;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
}

.scale-bar:before,
.scale-bar:after {
    content: '';
    position: absolute;
    width: 2px;
    height: 10px;
    background: white;
    top: -4px;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
}

.scale-bar:before {
    left: 0;
}

.scale-bar:after {
    right: 0;
}

.scale-label {
    font-size: 0.8rem;
    color: white;
    letter-spacing: 1px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    font-weight: 200;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    text-decoration: none;
    opacity: 0;
    animation: fadeIn 0.8s 3.5s forwards;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-line {
    width: 2px;
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: white;
    animation: scrollIndicator 2s infinite cubic-bezier(0.65, 0, 0.35, 1);
    border-radius: 2px;
}


@media (max-width: 768px) {

    /* Adjust blueprint marks positioning */
    .blueprint-marks .top-right {
        top: 15px;
        right: 15px;
        text-align: right;
        line-height: 1;
        font-size: 0.7rem;
    }

    .blueprint-marks .bottom-left {
        bottom: -10px;
        /* Moved down (reduced from 15px) */
        left: 0px;
        font-size: 0.6rem;
    }
}


.blueprint-frame {
    position: relative;
    z-index: 3;
    max-width: 504px;
    /* 630px * 0.8 (20% smaller than previous mobile size) */
    padding: 33.6px;
    /* 42px * 0.8 (20% smaller) */
    background-color: rgba(0, 0, 0, 0.1) !important;
    /* Override conflicts */
    opacity: 1 !important;
    /* Prevent pre-fade black screen */
    visibility: visible !important;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;

    .slide {
        transition: opacity 0.8s ease-in-out 0.1s;
    }
}

/* Blueprint corner marks (A.01, SCALE 1:100) */
.blueprint-marks {
    width: calc(100% - 84px);
    /* Matches reduced padding (42px * 2) */
    height: calc(100% - 84px);
}

.blueprint-marks span {
    font-size: 0.7rem;
    /* Scaled down from 0.8rem */
}



/* Adjust blueprint marks positioning */
.blueprint-marks {
    width: calc(100% - 67.2px);
    /* 84px * 0.8 */
    height: calc(100% - 67.2px);
}

/* Adjust hero title font size */
.hero-title {
    font-size: clamp(1.6rem, 5vw, 3rem);
    /* Slightly smaller */
    margin-bottom: 24px;
    /* Reduced from 40px */
}

.title-line.arch-line:before {
    width: 21px;
    /* 30% smaller (was 30px) */
}

/* Mobile styles (inside media query) */
@media (max-width: 768px) {
    .architectural-scale {
        right: 42px;
        /* Matches reduced padding */
        bottom: 100px;
    }

    .scale-mask {
        right: 28px;
        /* 30% smaller (was 40px) */
        bottom: 68px;
        width: 98px;
        /* 30% smaller (was 140px) */
        height: 28px;
        /* 30% smaller (was 40px) */
    }

    .scale-bar {
        width: 70px;
        /* 30% smaller (was 100px) */
    }

    .scale-bar:before,
    .scale-bar:after {
        height: 7px;
        /* 30% smaller (was 10px) */
        top: -3px;
        /* Adjusted position */
    }

    .scale-label {
        font-size: 0.7rem;
        /* Scaled down from 0.8rem */
    }
}



/* ===== ABOUT SECTION ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-image {
    height: 500px;
    background-size: cover;
    background-position: center;
    border-radius: 5px;
}



/* ===== PROJECTS SECTION ===== */
.projects {
    background-color: #f9f9f9;
}

.checkerboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.project-item {
    position: relative;
    height: 450px;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-item:hover .project-image {
    transform: scale(1.05);
}

.project-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px;
    height: 100%;
}

.project-info.red-bg {
    background-color: var(--primary-red);
    color: white;
}

.project-info h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.project-info.red-bg h3 {
    color: white;
}

.project-info.red-bg h3::after {
    content: attr(data-rest);
    color: black;
}

.project-info:not(.red-bg) h3.red-text {
    color: var(--primary-red);
}

.project-info:not(.red-bg) h3.red-text::after {
    content: attr(data-rest);
    color: black;
}

.project-info p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: left;
    text-justify: unset;
}

#projects .project-info p {
    text-align: left !important;
    text-justify: unset !important;
}

@media (max-width: 768px) {
    .project-info p {
        text-align: left;
        text-justify: unset;
    }
}


.project-link {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: inherit;
}

.contact-subheading {
    color: var(--primary-red);
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}


.send-message-link {
    color: var(--primary-red);
    border-left: 3px solid var(--primary-red);
    padding-left: 10px;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 15px;
}

.send-message-link:hover {
    color: white;
    background-color: var(--primary-red);
    padding: 8px 15px;
    border-left: 3px solid var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(232, 0, 51, 0.3);
}

/* ===== TAGLINE SECTIONS ===== */

/* Centered text for taglines */
.centered-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tagline-text,
.compact-tagline-text {
    text-align: center;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Ensure the red FIO text stays inline */
.tagline-text .fio-red,
.compact-tagline-text .compact-red {
    display: inline;
}

@media (max-width: 768px) {

    .tagline-text,
    .compact-tagline-text {
        text-align: center;
        width: 100%;
        padding: 0 15px;
    }

    .tagline-text .fio-red,
    .compact-tagline-text .compact-red {
        display: inline;
    }
}

.tagline-section {
    padding: 80px 0;
    background-color: rgba(249, 249, 249, 0.5);
    width: 100%;
}

.tagline-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.tagline-text {
    font-size: 1.68rem;
    line-height: 1.6;
    color: var(--dark-gray);
    margin-bottom: 30px;
}

.tagline-signature {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 30px;
}

.tagline-divider {
    width: 100px;
    height: 2px;
    background-color: var(--primary-red);
    margin: 0 auto;
    display: block;
    content: "";
}

/* Compact Tagline Section */
.compact-tagline-section {
    padding: 40px 0;
    background-color: rgba(249, 249, 249, 0.5);
    width: 100%;
    margin-top: -20px;
    margin-bottom: -20px;
}

.compact-tagline-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.compact-tagline-text {
    font-size: 1.68rem;
    line-height: 1.6;
    color: var(--dark-gray);
    margin: 0 auto 20px;
    text-align: center;
    width: 100%;
}

.compact-red {
    color: var(--primary-red);
    font-weight: 700;
}

.compact-signature {
    font-size: 1.68rem;
    font-weight: 700;
    color: var(--primary-red);
    margin: 20px auto;
    text-align: center;
    width: 100%;
}

.compact-divider {
    width: 100px;
    height: 2px;
    background-color: var(--primary-red);
    margin: 20px auto 0;
}




/* ===== TEAM SECTION ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.team-member {
    text-align: center;
}

.team-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 5px;
}

.team-member h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.team-title {
    color: var(--primary-red);
    font-weight: 500;
    margin-bottom: 15px;
    display: block;
}

.team-member p {
    color: var(--dark-gray);
    margin-bottom: 15px;
}

/* ===== AWARDS SECTION ===== */
/* Mobile responsiveness for awards section */
@media (max-width: 768px) {
    .award-pair {
        flex-direction: column;
    }
    
    .shared-logo-container {
        width: 100%;
        padding: 15px 0;
    }
    
    .shared-logo {
        width: 150px;
        height: 150px;
    }
}




/* ===== CHRONICLES HORIZONTAL SCROLLING ===== */
.news-carousel-container {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    max-width: 1200px; /* Set max width to control 3-article display */
    width: 100%;
}

/* Desktop Arrow Navigation */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.carousel-arrow:hover {
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.05);
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-arrow-left {
    left: -25px;
}

.carousel-arrow-right {
    right: -25px;
}

.carousel-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.5);
}

.carousel-arrow:disabled:hover {
    transform: translateY(-50%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Desktop: 3-article layout with arrows */
@media (min-width: 769px) {
    .news-carousel-container {
        padding: 0 60px; /* Add padding to accommodate arrows */
        max-width: 1200px;
    }
    
    .news-item {
        width: calc((100% - 120px) / 3 - 20px); /* 3 articles in container width */
        max-width: 360px;
        min-width: 320px;
    }
    
    .carousel-arrow-left {
        left: 10px;
    }
    
    .carousel-arrow-right {
        right: 10px;
    }
}

.news-carousel {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    scroll-behavior: smooth;
    padding: 20px 0 30px;
}

/* Desktop: no cursor change, mobile: grab cursor for touch */
@media (min-width: 769px) {
    .news-carousel {
        cursor: default;
    }
}

@media (max-width: 768px) {
    .news-carousel {
        cursor: grab;
    }
}

.news-carousel::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari */
}

.news-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 30px;
    padding: 10px 0;
    width: max-content;
}

.news-item {
    flex: 0 0 auto;
    width: calc((100vw - 200px) / 3 - 20px); /* 3 articles per viewport width */
    max-width: 380px;
    min-width: 300px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-date {
    color: var(--primary-red);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #222;
    line-height: 1.3;
}

.news-excerpt p,
.news-full p {
    color: #555;
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--primary-red);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0;
}

.read-more-btn:hover {
    text-decoration: underline;
}

/* For touch devices */
.news-carousel.grabbing {
    cursor: grabbing;
    scroll-snap-type: none;
}

/* Scroll indicators */
.scroll-indicators {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 8px;
}

.scroll-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ccc;
    transition: background-color 0.3s;
}

.scroll-indicator.active {
    background-color: var(--primary-red);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .news-item {
        width: 300px;
    }

    .news-carousel-container {
        margin: 0 -15px;
        padding: 0 15px;
    }

    /* Hide arrows on mobile - keep touch/drag functionality */
    .carousel-arrow {
        display: none !important;
    }
}

/* ===== CONNECT SECTION ===== */
#contact.section {
    padding: 80px 0;
    position: relative;
}

.contact-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-content-wrapper {
    display: flex;
    width: 100%;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    /* Remove any default gaps */
}

/* Map Column - Strict 60% width */
.map-column {
    width: 60%;
    flex: 0 0 60%;
    /* Prevent growing/shrinking */
    position: relative;
}

.map-wrapper {
    height: 500px;
    overflow: hidden;
    border-radius: 8px 0 0 8px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Contact Info Column - Strict 40% width */
.contact-column {
    width: 40%;
    flex: 0 0 40%;
    /* Prevent growing/shrinking */
    display: flex;
    justify-content: flex-end;
    position: relative;
    z-index: 2;
}

.contact-info {
    background-color: #f9f9f9;
    padding: 60px;
    width: calc(100% + 40px);
    margin-left: -20px;
    border-radius: 0 8px 8px 0;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
}

/* Contact Details Layout */
.contact-details-container {
    width: 100%;
}

.contact-detail-row {
    display: flex;
    margin-bottom: 15px;
}

.contact-detail-label {
    min-width: 80px;
    font-weight: 700;
    color: var(--dark-gray);
}

.contact-detail-value {
    flex: 1;
}

/* Social icons and send message */
.social-icons {
    margin-top: 25px;
}

.send-message-link {
    margin-top: 20px;
    display: inline-block;
}

/* Text Styles */
.contact-details-left p,
.contact-details-right p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    white-space: normal;
}

.contact-details-left p {
    font-weight: 700;
    color: var(--dark-gray);
}

/* Social Icons Container */
.social-icons {
    display: flex;
    align-items: center;
    /* Ensures vertical alignment */
    justify-content: flex-start;
    gap: 15px;
    margin-top: 30px;
}

/* Social Icon Links */
.social-icons a {
    display: inline-block;
    transition: all 0.3s ease;
}

/* Social Icon SVG Elements */
.social-icons a svg {
    transition: all 0.3s ease;
}

/* SVG Path Elements - Initial State */
.social-icons a svg path {
    fill: var(--dark-gray);
    transition: fill 0.3s ease;
}


/* Hover Effects */
.social-icons a:hover svg path {
    fill: var(--primary-red);
}

.social-icons a:hover {
    transform: translateY(-3px);
}

/* Individual Icon Sizing Adjustments */
.social-icons a[aria-label="LinkedIn"] svg {
    width: 34px;
    height: 34px;
}

.social-icons a[aria-label="Instagram"] svg {
    width: 36px;
    height: 36px;
}

/* Specific spacing between LinkedIn and Instagram */
.social-icons a[aria-label="LinkedIn"] {
    margin-right: 25px;
    /* Increased from 15px to 25px */
}

/* Keep normal spacing after Instagram */
.social-icons a[aria-label="Instagram"] {
    margin-right: 15px;
}

/* Facebook doesn't need right margin since it's last */
.social-icons a[aria-label="Facebook"] {
    margin-right: 0;
}

/* Facebook Icon Specific Adjustment */
.social-icons a[aria-label="Facebook"] {
    position: relative;
    top: 8px;
    /* Fine-tuned vertical alignment */
}

.social-icons a[aria-label="Facebook"] svg {
    width: 50px;
    /* Matches Instagram size */
    height: 50px;
    transform: scale(0.85);
    /* Slightly scales down the larger FB icon */
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .contact-info {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .contact-content-wrapper {
        flex-direction: column;
    }

    .map-column,
    .contact-column {
        width: 100%;
    }

    .contact-info {
        width: 100%;
        margin-left: 0;
        padding: 30px;
    }

    .contact-detail-label {
        min-width: 70px;
    }

    /* Social icons and send message */
    .social-icons {
        margin-top: 25px;
    }

    .send-message-link {
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .contact-info {
        padding: 25px;
    }

    .contact-details-left p,
    .contact-details-right p {
        font-size: 1rem;
    }
}

/* ===== FOOTER ===== */
footer {
    background-color: #222;
    color: #b3b3b3;
    padding: 40px 0;
    position: relative;
    margin-top: 60px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.copyright {
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    margin: 0;
    padding: 0;
}

.footer-logo img {
    height: 25px;
    width: auto;
    transition: all 0.3s ease;
}

.footer-logo img:hover {
    opacity: 0.8;
}

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #e80033;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.8s ease-out;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 90%;
    padding: 20px;
    text-align: center;
}

.preloader-logo {
    width: 25vw;
    max-width: none;
    min-width: none;
    height: auto;
    margin-bottom: 0.5rem;
    animation: logoEnlarge 2s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
    transform-origin: center;
    transform: scale(0.7);
    opacity: 0;
}

.preloader-text {
    color: white;
    font-family: 'Avenir', sans-serif;
    font-size: clamp(1.2rem, 2.1vw, 1.8rem);
    font-weight: 300;
    letter-spacing: 0.33px;
    margin: 0;
    line-height: 1.3;
    opacity: 0;
    animation: textFadeIn 0.8s ease-out 1.5s forwards;
    text-align: center;
    width: 100%;

}

.preloader.hide {
    opacity: 0;
    pointer-events: none;
}

.preloader.hidden {
    display: none !important;
}

/* Animations */
@keyframes logoEnlarge {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }

    60% {
        transform: scale(1.05);
        /* Slight overshoot */
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
        /* Removed width properties from animation */
    }
}

@keyframes subtleFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-8px) scale(1.02);
    }
}

@keyframes textFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 0.9;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .preloader-logo {
        width: 70vw;
        max-width: 250px;
        height: auto;
        opacity: 1;
        animation: none;
        transform: none !important;
        margin-bottom: 1.5rem;

    }




    .preloader-text {
        opacity: 0;
        animation: textFadeInMobile 0.6s ease-out 1s forwards;
        font-size: 1rem;
        text-align: center;
        width: 100%;
        padding: 0 10%;
        transform: none;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        letter-spacing: -0.5px;

    }


    .preloader-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100vh;
        padding: 0 5px;
        text-align: center;
        margin: 0;
    }
}



/* Animation adjustments */
@keyframes logoEnlargeMobile {
    0% {
        transform: scale(0.95);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes textFadeInMobile {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ===== GALLERY PAGE STYLES ===== */
.gallery-page {
    overflow-x: hidden;
}

.project-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    padding: 0 5%;
    align-items: center;
    background-color: #f9f9f9;
}

.project-meta {
    padding-right: 2rem;
}

.project-title {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.project-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.detail-label {
    display: block;
    font-size: 0.875rem;
    color: #777;
    margin-bottom: 0.25rem;
}

.detail-value {
    font-size: 1.25rem;
    color: #000;
}

.project-description {
    font-size: 1.25rem;
    line-height: 1.6;
    max-width: 80%;
}

.project-cover img {
    width: 100%;
    height: 80vh;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.horizontal-gallery {
    position: relative;
    height: 100vh;
    background-color: #fff;
}

.gallery-track {
    display: flex;
    height: 100%;
    align-items: center;
    padding-left: 5%;
}

.gallery-item {
    flex: 0 0 auto;
    position: relative;
    margin-right: 2rem;
    height: 80%;
    display: flex;
    align-items: center;
    cursor: grab;
}

.gallery-item:active {
    cursor: grabbing;
}

.gallery-item.full-width {
    width: 90vw;
}

.gallery-item.half-width {
    width: 45vw;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.02);
}

.image-caption {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.caption-number {
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 1rem;
}

.project-narrative {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    padding: 5%;
    align-items: center;
    background-color: #f9f9f9;
}

.narrative-content {
    padding-right: 3rem;
}

.narrative-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.narrative-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.narrative-image img {
    width: 100%;
    height: 80vh;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ===== AVENIR FONT SYSTEM ===== */
@font-face {
    font-family: 'Avenir';
    src: url('fonts/Avenir-Roman.woff2') format('woff2'),
        url('fonts/Avenir-Roman.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Avenir';
    src: url('fonts/Avenir-Medium.woff2') format('woff2'),
        url('fonts/Avenir-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Avenir';
    src: url('fonts/Avenir-Heavy.woff2') format('woff2'),
        url('fonts/Avenir-Heavy.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ===== ANIMATIONS ===== */
@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes scrollIndicator {
    0% {
        transform: translateY(-30px);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateY(60px);
        opacity: 0;
    }
}

.preloader-logo span:nth-child(1) {
    animation: slideIn 0.5s 0.1s forwards;
}

.preloader-logo span:nth-child(2) {
    animation: slideIn 0.5s 0.2s forwards;
}

.preloader-logo span:nth-child(3) {
    animation: slideIn 0.5s 0.3s forwards;
}

.preloader-logo span:nth-child(4) {
    animation: slideIn 0.5s 0.4s forwards;
}

.preloader-logo span:nth-child(5) {
    animation: slideIn 0.5s 0.5s forwards;
}

.preloader-logo span:nth-child(6) {
    animation: slideIn 0.5s 0.6s forwards;
}

.preloader-logo span:nth-child(7) {
    animation: slideIn 0.5s 0.7s forwards;
}

.preloader-logo span:nth-child(8) {
    animation: slideIn 0.5s 0.8s forwards;
}

/* ===== MOBILE RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 80px;
    }

    section[id] {
        scroll-margin-top: 80px;
    }

    .container {
        padding: 0 15px;
    }

    .section {
        padding: 60px 0;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    /* Mobile Header Layout */
    .header-container {
        flex-direction: row-reverse;
        justify-content: space-between;
        padding: 15px 0;
    }

    .logo {
        margin-right: 0;
        margin-left: auto;
        font-size: 1.8rem;
    }

    .nav-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-left: 0;
        margin-right: auto;
        padding: 8px;
    }

    .menu-bars {
        display: flex;
        flex-direction: column;
        gap: 4px;
        width: 20px;
    }

    .menu-bar {
        width: 100%;
        height: 2px;
        background-color: var(--primary-red);
        transition: all 0.3s ease;
    }

    .nav-toggle[aria-expanded="true"] .menu-bar:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] .menu-bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle[aria-expanded="true"] .menu-bar:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .menu-text {
        font-weight: 700;
        letter-spacing: 1px;
    }

    .nav-toggle:hover .menu-bars {
        transform: translateX(-3px);
    }

    /* Mobile Navigation */
    nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 45%;
        background: white;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
        z-index: 1000;
    }

    nav[data-visible="true"] {
        transform: translateY(0);
        opacity: 1;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 0;
        margin-bottom: 20px;
    }

    .dropdown-menu {
        position: static;
        left: auto;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        padding: 0;
        background: transparent;
        display: none;
        text-align: left;
    }

    nav ul li.has-dropdown:hover .dropdown-menu {
        transform: none;
    }

    .dropdown-menu li {
        padding: 0;
        margin-bottom: 10px;
    }

    .dropdown-menu li a {
        padding: 5px 0 5px 20px;
        font-size: 0.9rem;
        white-space: normal;
    }

    /* Mobile Gallery Dropdown - Always Show by Default */
    /* Multiple media queries to ensure it works on all mobile devices */
    @media (max-width: 768px), 
           (max-device-width: 768px), 
           screen and (max-width: 768px),
           only screen and (max-width: 768px) {
        /* Show dropdown by default on mobile */
        nav ul li.has-dropdown .dropdown-menu {
            display: block !important;
            position: static !important;
            opacity: 1 !important;
            visibility: visible !important;
            transform: none !important;
            background-color: transparent !important;
            border: none !important;
            border-radius: 0 !important;
            margin-top: 10px !important;
            padding: 10px 0 !important;
            box-shadow: none !important;
        }
        
        /* Style the dropdown items */
        nav ul li.has-dropdown .dropdown-menu li {
            display: block !important;
            margin: 0 !important;
            padding: 0 20px !important;
        }
        
        nav ul li.has-dropdown .dropdown-menu li a {
            display: inline-block !important;
            padding: 8px 0 !important;
            color: #333 !important;
            text-decoration: none !important;
            border-bottom: 1px solid #eee !important;
            font-size: 0.9rem !important;
            width: auto !important;
            max-width: fit-content !important;
        }
        
        nav ul li.has-dropdown .dropdown-menu li:last-child a {
            border-bottom: none !important;
        }
        
        /* Style the Gallery parent link */
        nav ul li.has-dropdown > a {
            font-weight: 400 !important;
            color: var(--dark-gray) !important;
        }
    }
    @media (max-width: 768px) {
    /* Style all navigation links to be dark gray */
    nav ul li a {
  font-weight: 400; 
        color: var(--dark-gray) !important;
    }
    
    /* Keep the active state red for visual indication */
    nav ul li a.active,
    nav ul li a.active-link {
        color: var(--primary-red) !important;
    }
}
    /* Additional iPhone-specific targeting */
    @media only screen and (max-device-width: 480px),
           only screen and (device-width: 375px),
           only screen and (device-width: 414px),
           only screen and (device-width: 390px),
           only screen and (device-width: 428px) {
        /* Force show dropdown on iPhone devices */
        nav ul li.has-dropdown .dropdown-menu {
            display: block !important;
            position: static !important;
            opacity: 1 !important;
            visibility: visible !important;
        }
    }
    

    /* Fallback - always show on mobile navigation when visible */
    nav[data-visible="true"] ul li.has-dropdown .dropdown-menu {
        display: block !important;
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        background-color: transparent !important;
        border: none !important;
        margin-top: 10px !important;
        padding: 10px 0 !important;
    }

    p {
        text-align: left;
        text-justify: unset;
    }

    /* About Section */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-image {
        height: 300px;
        order: -1;
    }

    .about-text {
        text-align: center;
    }

    .arch-btn {
        margin: 0 auto;
    }

    /* Projects Section */
    .checkerboard {
        grid-template-columns: 1fr;
    }

    .project-item {
        height: 300px;
    }

    .project-info {
        padding: 30px;
    }

    .project-info h3 {
        font-size: 1.5rem;
    }

    /* Team Section */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .team-member {
        max-width: 350px;
        margin: 0 auto;
    }

    .team-image {
        width: 80%;
        margin: 0 auto 20px;
        border-radius: 50%;
    }

    /* Tagline Sections */
    .tagline-section {
        padding: 60px 0;
    }

    .tagline-text,
    .tagline-signature {
        font-size: 1.32rem;
    }

    .tagline-divider {
        width: 80px;
    }

    .compact-tagline-section {
        padding: 30px 0;
        margin-top: -15px;
        margin-bottom: -15px;
    }

    .compact-tagline-text,
    .compact-signature {
        font-size: 1.32rem;
        margin-bottom: 15px;
    }

    .compact-divider {
        width: 80px;
        margin-top: 15px;
    }

    /* Contact Section */
    .contact-content-wrapper {
        flex-direction: column;
    }

    .map-column,
    .contact-column {
        width: 100%;
    }

    .map-wrapper {
        border-radius: 8px 8px 0 0;
        height: 350px;
    }

    .contact-info {
        margin-left: 0;
        width: 100%;
        border-radius: 0 0 8px 8px;
        padding: 40px 20px;
    }

    /* Footer */
    footer {
        padding: 30px 0;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .footer-logo,
    .copyright {
        width: 100%;
        text-align: center;
    }

    .footer-logo img {
        height: 25px;
    }

    /* Gallery Page */
    .project-hero,
    .project-narrative {
        grid-template-columns: 1fr;
    }

    .project-cover img,
    .narrative-image img {
        height: 50vh;
    }

    .gallery-item {
        height: 60%;
    }

    .project-description {
        max-width: 100%;
    }

    /* Left-align section headings */
    .about-text h2,
    .about-text .section-title {
        text-align: left;
        margin-left: 0;
        padding-left: 0;
    }

    /* Left-align buttons and make smaller */
    .about-grid .arch-btn {
        margin: 0;
        padding: 10px 20px;
        font-size: 0.9rem;
        display: inline-block;
        text-align: left;
    }

    /* Specific adjustments for "Who We Are" section */
    #about .about-text {
        text-align: left;
        padding-left: 0;
    }

    /* Specific adjustments for "What We Do" section */
    .section[style*="background-color: #f9f9f9"] .about-text {
        text-align: left;
        padding-right: 0;
    }

    /* Make buttons full width on mobile */
    .arch-btn {
        width: 100%;
        max-width: 200px;
        text-align: center;
        margin-left: 0 !important;
    }

    .social-icons {
        justify-content: flex-start;
        gap: 20px;
    }
}

@media (min-width: 768px) {
    .news-item {
        flex: 0 0 calc(50% - 15px);
    }

    .thumbnail {
        width: 80px;
        height: 50px;
    }
}

@media (min-width: 1024px) {
    .news-item {
        flex: 0 0 calc(33.333% - 20px);
    }

    .news-thumbnails {
        padding: 20px 0;
    }

    .thumbnails-track {
        gap: 15px;
    }

    .map-column {
        width: 80%;
    }

    .contact-column {
        width: 20%;
    }

    .contact-info {
        padding: 40px;
        width: calc(100% + 40px);
        margin-left: -20px;
    }
}



@media (max-width: 480px) {
    .news-item {
        flex: 0 0 90%;
    }

    .thumbnail {
        width: 50px;
        height: 35px;
    }
}

/* Disable text selection for chronicles section */
.news-carousel-container,
.news-carousel-container * {
    -webkit-user-select: none;
    /* Safari */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* IE10+/Edge */
    user-select: none;
    /* Standard */
}

/* Optional: Allow selection only on specific elements if needed */
.news-content h3,
.news-content p,
.news-date {
    cursor: default;
}

/* Prevent text selection when dragging */
.news-carousel.grabbing * {
    cursor: grabbing !important;
}


/* Move content under Gallery and Connect titles down */
#projects .section-title,
#contact .section-title {
    margin-bottom: 30px;
    /* Same as Chronicles section */
}

/* Adjust for mobile */
@media (max-width: 768px) {

    #projects .section-title,
    #contact .section-title {
        margin-bottom: 30px;
        /* Same as Chronicles section */
    }
}