/*
Theme Name: Fieldwork
Author: Caoimhe
Description: Custom theme for Fieldwork - Transforming Education, Empowering Communities
Version: 1.0
Text Domain: fieldwork
*/

:root {
    --primary: #4A8C8C;
    --primary-light: #6BA5A5;
    --secondary: #E89BA8;
    --accent: #C4FF61;
    --cream: #F5F3EF;
    --dark: #2C3E3E;
    --text: #3D5656;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 400;
    color: var(--text);
    background: var(--cream);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
}

.accent-bar {
    height: 8px;
    background: var(--accent);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
    from {
        transform: scaleX(0);
        transform-origin: left;
    }
    to {
        transform: scaleX(1);
    }
}

/* Main Navigation - fixed at top right */
.main-nav {
    position: fixed;
    top: 2rem;
    right: 4rem;
    z-index: 999;
    animation: fadeInDown 0.6s ease-out 0.3s backwards;
    display: flex;
}

.main-nav > div {
    display: flex;
}

.main-nav ul,
.main-nav .menu {
    display: flex;
    gap: 3rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-direction: row;
}

.main-nav li {
    margin: 0;
    padding: 0;
    display: inline-block;
}

/* Adjust for WordPress admin bar */
.admin-bar .main-nav {
    top: calc(2rem + 32px);
}

@media screen and (max-width: 782px) {
    .admin-bar .main-nav {
        top: calc(2rem + 46px);
    }
}

/* Mobile menu toggle - hidden by default on desktop */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 2rem;
    right: 2rem;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 26px;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 4px;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

.mobile-menu-toggle.active {
    background: var(--primary);
}

.mobile-menu-toggle.active span {
    background: white;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.admin-bar .mobile-menu-toggle {
    top: calc(2rem + 32px);
}

@media screen and (max-width: 782px) {
    .admin-bar .mobile-menu-toggle {
        top: calc(2rem + 46px);
    }
}

/* Header Styling */
.site-header {
    position: fixed;
    top: 8px;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background: transparent;
    animation: fadeInDown 0.6s ease-out 0.3s backwards;
    transition: all 0.3s ease;
}

/* Adjust for WordPress admin bar */
.admin-bar .site-header {
    top: 40px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 54px;
    }
}

/* Back button on secondary pages */
.back-to-home {
    position: absolute;
    left: 4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(74, 140, 140, 0.2);
}

.back-to-home:hover {
    background: var(--primary);
    color: white;
    transform: translateX(-3px);
    box-shadow: 0 6px 25px rgba(74, 140, 140, 0.3);
}

/* Scroll to top button - bottom left on homepage */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 50%;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.3s ease;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(74, 140, 140, 0.2);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.scroll-to-top:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(74, 140, 140, 0.3);
}

/* Navigation */
nav {
    display: flex;
    gap: 3rem;
}

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

nav a {
    font-size: 1rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

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

nav a:hover::after {
    width: 100%;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 4rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.hero-text h1 {
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600;
    font-size: 7rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 0.95;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.8s ease-out 0.5s backwards;
}

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

.hero-text .tagline {
    font-size: 1.3rem;
    color: var(--primary-light);
    margin-bottom: 3rem;
    font-weight: 400;
    animation: fadeInUp 0.8s ease-out 0.7s backwards;
}

.hero-visual {
    position: relative;
    animation: fadeIn 1s ease-out 0.9s backwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.logo-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: multiply;
}

.circle-1 {
    width: 70%;
    height: 70%;
    background: var(--primary);
    left: 0;
    top: 15%;
    animation: float 6s ease-in-out infinite;
}

.circle-2 {
    width: 70%;
    height: 70%;
    background: var(--secondary);
    right: 0;
    top: 15%;
    animation: float 6s ease-in-out infinite 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.logo-text {
    position: relative;
    z-index: 2;
    font-family: 'DM Sans', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--dark);
    font-weight: 700;
}

section {
    margin: 0 auto;
    /* Padding handled by inner wrappers */
}

section h2 {
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 3rem;
    font-weight: 600;
}

/* Sections with constrained width (no background color) */
#services {
    margin: 0;
    max-width: 100%;
}

.services-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 4rem;
}

#contact {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 4rem;
}
    max-width: 1400px;
    padding: 6rem 4rem;
}

/* Sections with full-width backgrounds */
#about {
    background: linear-gradient(135deg, var(--cream) 0%, #E8E6E1 100%);
    margin: 0;
    max-width: 100%;
}

