/*
Theme Name: South Africa High School Theme
Theme URI: https://example.com/southafrica-highschool-theme
Author: Manus AI
Author URI: https://manus.im
Description: A professional and modern WordPress theme designed for high schools in South Africa, featuring CAPS curriculum integration, Grade 8-12 focus, and matric results section.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: southafrica-highschool-theme
Tags: custom-background, custom-colors, custom-header, custom-menu, featured-images, flexible-header, front-page-template, full-width-template, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready

This theme is designed to provide a comprehensive and engaging online presence for South African high schools.
It incorporates elements relevant to the South African education system, such as the CAPS curriculum and matric results.
*/

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif; /* Using a common web font */
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif; /* Using a common web font */
    margin-top: 0;
    margin-bottom: 15px;
    color: #000080; /* Navy Blue */
}

a {
    color: #000080;
    text-decoration: none;
}

a:hover {
    color: #ffd700; /* Gold */
}

/* Buttons */
.button {
    display: inline-block;
    background-color: #ffd700; /* Gold */
    color: #000080; /* Navy Blue */
    padding: 12px 25px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #e6c200; /* Darker Gold */
    color: #000080;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.site-header {
    background-color: #000080; /* Navy Blue */
    color: #ffd700; /* Gold */
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.site-branding {
    text-align: center;
    margin-bottom: 15px;
}

.site-title {
    margin: 0;
    font-size: 2.8em;
    line-height: 1;
}

.site-title a {
    color: #ffd700;
    text-decoration: none;
}

.site-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1em;
    margin-top: 5px;
}

/*--------------------------------------------------------------
# Navigation
--------------------------------------------------------------*/
.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    background-color: #000066; /* Darker Navy */
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 15px 20px;
    color: #ffd700;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.main-navigation a:hover {
    background-color: #00004d; /* Even Darker Navy */
}

/* Sub-menu styles (basic) */
.main-navigation ul ul {
    display: none;
    position: absolute;
    background-color: #000066;
    min-width: 200px;
    z-index: 99;
    flex-direction: column;
}

.main-navigation ul ul li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.main-navigation ul ul li:last-child {
    border-bottom: none;
}

.main-navigation ul li:hover > ul {
    display: flex;
}

/*--------------------------------------------------------------
# Content
--------------------------------------------------------------*/
.site-content {
    padding: 40px 0;
}

.entry-header {
    margin-bottom: 20px;
    text-align: center;
}

.entry-title {
    font-size: 2.2em;
    color: #000080;
}

.entry-meta {
    font-size: 0.9em;
    color: #777;
}

.post-thumbnail img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 20px;
}

.entry-content {
    margin-bottom: 30px;
}

/*--------------------------------------------------------------
# Front Page Sections
--------------------------------------------------------------*/
.hero-section {
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 100px 0;
    position: relative;
    margin-bottom: 40px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 128, 0.6); /* Navy Blue overlay */
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5em;
    color: #ffd700; /* Gold */
    margin-bottom: 15px;
}

.hero-description {
    font-size: 1.5em;
    margin-bottom: 30px;
}

.school-announcements, .news-events, .quick-links {
    margin-bottom: 40px;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.school-announcements h2, .news-events h2, .quick-links h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
}

.announcement-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.announcement-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.announcement-item .entry-title a {
    color: #000080;
}

.news-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.news-event-item {
    background-color: #fefefe;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.news-event-item:hover {
    transform: translateY(-5px);
}

.news-event-item .post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 0;
}

.news-event-item .entry-header, .news-event-item .entry-summary {
    padding: 15px;
}

.news-event-item .entry-title a {
    color: #000080;
    font-size: 1.3em;
}

.news-event-item .entry-meta {
    font-size: 0.85em;
    color: #999;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    text-align: center;
}

.quick-link-item a {
    display: block;
    background-color: #f0f0f0;
    padding: 25px;
    border-radius: 8px;
    color: #000080;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.quick-link-item a:hover {
    background-color: #000080; /* Navy Blue */
    color: #ffd700; /* Gold */
}

.quick-link-item h3 {
    margin-bottom: 10px;
    font-size: 1.4em;
}

.quick-link-item p {
    font-size: 0.9em;
    color: #555;
}

.quick-link-item a:hover p {
    color: #ffd700;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.site-footer {
    background-color: #00004d; /* Darker Navy */
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.site-footer a {
    color: #ffd700;
    text-decoration: none;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-bottom: 30px;
}

.footer-content > div {
    flex: 1;
    min-width: 250px;
    margin: 15px;
}

.footer-content h3 {
    color: #ffd700;
    margin-bottom: 20px;
}

.footer-content p {
    color: rgba(255, 255, 255, 0.8);
}

.social-links a {
    margin: 0 10px;
    font-size: 1.5em;
    display: inline-block;
}

.social-links img {
    width: 30px;
    height: 30px;
    vertical-align: middle;
}

.school-motto-area {
    margin-top: 20px;
}

.school-motto {
    font-style: italic;
    font-size: 1.1em;
    color: #ffd700;
}

.site-info {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 20px;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.6);
}

/*--------------------------------------------------------------
# Sidebar
--------------------------------------------------------------*/
.widget-area {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-top: 30px;
}

.widget-title {
    color: #000080;
    font-size: 1.5em;
    margin-bottom: 15px;
}

/*--------------------------------------------------------------
# Responsive Styles
--------------------------------------------------------------*/
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3em;
    }
    .hero-description {
        font-size: 1.3em;
    }
}

@media (max-width: 768px) {
    .site-branding {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .site-title {
        font-size: 2.2em;
    }

    .main-navigation ul {
        flex-direction: column;
        text-align: center;
    }

    .main-navigation li {
        width: 100%;
    }

    .main-navigation ul ul {
        position: static;
        width: 100%;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .main-navigation ul li:hover > ul {
        display: none; /* Hide sub-menus on hover for mobile, might need JS for toggle */
    }

    .hero-section {
        padding: 80px 0;
    }

    .hero-title {
        font-size: 2.5em;
    }

    .hero-description {
        font-size: 1.1em;
    }

    .news-events-grid, .quick-links-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-content > div {
        margin: 10px 0;
    }
}

@media (max-width: 480px) {
    .site-header, .site-footer {
        padding: 15px 0;
    }

    .site-title {
        font-size: 1.8em;
    }

    .site-description {
        font-size: 0.9em;
    }

    .main-navigation a {
        padding: 12px 15px;
        font-size: 0.9em;
    }

    .hero-section {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 2em;
    }

    .hero-description {
        font-size: 1em;
    }

    .button {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .school-announcements, .news-events, .quick-links {
        padding: 20px;
    }

    .school-announcements h2, .news-events h2, .quick-links h2 {
        font-size: 1.6em;
    }

    .footer-content h3 {
        font-size: 1.2em;
    }

    .social-links a {
        font-size: 1.2em;
    }
}
