/*
Theme Name: Divi Child Theme
Theme URI: https://divireadythemes.com/
Description: Divi Child Theme
Author: Divi Ready Themes
Author URI: https://divireadythemes.com/
Template: Divi
Version: Updated for Divi 3+
*/



/*------------------------------------------------*/
/*-------------------[GENERAL]--------------------*/
/*------------------------------------------------*/



/*------------------------------------------------*/
/*-----------------[HEADER-MENU]------------------*/
/*------------------------------------------------*/


/*------------------------------------------------*/
/*------------------[HOMEPAGE]--------------------*/
/*------------------------------------------------*/


/*------------------------------------------------*/
/*------------------[SUBPAGES]--------------------*/
/*------------------------------------------------*/


/*------------------------------------------------*/
/*-------------------[Footer]---------------------*/
/*------------------------------------------------*/


/*------------------------------------------------*/
/*--------------------[RWD]-----------------------*/
/*------------------------------------------------*/


/*------------------------------------------------*/
/*------------------------------------------------*/
/*------------------------------------------------*/
/*--[ADD TUTORIAL CUSTOMIZATION BELOW THIS LINE]--*/
/*------------------------------------------------*/
/*------------------------------------------------*/
/*------------------------------------------------*/


/* 
   Riverside Korean Seventh-day Adventist Church Global Stylesheet
   Designed to mimic premium, modern Divi theme builder layouts.
   Linter-safe edition: Compatible with older WordPress CSS editors.
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: #222c24;
    background-color: #ffffff;
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Noto Sans KR', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: #222c24;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.section-padding {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 50px 0;
    }
}

/* Colors & Backgrounds */
.bg-light { background-color: #F8FAF8; }
.bg-white { background-color: #ffffff; }
.bg-primary { background-color: #2E6F40; color: #ffffff; }
.bg-secondary { background-color: #4F647E; color: #ffffff; }
.bg-dark { background-color: #1b281f; color: #ffffff; }

.text-primary { color: #2E6F40; }
.text-secondary { color: #4F647E; }
.text-accent { color: #EAA14E; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: 'Montserrat', 'Noto Sans KR', sans-serif;
    font-weight: 700;
    font-size: 14px;
    border-radius: 30px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.btn-primary {
    background-color: #2E6F40;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #1e4d2b;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(46, 111, 64, 0.3);
}

.btn-secondary {
    background-color: #4F647E;
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #37485c;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(79, 100, 126, 0.3);
}

.btn-accent {
    background-color: #EAA14E;
    color: #222c24;
}

.btn-accent:hover {
    background-color: #d18d3d;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(234, 161, 78, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: #2E6F40;
    color: #2E6F40;
}

.btn-outline:hover {
    background-color: #2E6F40;
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-outline-white {
    background-color: transparent;
    border-color: #ffffff;
    color: #ffffff;
    box-shadow: none;
}

.btn-outline-white:hover {
    background-color: #ffffff;
    color: #2E6F40;
    transform: translateY(-2px);
}

/* Header & Navigation */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glassmorphism Header state on scroll */
header.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled .nav-container {
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: #2E6F40;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
}

.logo-text h1 {
    font-size: 18px;
    font-weight: 700;
    color: #2E6F40;
    line-height: 1.1;
}

.logo-text p {
    font-size: 11px;
    color: #5e6b60;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Desktop Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 10px;
}

.nav-item a {
    font-family: 'Montserrat', 'Noto Sans KR', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #222c24;
    padding: 8px 12px;
    border-radius: 4px;
    position: relative;
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #2E6F40;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.nav-item a:hover {
    color: #2E6F40;
}

.nav-item a:hover::after {
    width: 80%;
}

.nav-item.active a {
    color: #2E6F40;
}

.nav-item.active a::after {
    width: 80%;
    height: 3px;
}

/* Mobile Toggle Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    background: transparent;
    border: none;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2.5px;
    background-color: #222c24;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile Responsive Menu */
@media (max-width: 992px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: #ffffff;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        justify-content: flex-start;
        padding: 100px 30px 40px;
        gap: 25px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-menu.active {
        right: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Page Hero Header (Divi-style Hero) */
.page-hero {
    position: relative;
    padding: 120px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(46, 111, 64, 0.8) 0%, rgba(27, 40, 31, 0.9) 100%);
    z-index: 1;
}

.page-hero.blue-hero::before {
    background: linear-gradient(135deg, rgba(79, 100, 126, 0.8) 0%, rgba(33, 52, 74, 0.9) 100%);
}

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

.page-hero h1 {
    color: #ffffff;
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.page-hero p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 20px;
}

.page-hero .divider {
    width: 60px;
    height: 3px;
    background-color: #EAA14E;
    margin: 0 auto 25px;
}

@media (max-width: 768px) {
    .page-hero {
        padding: 80px 0;
    }
    .page-hero h1 {
        font-size: 32px;
    }
    .page-hero p {
        font-size: 16px;
    }
}

/* Divi-style Section Title Header */
.section-header {
    max-width: 700px;
    margin: 0 auto 50px;
    text-align: center;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #EAA14E;
    margin: 10px auto 0;
}

.section-header p {
    font-size: 16px;
    color: #5e6b60;
}

/* Divi-style Card components (Linter-friendly Flexbox fallback) */
.card-grid {
    display: flex;
    flex-wrap: wrap;
    margin: -15px;
}

.card-grid > * {
    flex: 1 1 300px;
    margin: 15px;
}

.card {
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2eae4;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: #448f58;
}

.card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #222c24;
}

.card-desc {
    font-size: 14px;
    color: #5e6b60;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e2eae4;
    padding-top: 16px;
    margin-top: auto;
}

/* Grid & Column Layouts (Linter-friendly Flexbox fallback) */
.grid-2 {
    display: flex;
    flex-wrap: wrap;
    margin: -20px;
}

.grid-2 > * {
    flex: 1 1 45%;
    margin: 20px;
    min-width: 300px;
}

.grid-3 {
    display: flex;
    flex-wrap: wrap;
    margin: -15px;
}

.grid-3 > * {
    flex: 1 1 30%;
    margin: 15px;
    min-width: 280px;
}

@media (max-width: 992px) {
    .grid-2 > *, .grid-3 > * {
        flex: 1 1 100%;
        margin: 15px 0;
    }
}

/* Footer Section */
footer {
    background-color: #1b281f;
    color: #ffffff;
    padding: 70px 0 30px;
    font-size: 14px;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    margin: -25px;
    margin-bottom: 25px;
}

.footer-grid > :nth-child(1) {
    flex: 2 1 40%;
    margin: 25px;
    min-width: 300px;
}

.footer-grid > :nth-child(2), .footer-grid > :nth-child(3) {
    flex: 1.5 1 25%;
    margin: 25px;
    min-width: 200px;
}

@media (max-width: 992px) {
    .footer-grid > * {
        flex: 1 1 100% !important;
        margin: 15px 0 !important;
    }
}

.footer-col h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
}

.footer-col h3::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: #EAA14E;
    margin-top: 8px;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-col ul li a:hover {
    color: #EAA14E;
    padding-left: 5px;
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon:hover {
    background-color: #2E6F40;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Forms (Contact Us) */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #222c24;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2eae4;
    border-radius: 8px;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 14px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #F8FAF8;
}

.form-control:focus {
    border-color: #2E6F40;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(46, 111, 64, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Tabs & Toggles (Bulletin & Gallery) */
.tab-container {
    margin-top: 40px;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    border-bottom: 1px solid #e2eae4;
    padding-bottom: 15px;
}

.tab-btn {
    background: transparent;
    border: none;
    font-family: 'Montserrat', 'Noto Sans KR', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #5e6b60;
    cursor: pointer;
    padding: 10px 20px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn:hover {
    color: #2E6F40;
}

.tab-btn.active {
    color: #2E6F40;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #2E6F40;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

/* Photo Gallery Layout (Linter-friendly Flexbox fallback) */
.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    margin: -10px;
}

.gallery-grid > * {
    flex: 1 1 250px;
    margin: 10px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    height: 220px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(46, 111, 64, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #ffffff;
    padding: 20px;
    text-align: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 5px;
}

.gallery-overlay p {
    font-size: 13px;
    opacity: 0.9;
}

/* Map Section styling */
.map-responsive {
    overflow: hidden;
    padding-bottom: 40%;
    position: relative;
    height: 0;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    border: 1px solid #e2eae4;
}

.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
    border: 0;
}

@media (max-width: 768px) {
    .map-responsive {
        padding-bottom: 60%;
    }
}

/* Gallery Card Hover Effects */
.gallery-card-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.gallery-card-link:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-6px) !important;
}
.gallery-card-link:hover .gallery-card-img {
    transform: scale(1.08) !important;
}
.gallery-card-link:hover .gallery-card-overlay {
    background: rgba(46, 111, 64, 0.3) !important;
}


