/* 
   Green Hills Academy - Color Palette
   Primary Green: #004d40
   Secondary Gold: #ffd700
   Deep Blue: #1a237e
   Light Base: #f4f7f6
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --primary-color: #004d40;
    --primary-dark: #002d24;
    --secondary-color: #ffd700;
    --accent-color: #1a237e;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f4f7f6;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --transition-speed: 0.3s;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-color);
}

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

ul {
    list-style: none;
}

/* --- Top Bar --- */
.top-bar {
    background-color: var(--primary-dark);
    color: white;
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.top-bar .info span {
    margin-right: 20px;
}

.top-bar .social a {
    color: white;
    margin-left: 15px;
    font-size: 1.1rem;
}

.top-bar .social a:hover {
    color: var(--secondary-color);
}

/* --- Navbar --- */
.header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
}

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

.logo-container img {
    height: 60px;
    margin-right: 15px;
}

.logo-text h1 {
    font-size: 1.5rem;
    margin-bottom: 0px;
}

.logo-text p {
    font-size: 0.8rem;
    color: var(--text-light);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: var(--primary-color);
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
}

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

.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* --- Slider Section --- */
.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slider-item.active {
    opacity: 1;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 20px;
}

.slider-overlay h2 {
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slider-overlay p {
    font-size: 1.2rem;
    max-width: 700px;
    margin-bottom: 20px;
}

/* --- Section Styling --- */
.section-padding {
    padding: 60px 10%;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* --- Welcome / About --- */
.welcome-container {
    display: flex;
    gap: 40px;
    align-items: center;
}

.welcome-text {
    flex: 2;
}

.welcome-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 5px solid white;
}

.welcome-image img {
    width: 100%;
    display: block;
}

/* --- Notice Board --- */
.home-row {
    display: flex;
    gap: 30px;
}

.notice-board {
    flex: 1;
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--secondary-color);
}

.notice-scroller {
    height: 300px;
    overflow-y: hidden;
    position: relative;
}

.notice-list {
    position: absolute;
    width: 100%;
    animation: scrollNotice 20s linear infinite;
}

.notice-item {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.notice-item .date {
    font-size: 0.8rem;
    color: var(--accent-color);
    font-weight: 600;
}

@keyframes scrollNotice {
    0% { top: 0; }
    100% { top: -100%; }
}

.notice-board:hover .notice-list {
    animation-play-state: paused;
}

/* --- Courses / Info Cards --- */
.home-info {
    flex: 2;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    border-bottom: 4px solid var(--primary-color);
}

.info-card:hover {
    transform: translateY(-10px);
}

.info-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* --- Footer --- */
.footer {
    background-color: var(--primary-dark);
    color: #ccc;
    padding: 60px 5% 20px;
}

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

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

.footer-column p, .footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #ccc;
}

.footer-column a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .nav-links {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .welcome-container {
        flex-direction: column;
    }
    .home-row {
        flex-direction: column;
    }
}
