/* css/styles.css */
:root {
    --header-bg: #8cb5e6;
    --nav-bg: #000080;
    --footer-bg: #1a1c23;
    --text-main: #333333;
    --text-light: #ffffff;
    --link-blue: #007bff;
    --link-dark-blue: #003366;
    --font-stack: Arial, Helvetica, sans-serif;
}

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

body {
    font-family: var(--font-stack);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.6;
}

/* Header */
.site-header {
    background-color: var(--header-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    gap: 20px;
    flex-wrap: wrap;
}

.site-logo {
    height: 100px;
    width: auto;
}

.site-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000;
    text-transform: uppercase;
    text-align: center;
}

/* Mobile Menu Bar */
.mobile-nav-bar {
    display: none;
    background-color: var(--nav-bg);
    padding: 10px;
    text-align: right;
}

#menu-toggle {
    background: none;
    border: 1px solid white;
    color: white;
    padding: 8px 15px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
}

/* Navigation */
.site-nav {
    background-color: var(--nav-bg);
    display: flex;
    justify-content: center;
    padding: 15px 0;
}

.site-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: bold;
    padding: 0 20px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.site-nav a:hover, .site-nav a.active {
    color: #8cb5e6;
}

/* Main Content */
.container {
    flex: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    width: 100%;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 30px;
    color: #222;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

p {
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    background-color: #0066cc;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 3px;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-top: 10px;
}

.btn:hover {
    background-color: #004c99;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 20px;
}

/* News Specific */
.news-article {
    margin-bottom: 40px;
}

.news-title {
    font-size: 1.3rem;
    color: var(--link-blue);
    text-decoration: none;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.news-title:hover {
    text-decoration: underline;
}

.news-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
}

.read-more {
    color: var(--link-blue);
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

/* Article View Layout */
.article-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

#full-article-container {
    flex: 2;
}

.article-header {
    background-color: #337ab7;
    color: white;
    padding: 60px 40px;
    margin-bottom: 30px;
    border-radius: 4px;
}

.article-main-title {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.article-main-meta {
    font-size: 0.9rem;
    color: #d9edf7;
}

.article-body {
    white-space: pre-wrap; /* Respects line breaks from the .txt file */
    font-size: 1rem;
    color: #333;
}

/* Sidebar */
.article-sidebar {
    flex: 1;
    background: #f9f9f9;
    padding: 20px;
    border: 1px solid #eee;
}

.recent-articles-list {
    list-style: none;
    padding: 0;
}

.recent-articles-list li {
    margin-bottom: 10px;
}

.recent-articles-list a {
    color: var(--link-blue);
    text-decoration: none;
    font-size: 0.95rem;
}

.recent-articles-list a:hover {
    text-decoration: underline;
}

/* Burse Page Specific */
.burse-container summary {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 10px;
    cursor: pointer;
}

/* Indentation for the nested items */
.nested-details {
    margin-left: 40px; /* Pushed further to the right */
    margin-top: 10px;
    padding-left: 15px;
    border-left: 2px solid #ccc; /* Added a subtle visual guide line */
    display: block; /* Ensures it takes up full width */
}

.nested-summary-link {
    color: var(--link-dark-blue);
    font-weight: bold;
    font-size: 1.05rem;
}

.adoptare-text {
    background-color: #f4f4f4;
    padding: 10px 15px;
    margin-left: 15px;
    margin-top: 10px;
    color: #555;
    font-size: 0.95rem;
    font-style: italic;
}

/* Sidebar Layout for Index */
.page-with-sidebar {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.main-content {
    flex: 2;
}

.sidebar {
    flex: 1;
}

/* Gray Sidebar Boxes */
.sidebar-box {
    background-color: #808080;
    color: #ffffff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 3px;
}

.sidebar-box h3 {
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-align: center;
}

.sidebar-box p {
    color: #f0f0f0;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

/* Footer */
.site-footer {
    background-color: var(--footer-bg);
    color: #a0a0a0;
    padding: 40px 20px;
    font-size: 0.85rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: #a0a0a0;
    text-decoration: none;
    margin: 0 10px;
}

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

.social-icons a {
    color: #a0a0a0;
    display: inline-block;
    margin-left: 15px;
    transition: color 0.2s;
}

.social-icons a:hover {
    color: white;
}

.footer-right {
    text-align: right;
}

.copyright-info {
    margin-top: 10px;
}

/* =========================================
   Consolidate Responsive Design (Mobile)
   ========================================= */
@media (max-width: 768px) {
    /* Header & Navigation */
    .site-header {
        flex-direction: column;
        padding: 15px;
    }

    .site-title {
        font-size: 1.2rem;
    }

    .mobile-nav-bar {
        display: block;
    }

    .site-nav {
        display: none;
        flex-direction: column;
        padding: 0;
    }

    .site-nav.nav-active {
        display: flex;
    }

    .site-nav a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-align: center;
    }

    /* Layout Adjustments */
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .page-with-sidebar {
        flex-direction: column;
    }

    .article-wrapper {
        flex-direction: column;
    }

    .article-header {
        padding: 30px 20px;
    }

    .article-main-title {
        font-size: 1.8rem;
    }

    /* Burse Page Mobile Adjustments */
    .nested-details {
        margin-left: 20px; /* Reduced margin so it doesn't get pushed off-screen */
        padding-left: 10px;
    }

    .adoptare-text {
        margin-left: 10px;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .footer-right {
        text-align: center;
        margin-top: 20px;
    }
}
