:root {
    /* Colors */
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #0f172a;
    --accent: #3b82f6;
    --background: #f8fafc;
    --surface: #ffffff;
    --text: #334155;
    --text-light: #64748b;
    --border: #e2e8f0;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;

    /* Transitions */
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}


/* Fonts */
.crimson-text-regular {
    font-family: "Crimson Text", serif;
    font-weight: 400;
    font-style: normal;
}

.crimson-text-semibold {
    font-family: "Crimson Text", serif;
    font-weight: 600;
    font-style: normal;
}

.crimson-text-bold {
    font-family: "Crimson Text", serif;
    font-weight: 700;
    font-style: normal;
}

.crimson-text-regular-italic {
    font-family: "Crimson Text", serif;
    font-weight: 400;
    font-style: italic;
}

.crimson-text-semibold-italic {
    font-family: "Crimson Text", serif;
    font-weight: 600;
    font-style: italic;
}

.crimson-text-bold-italic {
    font-family: "Crimson Text", serif;
    font-weight: 700;
    font-style: italic;
}


/* Global Headings Font */
h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.hero h1,
.news-content h3,
.post-content h3,
.widget h3,
.footer-col h3,
.suggested-articles h3,
.not-found-page h1 {
    font-family: "Crimson Text", serif;
}

/* Utility Classes */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 2rem;
    position: relative;
}

.section-title i {
    color: var(--primary);
    margin-right: 12px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    margin-top: 10px;
    border-radius: 2px;
}

/* Header */
.site-header {
    background-color: var(--surface);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.site-header.scrolled {
    height: 60px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
}

.text-logo {
    font-size: 2rem;
    color: var(--secondary);
    line-height: 1;
    display: block;
    transition: var(--transition);
}

.text-logo:hover {
    color: var(--primary);
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-weight: 500;
    color: var(--text);
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--secondary);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background-color: var(--secondary);
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.6)),
        radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        url('../../whistle_hero.jpg');
    background-size: cover, 20px 20px, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, repeat, no-repeat;
    color: white;
    padding: 100px 0;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Main Layout */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.content-area {
    background-color: var(--surface);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-size: 1.2rem;
    line-height: 1.8;
}

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

/* Alert Box */
.alert-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--primary);
    border-radius: 6px;
    padding: 16px 24px;
    margin-bottom: 40px;
    color: var(--text);
    font-size: 1.05rem;
    display: block;
}

.alert-icon {
    font-size: 1.2rem;
    margin-right: 10px;
    vertical-align: middle;
    display: inline-block;
}

.alert-content {
    display: inline;
    vertical-align: middle;
}

.alert-link {
    color: var(--primary);
    font-weight: 600;
    margin-left: 8px;
    text-decoration: none;
    display: inline-block;
}

.alert-link:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid var(--border);
}

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

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.category-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.news-content {
    padding: 20px;
}

.news-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-content h3 a {
    color: var(--secondary);
}

.news-content h3 a:hover {
    color: var(--primary);
}

.news-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Single Post */
.single-post .post-header {
    margin-bottom: 30px;
}

.single-post h1 {
    font-size: 2.5rem;
    margin: 15px 0;
    line-height: 1.2;
    color: var(--secondary);
}

.post-featured-image {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 40px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content h3 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
    color: var(--secondary);
}

.post-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.post-content .lead {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text);
}

.post-meta {
    font-size: 0.9rem;
    color: var(--text-light);
}

.category-link a {
    color: var(--text-light);
    font-weight: 500;
    transition: var(--transition);
}

.category-link i {
    color: var(--primary);
    margin-right: 4px;
}

.category-link a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.post-footer {
    border-top: 1px solid var(--border);
    padding-top: 30px;
}

/* Share Buttons (Single Post) */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.share-buttons span {
    font-weight: 600;
    margin-right: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    transition: var(--transition);
}

.share-btn:hover {
    opacity: 0.9;
    transform: translateY(-3px);
}

.share-btn.facebook {
    background-color: #1877f2;
}

.share-btn.x {
    background-color: #000000;
}

.share-btn.linkedin {
    background-color: #0a66c2;
}

.share-btn.whatsapp {
    background-color: #25d366;
}

/* Suggested Articles */
.suggested-articles {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid var(--border);
}

.suggested-articles h3 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 25px;
}

.suggested-articles-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.suggested-article-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px;
    background-color: var(--background);
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: var(--transition);
    text-decoration: none;
}

.suggested-article-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.suggested-article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.suggested-category {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    width: fit-content;
}

.suggested-article-content h4 {
    font-size: 1.1rem;
    color: var(--secondary);
    margin: 0;
    line-height: 1.4;
}

.suggested-article-item:hover h4 {
    color: var(--primary);
}

