/* ============================================
   GLOBAL STYLES & RESET
   ============================================ */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #2d2d2d;
    background-color: #fafafa;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    background-color: #74bd64;
    border-bottom: 3px solid #5a9a4d;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: #fff;
    font-size: 0.95rem;
    transition: color 0.2s;
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: #2d2d2d;
}

/* ============================================
   HEADER
   ============================================ */

.header {
    background-color: #E8661C;
    padding: 80px 0 60px;
    text-align: center;
    border-bottom: 3px solid #c75418;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.subtitle {
    font-size: 1.1rem;
    color: #fff;
}

/* ============================================
   BLOG POSTS (HOME PAGE)
   ============================================ */

/* Blog Posts Grid */
.blog-posts {
    background-color: #fff;
    padding: 60px 0;
}

.post-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 40px;
    border-bottom: 2px solid #B8E0A8;
    background-color: #f9f9f9;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.post-card:last-child {
    border-bottom: 2px solid #B8E0A8;
}

.post-header-section {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.post-image-link {
    flex-shrink: 0;
}

.post-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    transition: all 0.3s;
    border: 3px solid #B8E0A8;
    box-shadow: 0 4px 12px rgba(20, 255, 236, 0.2);
}

.post-image:hover {
    opacity: 0.85;
    border-color: #E8661C;
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.3);
}

.post-header-content {
    flex: 1;
}

.post-content {
    flex: 1;
}

.post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-category {
    color: #74bd64;
    font-weight: 700;
    background-color: rgba(13, 115, 119, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

.post-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
}

.post-title a {
    color: #1a1a1a;
    transition: color 0.2s;
}

.post-title a:hover {
    color: #74bd64;
}

.post-excerpt {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.7;
}

/* Audio Player within Posts */
.post-audio-player {
    background-color: #B8E0A8;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #669ca0;
    margin-bottom: 20px;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.audio-btn {
    background-color: #E8661C;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.2s;
}

.audio-btn:hover {
    background-color: #c75418;
}

.progress-bar {
    flex: 1;
    min-width: 150px;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #fff;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #E8661C;
    border-radius: 50%;
    cursor: pointer;
}

.progress-bar::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #E8661C;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.time-display {
    font-size: 0.85rem;
    color: #1a1a1a;
    font-family: monospace;
    min-width: 38px;
    font-weight: 600;
}

/* Post Actions (Read More & Download) */
.post-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.read-more {
    color: #74bd64;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.read-more:hover {
    color: #5a9a4d;
}

.download-link {
    color: #E8661C;
    font-size: 0.9rem;
    text-decoration: underline;
    transition: color 0.2s;
    font-weight: 500;
}

.download-link:hover {
    color: #c75418;
}

/* Numbers (default) */
ol {
  list-style-type: decimal;
}

/* ============================================
   ABOUT PAGE
   ============================================ */

.about-content {
    padding: 60px 0;
    background-color: #fff;
}

.about-text {
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-bottom: 2px solid #B8E0A8;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #1a1a1a;
}

.about-text h3 {
    font-size: 1.4rem;
    margin: 40px 0 20px;
    color: #74bd64;
}

.about-text p {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.8;
}

.about-text a {
    color: #E8661C;
    text-decoration: underline;
    font-weight: 500;
}

.about-text a:hover {
    color: #c75418;
}

.profile-image {
    margin-bottom: 20px;
    border-radius: 8px;
    border: 3px solid #B8E0A8;
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-content {
    padding: 60px 0;
    background-color: #fff;
}

.contact-intro {
    margin-bottom: 40px;
    background-color: #f9f9f9;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-bottom: 2px solid #B8E0A8;
}

.contact-intro p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
}

/* Contact Form */

.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto 60px;
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-bottom: 2px solid #B8E0A8;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #B8E0A8;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #E8661C;
}

.form-group textarea {
    resize: vertical;
}

.submit-btn {
    background-color: #74bd64;
    color: #fff;
    padding: 14px 30px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    align-self: flex-start;
}

.submit-btn:hover {
    background-color: #5a9a4d;
}

/* Contact Info */

.contact-info {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 0;
    border-top: 2px solid #B8E0A8;
}

