/* ==================================
   1. MODERNIZED THEME & VARIABLES
   ================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Plus+Jakarta+Sans:wght@700;800&display=swap');

:root {
    --primary-color: #005F94;        /* A deeper, more professional blue */
    --accent-color: #48CAE4;         /* A vibrant, modern cyan accent */
    --dark-color: #023047;           /* A rich, dark navy for text/footers */
    --light-color: #F8F9FA;          /* Off-white for clean backgrounds */
    --gray-color: #6c757d;           /* Muted gray for secondary text */
    --gradient: linear-gradient(45deg, var(--accent-color), var(--primary-color));

    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    --border-radius: 0.75rem; /* Softer corners */
}

/* ==================================
   2. GENERAL & TYPOGRAPHY STYLES
   ================================== */
body {
    font-family: var(--font-body);
    background-color: #fff;
    color: var(--dark-color);
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: var(--font-heading);
    font-weight: 800;
}

.section-spacer {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-weight: 800;
    margin-bottom: 2.5rem;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
    margin: 0.75rem auto 0;
}

/* ==================================
   3. MODERNIZED COMPONENTS
   ================================== */

/* --- Header & Nav --- */
.navbar-brand { font-size: 1.5rem; }
.navbar .nav-link { font-weight: 500; font-family: var(--font-body); }
.navbar .form-control { border-radius: var(--border-radius); }

/* --- Hero Section --- */
.hero-section {
    background: url('https://jasonschutt.com/websites/improv/img/microphone-2574511_1920.jpg') no-repeat center center;
    background-size: cover;
    padding: 8rem 0;
    position: relative;
    /* Angled bottom edge */
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background-image: linear-gradient(45deg, rgba(0, 95, 148, 0.8), rgba(2, 48, 71, 0.9));
}
.hero-section > div {
    position: relative; /* To bring content above the overlay */
}

/* --- Buttons --- */
.btn {
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.btn-primary {
    background: var(--gradient);
    color: white;
}

/* --- Post Cards --- */
.post-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 25px rgba(2, 48, 71, 0.08);
    transition: all 0.3s ease;
    overflow: hidden; /* Ensures image corners are rounded */
}
.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(2, 48, 71, 0.12);
}
.post-card .card-body { padding: 1.5rem; }
.post-card .card-title { color: var(--dark-color); }

/* --- Category Tiles --- */
.category-tile {
    display: block;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(2, 48, 71, 0.08);
    transition: all 0.3s ease;
}
.category-tile:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(2, 48, 71, 0.15);
}
.category-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.category-tile-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1rem 1rem;
    background: linear-gradient(to top, rgba(2, 48, 71, 0.8), transparent);
}
.category-tile-title {
    color: white;
    font-weight: 800;
}

/* --- Newsletter Section --- */
.newsletter-section {
    background-color: var(--dark-color);
    background-image: var(--gradient);
    color: white;
}
.newsletter-section .form-control { border: none; }
.newsletter-section .btn-primary { background: white; color: var(--primary-color); }

/* --- Testimonials --- */
.testimonial-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    height: 100%;
}
.testimonial-card::before {
    content: '\201C'; /* Left double quotation mark */
    font-family: serif;
    font-size: 6rem;
    color: var(--accent-color);
    opacity: 0.2;
    position: absolute;
    top: -1rem;
    left: 1rem;
    line-height: 1;
}
.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}
.testimonial-author {
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--primary-color);
}

/* --- Footer --- */
.footer {
    background-color: var(--dark-color) !important;
}
.footer h5 {
    color: var(--accent-color);
}