/*
Theme Name: S. B. Garda College Theme
Description: Custom styles for S. B. Garda College website.
Version: 1.0
Author: Gemini
*/

/* ==========================================================
   1. General and Base Styles
   ========================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==========================================================
   2. Header & Branding
   ========================================================== */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e1e1e1;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-logo {
    margin-right: 15px;
}

.site-title {
    font-size: 1.82rem;
    margin: 0;
}

.site-title a {
    text-decoration: none;
    color: #003366;
}

.site-description {
    font-size: 1.2rem;
    color: #00f;
    margin: 5px 0 0;
}

/* ==========================================================
   3. Navigation
   ========================================================== */
.main-navigation {
    background-color: #003366;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.menu li {
    position: relative;
}

.menu li a {
    display: block;
    padding: 15px 20px;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
}

.menu li a:hover,
.menu li a.active {
    background-color: #004488;
    color: #f44336;
}

/* Submenu/Dropdown Styles */
.menu li.menu-item-has-children {
    position: relative;
    z-index: 999;
}

.submenu {
    display: none; /* Submenu is hidden by default */
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #004488;
    list-style: none;
    
    margin: 0;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 9999;
}

.menu li.menu-item-has-children:hover > .submenu {
    display: block; /* This rule shows the submenu when the parent li is hovered */
}

.submenu li a {
    background-color: #004488;
    padding: 10px 20px;
    
    text-transform: none;
    font-weight: 400;
}

.submenu li a:hover {
    background-color: #004488;
    color: #f44336;
}

/* ==========================================================
   4. Slider & Hero Section (Index Page Specific)
   ========================================================== */
.slick-slider {
    position: relative;
    max-height: 500px;
    overflow: hidden;
}

.slider-item {
    height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end; /* Align contents to the bottom */
    justify-content: flex-start; /* Align contents to the left */
    color: #ffffff;
    text-align: left;
    position: relative;
}

.main-slider-contents {
    /* Removed the transparent background here to make the text directly on the image */
    padding: 20px;
    position: absolute;
    bottom: 20px;
    left: 20px;
}

.main-slider-contents .title a {
    color: #ffffff;
    text-decoration: none;
    font-size: 2.5rem;
}

/* ==========================================================
   5. Content Sections
   ========================================================== */
.home-content {
    background-color: #f4f4f4;
    padding: 40px 20px;
    margin-top: 30px;
    border-radius: 8px;
}

.home-content h2,
.news-section h2 {
    font-size: 2rem;
    color: #003366;
    text-align: center;
    margin-bottom: 20px;
}

.home-content p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 30px;
}

.home-content h3 {
    font-size: 1.8rem;
    color: #003366;
    margin-bottom: 15px;
    text-align: center;
}

.home-content ul {
    list-style-type: none;
    padding: 0;
    text-align: center;
}

.home-content ul li {
    font-size: 1.1rem;
    margin: 10px 0;
}

.home-content ul li a {
    color: #003366;
    text-decoration: none;
    transition: color 0.3s ease;
}

.home-content ul li a:hover {
    color: #f44336;
}

/* News & Notices Section (General) */
.news-section {
    background-color: #fff;
    padding: 40px 20px;
    margin-top: 50px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 0 20px;
    width: 100%;
}

.news-item {
    background-color: #fff;
    border: 1px solid #e1e1e1;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.news-item h3 {
    font-size: 1.6rem;
    color: #333;
    margin-bottom: 15px;
}

.news-item a {
    display: inline-block;
    color: #f44336;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.news-item a:hover {
    color: #f44336;
}

/* ==========================================================
   6. Footer
   ========================================================== */
footer#colophon {
    background-color: #003366;
    color: white;
    padding: 10px 20px;
    font-size: 0.9rem;
    text-align: center;
}

footer#colophon a {
    color: #f44336;
    text-decoration: none;
}

footer#colophon a:hover {
    color: #fff;
}

/* ==========================================================
   7. Responsive Design
   ========================================================== */
@media (max-width: 768px) {
    .site-branding {
        flex-direction: column;
        text-align: center;
    }

    .site-logo {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .main-navigation .menu {
        flex-direction: column;
    }

    .main-navigation .menu li a {
        padding: 10px 15px;
    }

    .submenu {
        position: static;
        box-shadow: none;
        width: 100%;
        padding: 0;
    }
    
    .news-list {
        grid-template-columns: 1fr;
    }
}
