@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400&family=Lora:ital,wght@0,400;0,600;1,400&family=Oswald:wght@500;700&family=Montserrat:wght@500;700&display=swap');

/* ========================================================
   PERSATUAN KEBAJIKAN ANAK-ANAK YATIM HJ JURAIMI (PERKEJ)
   Faithful Migration & Modernized Responsive Stylesheet
======================================================== */

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

body {
    font-family: 'Crimson Text', 'Times New Roman', serif;
    font-size: 19px;
    line-height: 1.6;
    color: #ffffff;
    background-color: #ffffff;
    background-image: url('../img/body-bg.jpg');
    background-repeat: no-repeat;
    background-position: bottom right;
    background-attachment: fixed;
    background-size: cover;
    min-height: 100vh;
}

a {
    color: #a5dd8d;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Container */
.site-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    background: transparent;
    padding: 0 15px 30px;
}

/* Header */
header.site-header {
    background-color: #ffffff;
    margin-top: 15px;
    border-radius: 4px 4px 0 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.header-banner {
    position: relative;
    background-color: #ffffff;
    background-image: url('../img/header-banner.png');
    background-position: left center;
    background-repeat: no-repeat;
    background-size: contain;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 20px 15px 0;
}

.header-title-link {
    display: block;
    text-align: center;
    text-decoration: none;
    margin-top: 40px;
}

.header-title {
    font-family: 'Oswald', 'Montserrat', Arial, sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.8);
    line-height: 1.2;
    padding: 10px 15px;
}

.header-description-bar {
    width: 100%;
    background: #000000;
    color: #ffffff;
    text-align: center;
    padding: 12px 15px;
    font-size: 15px;
    font-family: 'Georgia', serif;
    line-height: 1.4;
    border-top: 2px solid #347c2c;
}

.header-description-bar .phone-highlight {
    color: #a5dd8d;
    font-weight: bold;
}

/* Navigation Tabs */
nav.main-nav {
    background: #f4f4f4;
    border-top: 1px solid #ddd;
    border-bottom: 3px solid #347c2c;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin: 0;
}

