/* ==========================================
   ROOT VARIABLES
   ========================================== */

:root {
    --primary-color: #f4d03f;
    --secondary-color: #f5eacf;
    --accent-color: #d4ac0d;
    --text-color: #333;
    --light-bg: #fff9f0;
}

/* ==========================================
   GLOBAL STYLES
   ========================================== */

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

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

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    width: 200px;
    height: auto;
    vertical-align: middle;
    object-fit: contain;
    padding-top: 40px;
    padding-bottom: 15px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
}

nav ul li a:hover {
    color: var(--accent-color);
}

.hero {
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(180deg, #FFD4BB, #FFE2C9, #FFF6E5);
    border-radius: 10px;
    margin: 1rem auto;
    max-width: 90%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.hero p {
    font-size: 1rem;
    color: var(--text-color);
}

.cta-button,
.button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover,
.button:hover {
    background-color: var(--primary-color);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.feature h2 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

footer {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(180deg, #FFD4BB, #FFE2C9, #FFF6E5);
    /* Same gradient as hero */
    margin-top: 4rem;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer ul li {
    display: inline;
    margin-right: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        text-align: center;
        height: auto;
        padding: 1rem;
    }

    nav ul {
        margin-top: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

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

    .features {
        grid-template-columns: 1fr;
    }

    .logo img {
        position: static;
        height: 100px;
        transform: none;
    }

    nav ul {
        margin-left: 0;
    }

    .logo img {
        width: 120px;
    }
}

/* ========================================== 
   UPDATED ABOUT PAGE STYLES 
   ========================================== */
.about-container {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-header h1 {
    font-size: 2.5rem;
    text-align: center;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.section-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent-color), transparent);
    margin: 2rem 0;
}

.about-flex {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: flex-start;
}

.about-image {
    flex: 0 0 40%;
    max-width: 350px;
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.about-text-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-text p {
    line-height: 1.8;
    color: var(--text-color);
    font-size: 1rem;
}

.columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.specialties-list,
.approach-list {
    list-style-type: none;
    padding: 0;
}

.specialties-list li,
.approach-list li {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.specialties-list li:before,
.approach-list li:before {
    content: "•";
    /* Bullet point */
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1.5rem;
}


.personal-note {
    margin-top: 1rem;
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1rem;
}

/* RESPONSIVE DESIGN FOR ABOUT PAGE */
@media (max-width: 768px) {
    .about-flex {
        flex-direction: column;
        text-align: center;
    }

    .columns {
        grid-template-columns: 1fr;
    }

    .about-image {
        max-width: 100%;
    }

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

    .about-text-container {
        gap: 1rem;
    }
}



/* ==========================================
   SPECIALTIES PAGE
   ========================================== */

.specialties-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.specialty-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.specialty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.specialty-card h2 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.specialty-card p {
    color: var(--text-color);
    font-size: 1rem;
}

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

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

.contact-container h1 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.contact-container p {
    margin-bottom: 2rem;
    color: var(--text-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Form group styles */
.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--accent-color);
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    height: auto;
}

/* Consent section */
.consent-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.consent-group label {
    color: var(--text-color);
}

/* Submit button styling */
.submit-button {
    padding: 1rem;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
    width: 100%;
    /* Keeps the submit button aligned with the form width */
}

.submit-button:hover {
    background-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-container {
        padding: 1rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

/* ==========================================
   FLASH MESSAGES
   ========================================== */

.flash-message {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    text-align: center;
}

.flash-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ==========================================
   BLOG PAGE
   ========================================== */
.blog-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    text-align: left;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.blog-post {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ddd;
}

.blog-post h2 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.post-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.post-content p {
    line-height: 1.6;
    color: var(--text-color);
}

.post-tags {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #555;
}

.post-tags .tag {
    display: inline-block;
    background-color: var(--secondary-color);
    color: #333;
    border-radius: 5px;
    padding: 0.3rem 0.6rem;
    margin-right: 0.5rem;
}

/* ==========================================
   RESOURCES PAGE
   ========================================== */

.resources-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

.resources-container h1 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.resources-container p {
    color: var(--text-color);
    margin-bottom: 2rem;
}

.resources-columns {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.books-section {
    width: 100%;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.book-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    background-color: #f5f5f5;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.book-cover-placeholder {
    background-color: #ececec;
    height: 200px;
    width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #888;
}

.book-info {
    width: 100%;
}

.book-info h3 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .resources-columns {
        flex-direction: column;
    }

    .book-card {
        flex-direction: column;
        align-items: center;
    }

    .book-cover-placeholder {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

/* ==========================================
   RESPONSIVE DESIGN - PAGES
   ========================================== */

.crisis-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.resource-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-card h2 {
    color: var(--accent-color);
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .crisis-links {
        grid-template-columns: 1fr;
    }
}

/* Contact Page Styles */
.contact-info {
    text-align: center;
    margin: 2rem 0;
}

.contact-item {
    margin: 1rem 0;
    font-size: 1.2rem;
}

.contact-item a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 0.5rem;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.social-icon {
    font-size: 2rem;
    color: var(--accent-color);
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    color: var(--primary-color);
}

/* Blog Admin Styles */
.blog-admin-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.create-post-section,
.existing-posts-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.admin-post-card {
    background: #f5f5f5;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
}

.delete-button {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.delete-button:hover {
    background-color: #c82333;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    nav ul {
        display: none;
        width: 100%;
        background: white;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1rem;
    }

    nav ul.show {
        display: block;
    }
}

.hamburger {
    display: block;
    cursor: pointer;
    z-index: 11;
    /* Above the menu */
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
}

/* Ensure menu is visible on larger screens */
@media (min-width: 769px) {
    nav ul {
        display: flex;
        /* Show menu items */
    }

    .hamburger {
        display: none;
        /* Hide hamburger icon */
    }
}