
/* ==========================================
   PULLICHIRA CHURCH — ABOUT PAGE
   Elegant Marian Heritage Theme
========================================== */

:root {
    --about-navy: #12314a;
    --about-blue: #214e6b;
    --about-gold: #c7a04b;
    --about-gold-light: #e9d7a5;
    --about-ivory: #fffdf8;
    --about-cream: #f6f1e7;
    --about-text: #435363;
    --about-muted: #687787;
    --about-shadow: 0 14px 36px rgba(18, 49, 74, 0.11);
}

/* ==========================================
   GLOBAL PAGE STYLES
========================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--about-ivory);
    color: var(--about-text);
}

.about-page {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

.about-page section {
    padding: 85px 7%;
}

.about-page img {
    max-width: 100%;
}

.about-page .section-title {
    position: relative;
    margin: 0 0 45px;
    padding-bottom: 20px;
    color: var(--about-navy);
    text-align: center;
    font-size: clamp(28px, 3.5vw, 42px);
    line-height: 1.35;
}

.about-page .section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 75px;
    height: 3px;
    transform: translateX(-50%);
    border-radius: 5px;
    background: linear-gradient(
        90deg,
        var(--about-gold),
        var(--about-gold-light)
    );
}

/* ==========================================
   ABOUT HERO BANNER
========================================== */

.about-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 420px;
    height: 58vh;
    padding: 30px 6%;
    overflow: hidden;
    isolation: isolate;
    text-align: center;
    color: white;

    background:
        linear-gradient(
            110deg,
            rgba(9, 29, 46, 0.84),
            rgba(15, 42, 62, 0.48)
        ),
        url("../pullichirachurchimages/abouthome.jpeg")
        center / cover no-repeat;
}

.about-hero::after {
    display: none;
}

.about-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 850px;
}

.about-hero-content h1 {
    margin: 0 0 22px;
    font-size: clamp(36px, 5.5vw, 64px);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.8px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.about-hero-content p {
    max-width: 720px;
    margin: 0 auto;
    color: #fffaf0;
    font-size: clamp(16px, 2vw, 21px);
    line-height: 1.9;
    font-weight: 300;
}

/* ==========================================
   CHURCH HISTORY
========================================== */

.about {
    display: grid;
    grid-template-columns:
        minmax(0, 0.95fr)
        minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(30px, 4vw, 55px);
    width: 100%;
    max-width: 1250px;
    min-width: 0;
    margin: 0 auto;
}

.about-images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 14px;

    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 14px;

    overflow: hidden;
    
    border-radius: 18px;
    
}

/* Preserve the complete photograph */

.about-images img {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    margin: 0;

    object-fit: contain;
    object-position: center;

    border-radius: 10px;
    background: var(--about-ivory);
    transition: filter 0.3s ease;
}.about-images img:hover {
    filter: brightness(1.04);
}

/* Church history text */

.about-text {
    width: 100%;
    min-width: 0;
}

.about-text h2,
.about-text h3 {
    color: var(--about-navy);
    line-height: 1.5;
}

.about-text p {
    margin: 0 0 22px;
    color: var(--about-text);
    font-size: 15px;
    line-height: 2;
    text-align: left;
    overflow-wrap: anywhere;
}

.about-text p:first-child::first-letter {
    color: var(--about-gold);
    font-size: 34px;
    font-weight: 600;
}

/* ==========================================
   HISTORICAL TIMELINE
========================================== */

.timeline {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 8px 0 8px 38px;
    border-left: 3px solid var(--about-gold);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding: 25px 28px;
    border: 1px solid rgba(199, 160, 75, 0.28);
    border-radius: 14px;
    background: white;
    box-shadow: 0 8px 25px rgba(18, 49, 74, 0.055);
    transition: box-shadow 0.3s ease;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item:hover {
    box-shadow: var(--about-shadow);
}

.timeline-item::before {
    content: "";
    position: absolute;
    top: 30px;
    left: -48px;
    width: 15px;
    height: 15px;
    border: 4px solid var(--about-gold-light);
    border-radius: 50%;
    background: var(--about-navy);
    box-shadow: 0 0 0 4px var(--about-ivory);
}

.timeline-item h3 {
    margin: 0 0 12px;
    color: var(--about-navy);
    font-size: 20px;
    line-height: 1.5;
}

.timeline-item p {
    margin: 0;
    color: var(--about-muted);
    font-size: 14px;
    line-height: 1.9;
}

/* ==========================================
   HISTORICAL PHOTO GALLERY
========================================== */

.history-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 20px;

    width: 100%;
    max-width: 1250px;
    min-width: 0;
    margin: 0 auto;
}

.history-gallery img {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 5px;

    object-fit: contain;
    object-position: center;

    border: 1px solid rgba(199, 160, 75, 0.55);
    border-radius: 14px;
    background: var(--about-ivory);
    box-shadow: 0 8px 22px rgba(18, 49, 74, 0.09);
    transition: box-shadow 0.3s ease;
}

.history-gallery img:hover {
    box-shadow: 0 14px 30px rgba(18, 49, 74, 0.15);
}

/* ==========================================
   BACK TO HOMEPAGE
========================================== */

.back-home {
    margin: 30px 0 70px;
    padding: 0 20px;
    text-align: center;
}

.back-home a,
.about-page .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: 14px 30px;

    border: 1px solid var(--about-gold);
    border-radius: 50px;
    background: var(--about-gold);
    color: var(--about-navy);

    font-size: 14px;
    font-weight: 600;
    text-decoration: none;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;
}

.back-home a:hover,
.about-page .btn:hover {
    border-color: var(--about-navy);
    background: var(--about-navy);
    color: white;
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 900px) {
    .about-page section {
        padding: 65px 5%;
    }

    .about {
        grid-template-columns: minmax(0, 1fr);
        gap: 35px;
    }

    .about-images {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding: 12px;
    }

    .about-hero {
        height: 48vh;
        min-height: 360px;
    }

    .history-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 600px) {
    .about-page section {
        padding: 52px 5%;
    }

    .about-hero {
        height: auto;
        min-height: 330px;
        padding: 60px 7%;
        background-position: center;
    }

    .about-hero::after {
        inset: 10px;
    }

    .about-hero-content h1 {
        margin-bottom: 15px;
        font-size: 35px;
    }

    .about-hero-content p {
        font-size: 15px;
        line-height: 1.8;
    }

    .about-page .section-title {
        margin-bottom: 35px;
    }

    /* Stack both images on mobile */

    .about-images {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        padding: 10px;
        border-radius: 14px;
    }

    .about-images img {
        width: 100%;
        height: auto;
    }

    .about-text p {
        font-size: 14px;
        line-height: 1.95;
    }

    .timeline {
        padding-left: 25px;
    }

    .timeline-item {
        padding: 21px 19px;
        margin-bottom: 25px;
    }

    .timeline-item::before {
        left: -35px;
        width: 13px;
        height: 13px;
    }

    .timeline-item h3 {
        font-size: 18px;
    }

    .history-gallery {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .back-home {
        margin: 15px 0 45px;
    }
}

/* ==========================================
   ACCESSIBILITY
========================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