.about-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 4rem;
}

.intro-text {
    font-size: 1.4rem;
    line-height: 1.9;
    color: var(--text);
    max-width: 900px;
    margin-bottom: 4rem;
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 4rem;
}

.mv-box {
    background: white;
    padding: 3rem;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.mv-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--primary);
}

.mv-box h3 {
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

@media (min-width: 1600px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.service-card {
    background: white;
    padding: 3rem;
    border-radius: 2px;
    position: relative;
    transition: all 0.4s ease;
    border-top: 3px solid transparent;
    text-decoration: none;
    color: var(--text);
    display: block;
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent);
    transition: width 0.4s ease;
}

.service-card:hover::before {
    width: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(74, 140, 140, 0.15);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600;
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card ul {
    list-style: none;
    margin-top: 1.5rem;
}

/* Hide bullets on homepage carousel only */
#services .carousel-container .service-card ul {
    display: none;
}

.service-card li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.8rem;
    color: var(--text);
}

.service-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

#resources {
    background: var(--primary);
    color: white;
    margin: 0;
    max-width: 100%;
    width: 100%;
}

.resources-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 4rem;
}

#resources h2 {
    color: white;
}

#clients {
    background: white;
    margin: 0;
    max-width: 100%;
}

.clients-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 4rem;
}

#testimonials {
    background: var(--primary);
    color: white;
    margin: 0;
    max-width: 100%;
    width: 100%;
}

.testimonials-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 4rem;
}

/* Resource grid removed - using carousel instead */

.resource-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    cursor: pointer;
    min-height: 250px;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.resource-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.resource-item h3 {
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600;
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 600;
}

.resource-item p {
    color: rgba(255, 255, 255, 0.9);
}

/* Contact Section - Simple Centered */
.contact-simple {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-simple h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.contact-simple .intro-text {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.contact-form-simple {
    text-align: left;
}

/* Contact Form 7 Styling */
.contact-form-simple .wpcf7 {
    margin: 0;
}

.contact-form-simple .wpcf7-form p {
    margin-bottom: 1rem;
}

.contact-form-simple .wpcf7-form label {
    display: block;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 1rem;
}

.contact-form-simple .wpcf7-form input[type="text"],
.contact-form-simple .wpcf7-form input[type="email"],
.contact-form-simple .wpcf7-form input[type="tel"],
.contact-form-simple .wpcf7-form input[type="url"],
.contact-form-simple .wpcf7-form select,
.contact-form-simple .wpcf7-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #E8E6E1;
    border-radius: 2px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    background: white;
}

.contact-form-simple .wpcf7-form input:focus,
.contact-form-simple .wpcf7-form select:focus,
.contact-form-simple .wpcf7-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.contact-form-simple .wpcf7-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form-simple .wpcf7-form input[type="submit"],
.contact-form-simple .wpcf7-form button[type="submit"] {
    background: var(--primary) !important;
    color: white !important;
    border: none !important;
    padding: 1rem 3rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border-radius: 2px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-family: 'DM Sans', sans-serif !important;
    margin-top: 0.5rem !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.contact-form-simple .wpcf7-form input[type="submit"]:hover,
.contact-form-simple .wpcf7-form button[type="submit"]:hover {
    background: var(--primary-light) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(74, 140, 140, 0.3) !important;
}

.contact-form-simple .wpcf7-response-output {
    margin: 1.5rem 0 0 0 !important;
    padding: 1rem 1.5rem !important;
    border-radius: 2px !important;
    border: none !important;
    font-size: 1rem !important;
}

.contact-form-simple .wpcf7-mail-sent-ok {
    background: #e8f5e9 !important;
    color: #2e7d32 !important;
    border-left: 4px solid #4caf50 !important;
}

.contact-form-simple .wpcf7-validation-errors,
.contact-form-simple .wpcf7-mail-sent-ng {
    background: #ffebee !important;
    color: #c62828 !important;
    border-left: 4px solid #f44336 !important;
}

.contact-form-simple .wpcf7-spinner {
    margin: 0 0 0 1rem !important;
}

.contact-form-simple .wpcf7-not-valid-tip {
    color: #c62828 !important;
    font-size: 0.875rem !important;
    margin-top: 0.25rem !important;
    display: block !important;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #E8E6E1;
    border-radius: 2px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

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

.submit-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 3rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'DM Sans', sans-serif;
}

.submit-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 140, 140, 0.3);
}

footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 4rem;
    text-align: center;
    margin-top: auto;
    width: 100%;
}

footer p {
    margin-bottom: 0.5rem;
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-text h1 {
        font-size: 5rem;
    }

    .site-header {
        padding: 1.5rem 2rem;
    }
    
    /* Show hamburger, hide desktop nav on tablets and mobile */
    .mobile-menu-toggle {
        display: flex !important;
        position: fixed !important;
        top: 1.5rem !important;
        right: 1.5rem !important;
        z-index: 1001 !important;
    }
    
    .main-nav {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 70% !important;
        max-width: 400px !important;
        height: 100vh !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(10px) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        transition: right 0.3s ease !important;
        z-index: 1000 !important;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1) !important;
        animation: none !important;
        opacity: 1 !important;
    }
    
    .main-nav ul,
    .main-nav .menu {
        flex-direction: column !important;
        gap: 2rem !important;
        align-items: center !important;
    }
    
    .main-nav.active {
        right: 0 !important;
    }
    
    .main-nav a {
        font-size: 1.5rem !important;
    }
    
    .back-to-home {
        left: 2rem;
    }
    
    nav {
        gap: 2rem;
    }
    
    /* Reduce text sizes on mobile */
    section h2 {
        font-size: 2rem;
    }
    
    section p,
    .service-card p,
    .resource-card p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .about-intro {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .service-card h3,
    .resource-card h3 {
        font-size: 1.3rem;
    }
    
    .mission-box,
    .vision-box {
        padding: 2rem;
    }
    
    .mission-box h3,
    .vision-box h3 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .mission-box p,
    .vision-box p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .mission-vision {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .carousel-nav {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.5rem !important;
    }
    
    .service-card,
    .resource-item {
        min-width: 75% !important;
        max-width: 75% !important;
        flex: 0 0 75% !important;
    }
    
    .client-logo {
        min-width: 100px !important;
        max-width: 100px !important;
        flex: 0 0 100px !important;
    }
    
    .testimonial {
        padding: 1.5rem !important;
        font-size: 0.95rem !important;
    }
    
    .testimonial p {
        font-size: 1rem !important;
    }
    
    /* Contact form mobile */
    .contact-simple {
        padding: 0 1rem;
    }
    
    /* About section mobile text - match other section sizes */
    .about-inner p,
    .intro-text {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }
    
    /* Mobile padding for all inner wrappers */
    .about-inner,
    .services-inner,
    .resources-inner,
    .clients-inner,
    .testimonials-inner {
        padding: 3rem 2rem !important;
    }
    
    #services h2 {
        font-size: 2rem !important;
    }
    
    #services p {
        font-size: 0.95rem !important;
    }
    
    /* Resources section mobile */
    #resources h2 {
        font-size: 2rem !important;
    }
    
    #resources p {
        font-size: 0.95rem !important;
    }
}