.suggested-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

.suggested-article-image {
    width: 120px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.suggested-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.suggested-article-item:hover .suggested-article-image img {
    transform: scale(1.1);
}

/* Sidebar */
.site-sidebar {
    background-color: var(--surface);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border);
    height: fit-content;
}

.widget {
    margin-bottom: 40px;
}

.widget h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--secondary);
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
}

.search-form {
    display: flex;

}

.search-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
}

.search-form button {
    padding: 10px 15px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.categories-widget ul li {
    margin-bottom: 10px;
}

.categories-widget a {
    display: flex;
    justify-content: space-between;
    align-items: center;

    color: var(--text);
}

.categories-widget a i {
    font-size: 1.1rem;
    color: var(--primary);
    min-width: 20px;
}

.categories-widget a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.categories-widget a:hover i {
    color: var(--primary-dark);
}

.count {
    background-color: var(--border);
    padding: 2px 8px;
    color: var(--text);
    border-radius: 12px;
    font-size: 0.85rem;
}

.site-footer {
    background-color: var(--secondary);
    color: white;
    padding: 60px 0 0;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 60px;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
}

.footer-col p,
.footer-col a {
    color: #94a3b8;
}

.footer-col a:hover {
    color: white;
}

.footer-col ul li {
    margin-bottom: 10px;
}

/* Social Icons (Footer) */
.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-icons a {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1.1rem;
}

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

.footer-bottom {
    background-color: #020617;
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: #94a3b8;
}

/* Responsive */
@media (max-width: 992px) {
    .main-layout {
        grid-template-columns: 1fr;
    }

    .site-sidebar {
        order: 2;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--surface);
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        display: none;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }

    .hero {
        padding: 60px 0;
    }

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

    .hero p {
        font-size: 1rem;
    }

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

    /* Mobile adjustments for content area */
    .content-area {
        padding: 20px;
        font-size: 1rem;
    }

    .single-post h1 {
        font-size: 1.8rem;
    }

    .post-content {
        font-size: 1rem;
    }

    /* Mobile responsive for suggested articles */
    .suggested-articles {
        margin-top: 30px;
        padding-top: 30px;
    }
}

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

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

/* Author Signature */
.author-signature {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.author-info {
    text-align: left;
    /* Align text left relative to itself, but block is right */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.author-name {
    font-weight: 700;
    color: var(--secondary);
    font-size: 1rem;
    line-height: 1.2;
}

.author-role {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.2;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-photo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.written-by {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.2;
}

/* =
=========================================
   404 / NOT FOUND PAGE
   ========================================== */
.not-found-page {
    min-height: calc(100vh - var(--header-height) - 300px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--background) 0%, #e0e7ff 100%);
}

.not-found-container {
    text-align: center;
    max-width: 500px;
    padding: 50px 40px;
    background: var(--surface);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.not-found-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s ease-in-out infinite;
}

.not-found-icon i {
    font-size: 50px;
    color: white;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(37, 99, 235, 0);
    }
}

.not-found-code {
    font-size: 5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    line-height: 1;
}

.not-found-page h1 {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 15px;
    font-weight: 700;
}

.not-found-page>.not-found-container>p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.not-found-suggestions {
    background: var(--background);
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 30px;
    text-align: left;
}

.not-found-suggestions>p {
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.not-found-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.not-found-suggestions li {
    padding: 8px 0;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.not-found-suggestions li i {
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.not-found-page .btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 10px;
}

.not-found-page .btn-lg i {
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 576px) {
    .not-found-container {
        padding: 40px 25px;
        margin: 0 15px;
    }

    .not-found-icon {
        width: 100px;
        height: 100px;
    }

    .not-found-icon i {
        font-size: 40px;
    }

    .not-found-page h1 {
        font-size: 1.6rem;
    }
}

/* About Page Redesign */
.about-page {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.about-intro-section {
    max-width: 800px;
}

.about-intro-section .lead {
    color: var(--primary);
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.4;
}

.about-section-subtitle {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.about-section-subtitle i {
    color: var(--primary);
    font-size: 1.5rem;
}

/* Mission Grid */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.mission-card {
    background: var(--surface);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: var(--transition);
    text-align: center;
}

.mission-card p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
}

.mission-icon {
    width: 60px;
    height: 60px;
    background: var(--background);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.mission-card:hover .mission-icon {
    background: var(--primary);
    color: white;
}

/* Details Grid */
.about-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.about-detail-section {
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
}

.approach-box {
    border-left: 4px solid var(--primary);
}

.history-box {
    border-left: 4px solid var(--accent);
}

/* Responsive About */
@media (max-width: 992px) {
    .mission-grid {
        grid-template-columns: 1fr;
    }

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