.nav-link {
    display: block;
    padding: 12px 24px;
    font-family: 'Oswald', 'Montserrat', Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-right: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.nav-item:last-child .nav-link {
    border-right: none;
}

.nav-item.active .nav-link,
.nav-link:hover {
    background: #2d6e13;
    color: #ffffff;
    text-decoration: none;
}

/* Main Layout Grid */
.main-content-layout {
    display: grid;
    grid-template-columns: 1fr 310px;
    gap: 25px;
    margin-top: 25px;
}

/* Primary Content Column */
.content-area {
    min-width: 0;
}

/* Dark Post Box (Classic Blogger Style) */
.post-box {
    background-color: #000000;
    border: 1px solid #444444;
    border-radius: 4px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    color: #ffffff;
}

.post-title {
    font-family: 'Lora', 'Georgia', serif;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 1px solid #333333;
}

.post-title a {
    color: #ffffff;
}

.post-title a:hover {
    color: #a5dd8d;
    text-decoration: none;
}

.corak-divider {
    text-align: center;
    margin: 20px 0;
}

.corak-divider img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

.video-container {
    position: relative;
    max-width: 540px;
    margin: 25px auto;
    border: 3px solid #222222;
    border-radius: 6px;
    overflow: hidden;
    background: #000000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.video-container iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    display: block;
}

.intro-heading {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 25px 0 15px;
    color: #ffffff;
    text-transform: uppercase;
}

.post-body p {
    margin-bottom: 18px;
    text-indent: 2em;
    line-height: 1.8;
    color: #f0f0f0;
    font-size: 20px;
}

/* Interactive Contact Form */
.contact-form-section {
    max-width: 540px;
    margin: 40px auto 20px;
    background: #111111;
    border: 1px solid #333333;
    border-radius: 6px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.contact-form-header {
    text-align: center;
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    color: #a5dd8d;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.contact-form-sub {
    text-align: center;
    font-size: 15px;
    color: #cccccc;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
}

.form-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 6px;
    font-weight: 600;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 10px 14px;
    background: #222222;
    border: 1px solid #444444;
    border-radius: 4px;
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.2s;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: #347c2c;
    box-shadow: 0 0 5px rgba(52, 124, 44, 0.5);
    background: #2a2a2a;
}

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

.btn-submit {
    display: inline-block;
    width: 100%;
    padding: 12px;
    background: #347c2c;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.btn-submit:hover {
    background: #286323;
}

.btn-submit:active {
    transform: scale(0.98);
}

.whatsapp-fast-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    padding: 10px;
    background: #25D366;
    color: #ffffff;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}

.whatsapp-fast-btn:hover {
    background: #1eb956;
    color: #ffffff;
    text-decoration: none;
}

/* Sidebar */
.sidebar-area {
    min-width: 0;
}

.widget-box {
    margin-bottom: 25px;
    background: #000000;
    border: 1px solid #444444;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.widget-title {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    color: #ffffff;
    background: #347c2c;
    padding: 12px 15px;
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.widget-content {
    padding: 20px;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.5;
}

/* Bank Account Special Styling */
.bank-card {
    text-align: center;
}

.bank-acc-no {
    font-family: 'Courier New', Courier, monospace;
    font-size: 22px;
    font-weight: bold;
    color: #a5dd8d;
    letter-spacing: 2px;
    margin: 8px 0;
    user-select: all;
}

.bank-name {
    font-family: 'Oswald', sans-serif;
    font-size: 19px;
    color: #ffffff;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.copy-acc-btn {
    display: inline-block;
    padding: 6px 14px;
    background: #222222;
    border: 1px solid #555555;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-acc-btn:hover {
    background: #347c2c;
    border-color: #347c2c;
}

/* Widget Lists */
.widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-list li {
    padding: 10px 0;
    border-bottom: 1px solid #222222;
    font-size: 16px;
}

.widget-list li:last-child {
    border-bottom: none;
}

.widget-list a {
    color: #a5dd8d;
    display: block;
    line-height: 1.4;
}

.widget-list a:hover {
    color: #ffffff;
}

/* Committee Member Grid */
.committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.committee-card {
    background: #111111;
    border: 1px solid #333333;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.committee-photo {
    width: 160px;
    height: 190px;
    object-fit: cover;
    border: 2px solid #444444;
    border-radius: 4px;
    margin-bottom: 12px;
}

.committee-role {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    color: #a5dd8d;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.committee-name {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
}

/* Certificates Grid */
.cert-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin: 25px 0;
}

.cert-item img {
    max-width: 280px;
    height: auto;
    border: 2px solid #555555;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    transition: transform 0.2s ease;
}

.cert-item img:hover {
    transform: scale(1.03);
}

/* Gallery Photo Grid */
.gallery-section {
    margin-bottom: 40px;
}

.gallery-section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    color: #a5dd8d;
    text-align: center;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.gallery-section-date {
    text-align: center;
    color: #bbbbbb;
    font-size: 16px;
    margin-bottom: 20px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 15px;
}

.photo-grid-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border: 2px solid #333333;
    border-radius: 4px;
    transition: transform 0.2s;
}

.photo-grid-item img:hover {
    transform: scale(1.02);
    border-color: #347c2c;
}

/* Footer */
footer.site-footer {
    margin-top: 30px;
    background: #000000;
    border-top: 3px solid #347c2c;
    padding: 25px 15px;
    text-align: center;
    color: #888888;
    font-size: 15px;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.3);
}

footer.site-footer p {
    margin-bottom: 8px;
}

footer.site-footer a {
    color: #aaaaaa;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    z-index: 9999;
    text-decoration: none;
    transition: transform 0.2s, background-color 0.2s;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    background-color: #20ba59;
    color: #ffffff;
}

.floating-whatsapp svg {
    width: 34px;
    height: 34px;
    fill: currentColor;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
    .main-content-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar-area {
        order: 2;
    }
    
    .header-banner {
        background-position: center top;
        min-height: 200px;
    }
    
    .header-title {
        font-size: 24px;
    }
    
    .nav-link {
        padding: 10px 14px;
        font-size: 16px;
    }
}

@media (max-width: 600px) {
    .post-box {
        padding: 20px 15px;
    }
    
    .header-title {
        font-size: 20px;
    }
    
    .header-description-bar {
        font-size: 13px;
        padding: 10px;
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        padding: 12px;
    }
}
