/* Reset and Base Styles */
:root {
    --primary-navy: #003366;
    --secondary-bg: #f4f7f6;
    --white: #ffffff;
    --text-dark: #333333;
    --accent-color: #ff6b35; /* High visibility orange for CTA */
    --accent-hover: #e85a23;
    --gold-accent: #d4af37;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--secondary-bg);
}

/* Layout Utilities */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Header Styling */
header {
    background-color: var(--primary-navy);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--white);
}

header .subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
    letter-spacing: 1px;
}

header h1 .header-sub {
    display: block;
    font-size: 1.625rem;
    font-weight: 300;
    margin-top: 0.2rem;
}

/* Main Profile Section */
.profile-section {
    background-color: var(--white);
    margin: 3rem auto;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

/* Responsive Desktop Layout */
@media (min-width: 768px) {
    .profile-section {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
    }
    
    .bio-content {
        flex: 1;
    }
}

/* Profile Image */
.profile-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--primary-navy);
    flex-shrink: 0;
}

/* Typography & Content */
.bio-content h2 {
    color: var(--primary-navy);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.bio-content h2 .text-highlight {
    color: var(--accent-color);
}

.bio-content p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #555;
}

/* Call to Action Button */
.btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

/* Accolades Ribbon */
.accolades-ribbon {
    background-color: var(--gold-accent);
    color: var(--primary-navy);
    padding: 1rem 0;
    font-weight: bold;
    text-align: center;
}

.accolades-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

@media (min-width: 768px) {
    .accolades-content {
        flex-direction: row;
        gap: 2rem;
    }
}

.accolades-content span i {
    margin-right: 5px;
}

/* Footer Styling */
footer {
    background-color: var(--primary-navy);
    color: var(--white);
    padding-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        text-align: left;
    }
}

.footer-col h3 {
    color: var(--gold-accent);
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.footer-col p, .footer-col a {
    color: #e0e0e0;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--accent-color);
}

.hours-list {
    list-style: none;
    padding: 0;
}

.hours-list li {
    margin-bottom: 0.5rem;
    color: #e0e0e0;
}

.social-icons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 768px) {
    .social-icons {
        justify-content: flex-start;
    }
}

.social-icons a {
    font-size: 1.5rem;
    color: var(--white);
}

.social-icons a:hover {
    color: var(--gold-accent);
}

.copyright {
    background-color: rgba(0,0,0,0.2);
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
    color: #aaa;
}

/* Mobile Specific Adjustments */
@media (max-width: 600px) {
    /* H1: Break sub-header onto new line and hide separator */
    header h1 .header-sub .separator {
        display: none;
    }
    header h1 .header-sub em {
        display: block;
        margin-top: 0.3rem;
    }

    /* H2: Hide colon and stack text */
    .bio-content h2 .colon {
        display: none;
    }
    .bio-content h2 .text-highlight {
        display: block;
        font-size: 1.5rem; /* Slightly smaller to fit on one line */
    }
}

/* =========================================
   Navigation Styles
   ========================================= */
.main-nav {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--gold-accent);
}

.main-nav .nav-btn {
    background-color: var(--accent-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.main-nav .nav-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}

/* =========================================
   Blog Styles
   ========================================= */
.blog-intro {
    text-align: center;
    margin: 3rem 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.blog-intro h1 {
    color: var(--primary-navy);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.blog-intro p {
    font-size: 1.2rem;
    color: #555;
}

/* Blog Grid - Responsive Columns */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile: 1 Column */
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr); /* Tablet: 2 Columns */
    }
}

@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr); /* Desktop: 3 Columns */
    }
}

/* Blog Card Styles */
.blog-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.blog-card-title {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.blog-card-title a {
    color: var(--primary-navy);
    text-decoration: none;
    transition: color 0.2s;
}

.blog-card-title a:hover {
    color: var(--accent-color);
}

.blog-card-excerpt {
    color: #555;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-size: 1rem;
}

.read-more {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    align-self: flex-start;
    transition: color 0.2s;
}

.read-more:hover {
    color: var(--accent-hover);
}

/* Blog CTA Section */
.blog-cta {
    background-color: var(--white);
    padding: 3rem 2rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.blog-cta h3 {
    color: var(--primary-navy);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.blog-cta p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   Blog Post Detail Styles
   ========================================= */
.blog-article {
    max-width: 800px;
    margin: 3rem auto;
    background-color: var(--white);
    padding: 3rem 4rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
    .blog-article {
        padding: 2rem 1.5rem;
        margin: 1.5rem auto;
        width: 95%;
    }
}

.blog-featured-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2.5rem;
    background-color: #eee; /* Placeholder color while loading */
}

.blog-header {
    background-color: transparent;
    box-shadow: none;
    padding-top: 0;
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.blog-title {
    color: var(--primary-navy);
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    line-height: 1.2;
}

.blog-date {
    color: #777;
    font-style: italic;
    font-size: 0.95rem;
}

.blog-content {
    font-size: 1.125rem; /* 18px for better readability */
    line-height: 1.8;
    color: #333;
}

.blog-content p {
    margin-bottom: 1.5rem;
}

.blog-content h2 {
    color: var(--primary-navy);
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.blog-content h3 {
    color: var(--accent-color);
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.blog-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.blog-content li {
    margin-bottom: 0.5rem;
}

.blog-content strong {
    color: var(--primary-navy);
}

.blog-footer-nav {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.back-link {
    color: var(--primary-navy);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--accent-color);
}