.contact-info h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #74bd64;
}

.contact-methods {
    list-style: none;
    margin-bottom: 25px;
}

.contact-methods li {
    padding: 10px 0;
    color: #555;
}

.contact-methods strong {
    color: #1a1a1a;
}

.response-note {
    color: #999;
    font-size: 0.9rem;
    font-style: italic;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: #74bd64;
    border-top: 3px solid #5a9a4d;
    padding: 40px 0;
    text-align: center;
    margin-top: 80px;
}

.footer p {
    color: #fff;
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 20px;
    }

    .nav-links {
        gap: 20px;
    }

    .header h1 {
        font-size: 2rem;
    }

    .post-card {
        padding: 30px 20px;
    }

    .post-header-section {
        flex-direction: column;
        gap: 20px;
    }

    .post-image {
        width: 100%;
        height: auto;
        max-width: 300px;
        margin: 0 auto;
    }

    .post-title {
        font-size: 1.5rem;
    }

    .about-text h2 {
        font-size: 1.6rem;
    }

    .contact-info h3 {
        font-size: 1.2rem;
    }

    .audio-controls {
        gap: 10px;
    }

    .progress-bar {
        min-width: 100%;
    }

    .post-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 50px 0 40px;
    }

    .header h1 {
        font-size: 1.6rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .post-title {
        font-size: 1.3rem;
    }

    .nav-links {
        gap: 15px;
        font-size: 0.9rem;
    }

    .audio-btn {
        padding: 7px 14px;
        font-size: 0.85rem;
    }

    .post-audio-player {
        padding: 12px;
    }

    .post-card,
    .about-text,
    .contact-form-wrapper {
        padding: 25px 20px;
    }

    .contact-intro {
        padding: 20px;
    }
}
/* ============================================
   ACCORDION
   ============================================ */

.accordion-container {
    margin: 40px 0;
}

.accordion-item {
    border-bottom: 2px solid #B8E0A8;
    margin-bottom: 0;
}

.accordion-header {
    width: 100%;
    background-color: transparent;
    border: none;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    text-align: left;
    transition: color 0.2s;
}

.accordion-header:hover {
    color: #74bd64;
}

.accordion-icon {
    font-size: 1.5rem;
    font-weight: 600;
    color: #E8661C;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0;
}

.accordion-item.active .accordion-content {
    max-height: 3000px;
    padding: 0 0 20px 0;
}

.accordion-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 480px) {
    .accordion-header {
        font-size: 1.1rem;
        padding: 15px 0;
    }
}
.accordion-content ol {
    list-style-type: decimal;
    list-style-position: outside;
    padding-left: 40px;
    margin: 15px 0;
}

.accordion-content ol li {
    display: list-item;
    margin-bottom: 10px;
    color: #555;
    line-height: 1.8;
}

.accordion-content ol li a {
    color: #E8661C;
    text-decoration: underline;
    font-weight: 500;
}

.accordion-content ol li a:hover {
    color: #c75418;
}

/* ============================================
   IMAGE POPUP/LIGHTBOX - ROTATE & SCALE (OPTION 4)
   ============================================ */

.image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.5s ease, background-color 0.5s ease;
}

.image-overlay.active {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.9);
}

.popup-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    transform: scale(0.5) rotate(-5deg);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
}

.image-overlay.active .popup-image {
    transform: scale(1) rotate(0deg);
    opacity: 1;
}

.close-popup {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 50px;
    color: #fff;
    cursor: pointer;
    font-weight: 300;
    opacity: 0;
    transition: color 0.2s, opacity 0.5s ease 0.2s;
}

.image-overlay.active .close-popup {
    opacity: 1;
}

.close-popup:hover {
    color: #E8661C;
}

@media (max-width: 768px) {
    .close-popup {
        top: 10px;
        right: 20px;
        font-size: 40px;
    }
}


/* ============================================
   PAGE-SPECIFIC BACKGROUND IMAGES
   ============================================ */

/* Home page background */
body.page-home::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/home-background.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: -1;
}

/* About page background */
body.page-about::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/about-background.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: -1;
}

/* Contact page background */
body.page-contact::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/contact-background.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: -1;
}