@media (max-width: 600px) {
    .hero-text h1 {
        font-size: 3.5rem;
    }

    .hero-text .tagline {
        font-size: 1rem;
    }
    
    /* Further reduce text on small mobile */
    section h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    section p,
    .service-card p,
    .resource-card p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .about-intro,
    .intro-text {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
    }
    
    .service-card h3,
    .resource-card h3 {
        font-size: 1.1rem;
    }
    
    .mission-box,
    .vision-box {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .mission-box h3,
    .vision-box h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .mission-box p,
    .vision-box p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    section {
        padding: 4rem 1.5rem;
    }
    
    .back-to-home {
        left: 1rem;
        padding: 0.6rem;
        width: 40px;
        height: 40px;
        justify-content: center;
    }
    
    .back-to-home span {
        display: none;
    }
    
    .scroll-to-top {
        bottom: 1rem !important;
        left: 1rem;
        width: 44px;
        height: 44px;
        justify-content: center;
    }
    
    .scroll-to-top span {
        display: none;
    }
    
    .mobile-menu-toggle {
        right: 1rem;
        top: 1rem;
    }

    section h2 {
        font-size: 2.5rem;
    }

    .services-grid,
    .resource-grid {
        grid-template-columns: 1fr;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Sections */
.custom-section {
    padding: 8rem 4rem;
}

.custom-section h2 {
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600;
    font-size: 4rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: inherit;
}

.custom-section-content {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.custom-section-content h3 {
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600;
    font-size: 2rem;
    margin: 2rem 0 1rem;
    color: inherit;
}

.custom-section-content p {
    margin-bottom: 1.5rem;
}

.custom-section-content ul,
.custom-section-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.custom-section-content li {
    margin-bottom: 0.5rem;
}

.custom-section-content img {
    max-width: 100%;
    height: auto;
    border-radius: 2px;
    margin: 2rem 0;
}

@media (max-width: 1024px) {
    .custom-section {
        padding: 6rem 2rem;
    }
    
    .custom-section h2 {
        font-size: 3rem;
    }
}

@media (max-width: 600px) {
    .custom-section {
        padding: 4rem 1.5rem;
    }
    
    .custom-section h2 {
        font-size: 2.5rem;
    }
}

/* Page Templates */
.page-header {
    margin-top: 74px; /* Account for fixed nav */
}

.admin-bar .page-header {
    margin-top: 106px;
}

.page-content {
    padding: 8rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.page-content h2 {
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600;
    font-size: 3rem;
    color: var(--primary);
    margin: 3rem 0 1.5rem;
}

.page-content h3 {
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600;
    font-size: 2rem;
    color: var(--primary);
    margin: 2rem 0 1rem;
}

.page-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 2px;
}

.page-content ul,
.page-content ol {
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.page-content li {
    margin-bottom: 0.5rem;
}

/* Cards page specific */
.cards-page .cards-grid {
    padding: 0;
}

@media (max-width: 1024px) {
    .page-content {
        padding: 6rem 2rem;
    }
    
    .page-header h1 {
        font-size: 3rem !important;
    }
}

@media (max-width: 600px) {
    .page-content {
        padding: 4rem 1.5rem;
    }
    
    .page-header {
        padding: 4rem 1.5rem !important;
    }
    
    .page-header h1 {
        font-size: 2.5rem !important;
    }
}

/* Team Section - Updated for Caoimhe's format */
.team-section {
    background: white;
}

.team-members {
    max-width: 900px;
    margin: 0 auto;
}

.team-member {
    margin-bottom: 5rem;
    padding-bottom: 5rem;
    border-bottom: 1px solid #E8E6E1;
}

.team-member:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Headline above name */
.team-headline {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Name and photo layout */
.team-member-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.team-info {
    flex: 1;
}

.team-info h3 {
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600;
    font-size: 2.5rem;
    color: var(--primary);
    margin: 0;
    font-weight: 600;
}

.team-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    margin-left: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

/* Bio paragraphs */
.team-bio {
    margin-bottom: 3rem;
    line-height: 1.8;
}

.team-bio p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: #2C3E50;
}

.team-bio strong {
    font-weight: 600;
    color: #2C3E50;
}

/* Timeline - simple list format */
.team-timeline {
    margin-bottom: 3rem;
}

.timeline-item {
    display: block;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.timeline-year {
    font-weight: 600;
    color: var(--primary);
    display: inline;
}

.timeline-desc {
    display: inline;
    color: #2C3E50;
}

/* Areas of Work section */
.team-areas {
    margin-top: 3rem;
}

.team-areas h4 {
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600;
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0 0 1.5rem;
    font-weight: 600;
}

.areas-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.areas-list li {
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 1.05rem;
}

.areas-list strong {
    color: var(--primary);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
    .team-photo {
        width: 150px;
        height: 150px;
        margin-left: 2rem;
    }
    
    .team-info h3 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .team-member {
        margin-bottom: 4rem;
        padding-bottom: 4rem;
    }
    
    .team-member-header {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .team-photo {
        width: 140px;
        height: 140px;
        margin: 0 0 1.5rem 0;
    }
    
    .team-headline {
        text-align: center;
    }
    
    .team-info h3 {
        font-size: 1.8rem;
    }
    
    .team-bio {
        text-align: left;
    }
    
    .team-bio p,
    .timeline-item,
    .areas-list li {
        font-size: 0.95rem;
    }
}

@media (max-width: 600px) {
    .team-info h3 {
        font-size: 1.6rem;
    }
    
    .team-photo {
        width: 120px;
        height: 120px;
    }
    
    .team-bio p,
    .timeline-item,
    .areas-list li {
        font-size: 0.9rem;
    }
}

/* Team Archive (Index) Page */
.team-archive {
    padding: 4rem 4rem 6rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.team-card {
    background: white;
    border-radius: 2px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.team-card-photo {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

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

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

.team-card-headline {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.team-card h2 {
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600;
    font-size: 1.8rem;
    color: var(--primary);
    margin: 0 0 1rem;
}

.team-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #2C3E50;
    margin-bottom: 1.5rem;
    flex: 1;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Single Team Member Page - Redesigned */
.single-team-member {
    background: white;
}

.team-member-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.single-team-member .team-headline {
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.single-team-member .team-member-header {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.single-team-member .team-info {
    order: 1;
}

.single-team-member h1 {
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600;
    font-size: 3rem;
    color: #2C3E50;
    margin: 0;
    font-weight: 400;
    line-height: 1.2;
}

.single-team-member .team-photo {
    order: 2;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.single-team-member .team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-team-member .team-bio {
    margin-bottom: 5rem;
}

.single-team-member .team-bio > p:first-child {
    font-size: 1.3rem;
    line-height: 1.7;
    color: #2C3E50;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.single-team-member .team-bio p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #2C3E50;
    margin-bottom: 1.5rem;
}

.single-team-member .team-bio strong {
    font-weight: 600;
    color: var(--primary);
}

.single-team-member .team-timeline {
    margin-bottom: 5rem;
    padding-left: 0;
    position: relative;
}

.single-team-member .timeline-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    padding-left: 1.5rem;
}

/* Connecting line */
.single-team-member .timeline-item::after {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    bottom: -2.5rem;
    width: 2px;
    background: var(--accent);
}

.single-team-member .timeline-item:last-child::after {
    display: none;
}

/* Timeline dots */
.single-team-member .timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 6px;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 3px white, 0 0 0 5px var(--accent);
    z-index: 1;
}

.single-team-member .timeline-year {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
    padding-top: 2px;
}

.single-team-member .timeline-desc {
    display: block;
}

.single-team-member .timeline-title {
    font-size: 1rem;
    color: #2C3E50;
    line-height: 1.7;
    display: block;
    font-weight: 500;
}

.single-team-member .timeline-subtitle {
    font-size: 0.95rem;
    color: #777;
    line-height: 1.6;
    display: block;
    font-style: italic;
    margin-top: 0.3rem;
}

.single-team-member .team-areas {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 2px solid #E8E6E1;
}

.single-team-member .team-areas h2 {
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600;
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0 0 1.5rem;
    font-weight: 600;
}

.single-team-member .areas-list {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 0 0 3rem;
}

.single-team-member .areas-list li {
    margin-bottom: 0.8rem;
    line-height: 1.7;
    font-size: 1.05rem;
    padding-left: 0.5rem;
}

.single-team-member .areas-list li::marker {
    color: var(--accent);
}

.single-team-member .areas-list strong {
    color: var(--primary);
    font-weight: 700;
}

/* Recent Projects section */
.single-team-member .team-projects {
    margin-top: 3rem;
}

.single-team-member .team-projects h2 {
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600;
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0 0 1.5rem;
    font-weight: 600;
}

.single-team-member .projects-list {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 0;
}

.single-team-member .projects-list li {
    margin-bottom: 0.8rem;
    line-height: 1.7;
    font-size: 1.05rem;
    padding-left: 0.5rem;
}

.single-team-member .projects-list li::marker {
    color: var(--accent);
}

.back-to-team {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 2px solid #E8E6E1;
    text-align: center;
}

.back-to-team a {
    display: inline-block;
    color: white;
    background: var(--primary);
    padding: 0.8rem 2rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.back-to-team a:hover {
    background: #5a9c9c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 140, 140, 0.3);
}

@media (max-width: 1024px) {
    .team-member-content {
        padding: 5rem 2rem;
    }
    
    .single-team-member .team-member-header {
        gap: 3rem;
        grid-template-columns: 1fr 160px;
    }
    
    .single-team-member h1 {
        font-size: 2.5rem;
    }
    
    .single-team-member .team-photo {
        width: 160px;
        height: 160px;
    }
    
    .single-team-member .team-bio > p:first-child {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .team-member-content {
        padding: 4rem 1.5rem;
    }
    
    .single-team-member .team-member-header {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .single-team-member .team-info {
        order: 2;
    }
    
    .single-team-member .team-photo {
        order: 1;
        margin: 0 auto;
        width: 150px;
        height: 150px;
    }
    
    .single-team-member .team-headline {
        font-size: 0.8rem;
        letter-spacing: 1.2px;
    }
    
    .single-team-member h1 {
        font-size: 2rem;
    }
    
    .single-team-member .team-bio {
        text-align: left;
    }
    
    .single-team-member .team-bio > p:first-child {
        font-size: 1.1rem;
    }
    
    .single-team-member .team-bio p {
        font-size: 1rem;
    }
    
    .single-team-member .timeline-item {
        grid-template-columns: 90px 1fr;
        gap: 1.5rem;
    }
    
    .single-team-member .timeline-year {
        font-size: 0.85rem;
    }
    
    .single-team-member .timeline-title {
        font-size: 0.95rem;
    }
    
    .single-team-member .timeline-subtitle {
        font-size: 0.9rem;
    }
}

@media (max-width: 600px) {
    .team-member-content {
        padding: 3rem 1.5rem;
    }
    
    .single-team-member h1 {
        font-size: 1.6rem;
    }
    
    .single-team-member .team-photo {
        width: 130px;
        height: 130px;
    }
    
    .single-team-member .timeline-item {
        grid-template-columns: 80px 1fr;
        gap: 1rem;
        padding-left: 1rem;
    }
    
    .single-team-member .team-bio > p:first-child {
        font-size: 1.05rem;
    }
    
    .single-team-member .team-bio p,
    .single-team-member .timeline-desc,
    .single-team-member .areas-list li {
        font-size: 0.95rem;
    }
}

/* Team Contact Section */
.team-contact-section {
    margin: 5rem 0 3rem;
    text-align: center;
}

.contact-button {
    display: inline-block;
    background: var(--primary);
    color: white !important;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 2px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-button:hover {
    background: #5a9c9c;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 140, 140, 0.3);
}
        font-size: 0.95rem;
    }
}

/* Services & Resources Full Pages */
.services-full-page,
.resources-full-page {
    padding: 6rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

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

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

@media (max-width: 768px) {
    .services-grid,
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .services-full-page,
    .resources-full-page {
        padding: 4rem 2rem;
    }
    
    .service-card-full,
    .resource-card-full {
        padding: 2rem;
    }
}

.service-card-full,
.resource-card-full {
    background: white;
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card-full:hover,
.resource-card-full:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
}

.service-card-full .service-icon,
.resource-card-full .resource-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-card-full h3,
.resource-card-full h3 {
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600;
    font-size: 1.8rem;
    color: var(--primary);
    margin: 0 0 1.5rem;
}

.service-card-full .service-content ul,
.resource-card-full .resource-content ul {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.service-card-full .service-content li,
.resource-card-full .resource-content li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.8rem;
    color: var(--text);
}

.service-card-full .service-content li::before,
.resource-card-full .resource-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.resource-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.resource-link:hover {
    color: var(--primary-light);
}

/* Homepage Carousels */
#services .service-grid,
#resources .resource-grid {
    position: relative;
    overflow: hidden;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease;
    gap: 2rem;
}

.carousel-container .service-card,
.carousel-container .resource-card {
    flex: 0 0 calc(33.333% - 1.333rem);
    min-width: calc(33.333% - 1.333rem);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-nav:hover {
    background: var(--primary-light);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: 0;
}

.carousel-nav.next {
    right: 0;
}

.carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

@media (max-width: 1024px) {
    .carousel-container .service-card,
    .carousel-container .resource-card {
        flex: 0 0 calc(50% - 1rem);
        min-width: calc(50% - 1rem);
    }
    
    .services-grid,
    .resources-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .carousel-container .service-card,
    .carousel-container .resource-card {
        flex: 0 0 100%;
        min-width: 100%;
    }
    
    .services-grid,
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .services-full-page,
    .resources-full-page {
        padding: 4rem 2rem;
    }
}

/* Clients & Testimonials Mobile */
@media (max-width: 768px) {
    #clients {
        padding: 4rem 2rem !important;
    }
    
    .client-logos {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem !important;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 600px) {
    .client-logos {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
    
    .testimonial {
        padding: 1.5rem !important;
    }
    
    .testimonial p {
        font-size: 0.95rem !important;
    }
}

/* Logo hover effect */
.client-logo:hover img {
    filter: grayscale(0%) !important;
    opacity: 1 !important;
}

.client-logo a {
    transition: all 0.3s ease;
}

.client-logo:hover p {
    color: var(--primary);
}
