/* Sai Katha Page Specific Spiritual Layout Styles */

.header {
    width: 100%;
    height: 60vh;
    background-image: linear-gradient(rgba(30, 11, 7, 0.45), rgba(30, 11, 7, 0.8)), url("../images/IMG_8462-1536x1024.jpg");
    background-repeat: no-repeat;
    background-position: center 30%;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 3px solid var(--accent-gold);
}

.section-below-header {
    padding: 30px 0;
    background-color: var(--primary-color);
    color: white;
    border-bottom: 3px solid var(--accent-gold);
}

.section-below-header>.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

.section-below-header .container .items {
    text-align: center;
    flex: 1;
    min-width: 150px;
    padding: 10px;
    border-right: 1px dashed rgba(254, 251, 248, 0.2);
}

.section-below-header .container .items:last-child {
    border-right: none;
}

.section-below-header .container .items .img {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-gold-light);
    margin-bottom: 5px;
}

.section-below-header .container .items p {
    margin: 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #E6D5C3;
}

/* Counters Page Header */
.counter {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.counter .flex {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.counter .flex .box {
    flex: 1;
    min-width: 280px;
}

.counter .flex:first-child .box {
    background-color: transparent;
    text-align: left;
    margin: 0;
}

.counter .flex:first-child .box:first-child {
    flex: 1;
}

.counter .flex:first-child .box:last-child {
    flex: 2;
    display: flex;
    align-items: center;
}

.counter .flex:first-child .box h2 {
    color: var(--primary-color);
    margin: 0;
    font-family: var(--font-heading);
    font-size: 56px;
    line-height: 1.1;
}

.counter .flex:first-child .box h2 span {
    color: var(--divine-vermillion);
    font-size: 50px;
}

.counter .flex:first-child .box p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
}

/* Counter Stat Cards styled as brass plaques */
.counter .flex:nth-child(2) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 0;
}

.counter .flex:nth-child(2) .box {
    padding: 40px 30px;
    background-color: white;
    color: var(--text-dark);
    text-align: center;
    border-radius: 16px;
    border: 2px solid var(--accent-gold);
    box-shadow: var(--shadow-divine);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.counter .flex:nth-child(2) .box::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid var(--parchment-border);
    border-radius: inherit;
    pointer-events: none;
}

.counter .flex:nth-child(2) .box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-divine-hover);
    border-color: var(--divine-vermillion);
}

.counter .flex .box div.counter2 {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.counter .flex .box p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 750;
}

/* FAQ Accordion Section */
.faq {
    padding: 100px 0;
    background-color: #FAF4EB;
    border-top: 4px solid var(--accent-gold);
    border-bottom: 4px solid var(--accent-gold);
}

.faq h2 {
    font-family: var(--font-heading);
    font-size: 44px;
    color: var(--primary-color);
    text-align: center;
    margin-top: 0;
    margin-bottom: 15px;
}

.faq p {
    text-align: center;
    font-size: 16px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.faq .flex {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.faq .flex:last-child {
    margin-bottom: 0;
}

/* Scripture Parchment Scroll Sheet inside FAQ */
.faq .box {
    flex: 1;
    min-width: 300px;
    background: var(--parchment-bg);
    padding: 35px 30px;
    border-radius: 12px;
    box-shadow: inset 0 0 40px rgba(78, 26, 15, 0.05), var(--shadow-divine);
    border: 2px dashed var(--parchment-border);
}

.faq .box .question {
    font-family: var(--font-heading);
    background-color: var(--primary-color);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 750;
    font-size: 16px;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
    border: 1px solid var(--accent-gold);
}

.faq .box p {
    text-align: left;
    line-height: 1.7;
    color: var(--text-dark);
    font-size: 14.5px;
    padding: 0 10px;
    margin: 0;
}

/* Join Us WhatsApp section */
.join-us {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.join-us .flex {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
    align-items: center;
}

.join-us .flex .box {
    flex: 1;
    min-width: 300px;
}

.join-us .box .video {
    width: 100%;
    height: 380px; 
    overflow: hidden;
    border-radius: 50% 50% 20px 20px / 25% 25% 20px 20px; /* Arch frame */
    position: relative;
    border: 3px solid var(--accent-gold);
    box-shadow: var(--shadow-divine-hover);
}

.join-us .box .video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.join-us .box .video:hover img {
    transform: scale(1.03);
}

.join-us .box .video svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    fill: white;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.5));
    transition: var(--transition-smooth);
    pointer-events: none;
    z-index: 2;
}

.join-us .box .video:hover svg {
    fill: var(--accent-gold-light);
    transform: translate(-50%, -50%) scale(1.1);
}

.join-us h2 {
    font-family: var(--font-heading);
    font-size: 44px;
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.join-us p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 35px;
}

.join-us .flex-img {
    display: flex;
    gap: 20px;
}

.join-us .flex-img .img1 img,
.join-us .flex-img .img2 img {
    border-radius: 8px;
    box-shadow: var(--shadow-divine);
    transition: var(--transition-smooth);
    border: 2px solid var(--accent-gold);
}

.join-us .flex-img .img1:hover img,
.join-us .flex-img .img2:hover img {
    transform: translateY(-5px);
    border-color: var(--divine-vermillion);
    box-shadow: var(--shadow-divine-hover);
}

/* Responsive adjust */
@media (max-width: 768px) {
    .header {
        height: 40vh;
    }
    
    .counter, .faq, .join-us {
        padding: 60px 0;
    }
    
    .counter .flex:first-child .box h2 {
        font-size: 38px;
    }
    
    .counter .flex:first-child .box h2 span {
        font-size: 34px;
    }
    
    .section-below-header .container .items {
        flex: 1 1 40%;
    }
    
    .faq .flex {
        gap: 20px;
        margin-bottom: 20px;
    }
    
    .faq .box {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .section-below-header>.container {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: auto;
        margin-right: 65px;
        margin-left: 15px;
    }
    
    .section-below-header .container .items {
        display: flex;
        align-items: center;
        flex-direction: row;
        gap: 15px;
        padding: 12px 20px;
        border-radius: 50px;
        background: rgba(255, 255, 255, 0.04);
        border: 2px solid rgba(255, 255, 255, 0.08);
        text-align: left;
    }
    
    .section-below-header .container .items .img {
        margin: 0;
        width: 44px;
        height: 44px;
        font-size: 13px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid var(--accent-gold);
        border-radius: 50%;
        background: var(--parchment-bg);
        color: var(--primary-color);
    }
}