/* Main stylesheet for ScholarshipDen */

:root {
    --primary-color: #003366;
    --secondary-color: #2E7D32;
    --accent-color: #F9A825;
    --background-color: #F5F5F5;
    --light-bg: #FFFFFF;
    --text-color: #333333;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--wp--preset--font-family--system);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover,
a:focus {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Make keyboard focus states clearly visible for accessibility */
a:focus {
    outline: 2px dotted var(--accent-color);
    outline-offset: 2px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.site-header {
    background-color: var(--primary-color);
    color: var(--light-bg);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 999;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.site-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--light-bg);
}
.nav-toggle {
    background: none;
    border: none;
    color: var(--light-bg);
    font-size: 1.6rem;
    cursor: pointer;
    display: none;
}
.primary-navigation {
    display: flex;
    gap: 20px;
}
.primary-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
    align-items: center;
}
.primary-navigation li {
    position: relative;
}
.primary-navigation li a {
    color: var(--light-bg);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 6px 4px;
    display: inline-flex;
    align-items: center;
}
.primary-navigation li a:hover {
    color: var(--accent-color);
}
/* Dropdown styling */
.primary-navigation li ul {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--primary-color);
    min-width: 200px;
    display: none;
    flex-direction: column;
    padding: 10px 0;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}
.primary-navigation li:hover > ul {
    display: flex;
}
.primary-navigation li ul li a {
    padding: 8px 15px;
    width: 100%;
}
/* Mobile nav */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    .primary-navigation {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--primary-color);
        position: absolute;
        left: 0;
        top: 60px;
        padding: 20px;
    }
    .primary-navigation.open {
        display: flex;
    }
    .primary-navigation ul {
        flex-direction: column;
        gap: 10px;
    }
    .primary-navigation li ul {
        position: static;
        box-shadow: none;
        padding-left: 20px;
    }
}

/* Hero */
.hero-section {
    position: relative;
    overflow: hidden;
    background-color: var(--light-bg);
}
.hero-section .hero-media img {
    width: 100%;
    height: auto;
    display: block;
}
.hero-section .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem;
    color: var(--light-bg);
    background: rgba(0,0,0,0.4);
}
.hero-overlay h1 {
    font-size: 2.5rem;
    margin: 0 0 1rem;
    color: var(--light-bg);
}
.hero-overlay p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 600px;
    color: var(--light-bg);
}
.hero-ctas {
    display: flex;
    gap: 15px;
}
.button {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.button svg {
    margin-right: 8px;
}
.button-primary {
    background-color: var(--secondary-color);
    color: var(--light-bg);
}
.button-primary:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}
.breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.breadcrumbs li {
    position: relative;
    padding-right: 0.5rem;
}
.breadcrumbs li + li:before {
    content: '\203A'; /* single right‑pointing angle quotation mark */
    margin-right: 0.5rem;
    color: var(--secondary-color);
}
.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: underline;
}
.breadcrumbs a:hover,
.breadcrumbs a:focus {
    color: var(--accent-color);
}

/* Scroll‑to‑top button */
.scroll-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-color);
    color: var(--light-bg);
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: opacity 0.2s ease;
}
.scroll-top.show {
    display: flex;
}
.scroll-top:hover,
.scroll-top:focus {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

/* Responsive adjustments for the hero section on small screens */
@media (max-width: 768px) {
    .hero-section .hero-overlay {
        /* Position content near the bottom to keep CTA buttons visible */
        top: auto;
        bottom: 0;
        height: auto;
        padding: 1.5rem;
        justify-content: flex-end;
    }
    .hero-overlay h1 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }
    .hero-overlay p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    .hero-ctas {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    .hero-ctas .button {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}
.button-secondary {
    background-color: var(--primary-color);
    color: var(--light-bg);
}
.button-secondary:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

/* Internships CTA section */
.internships-cta {
    background-color: var(--light-bg);
    padding: 40px 20px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}
.internships-cta h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.internships-cta p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--text-color);
}
.internships-cta .button {
    margin-top: 10px;
}

/* Post grid */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}
.post-card {
    background-color: var(--light-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.post-card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.post-card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.post-card-badge {
    background-color: var(--secondary-color);
    color: var(--light-bg);
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.75rem;
    margin-bottom: 8px;
    display: inline-block;
    text-transform: capitalize;
}
.post-card-title {
    font-size: 1.1rem;
    margin: 0 0 10px;
    color: var(--primary-color);
}
.post-card-excerpt {
    font-size: 0.9rem;
    color: #555;
    flex: 1;
}

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: var(--light-bg);
    padding: 40px 0 20px;
    margin-top: 60px;
}
.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
}
.footer-column {
    flex: 1 1 200px;
    min-width: 200px;
}
.footer-column h4 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--accent-color);
    text-transform: uppercase;
}
.footer-column a {
    color: #e5e5e5;
    display: block;
    margin-bottom: 8px;
}
.footer-column a:hover {
    color: var(--accent-color);
}
.footer-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
    margin-top: 30px;
    font-size: 0.8rem;
}
.footer-meta .amp-switch {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 4px;
    font-weight: 600;
    margin-top: 5px;
    text-decoration: none;
}
.footer-meta .amp-switch:hover {
    background-color: #e2981d;
}

/* Ad slots */
.ad-slot {
    margin: 20px 0;
    text-align: center;
}
.ad-slot iframe {
    width: 100%;
    border: none;
}

/* Utility */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}