/* --- RESET & VARIABLES --- */
:root {
    --primary-color: #1e4620; /* Deep green like standard school aesthetics */
    --accent-color: #f4b41a;  /* Gold/yellow for buttons and highlights */
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f9f9f9;
    --font-stack: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
}

/* --- MAIN HEADER CONTAINER --- */
.site-header {
    display: flex;
    flex-direction: column;
    width: 100%;
    /* Pattern background mimicking the slate/chalkboard texture */
background-color: #002222; /*This colour can be changed*/
background-image: url("https://unicms.in/apis/images/transparent-backgrounds/clean-textile.png");
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* --- BRANDING SECTION (FLEX) --- */
.header-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 1rem 1rem 1rem;
}

.logo-container {
    margin-bottom: 0.5rem;
}

.school-logo {
/*    height: 110px; */
    width: auto;
    filter: drop-shadow(0px 4px 8px rgba(0,0,0,0.3));
}

.title-container .main-title {
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 0.2rem;
}

.title-container .sub-title {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-bottom: 0.4rem;
}

.title-container .tagline {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 1px;
    color: #d1e2dd;
}

.title-container .contactLine {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 1px;
    color: #eeeeee;
}

/* --- FLEX HERO SECTION --- */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 5%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 500px;
    gap: 2rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #555;
}

.btn-primary {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--accent-color);
    color: #000;
    text-decoration: none;
    font-weight: 700;
    border-radius: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s, background-color 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background-color: #e0a316;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* --- FLEX GRID FOR FEATURES --- */
.features-section {
    padding: 5rem 5%;
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Using Flexbox wrap to handle a clean grid alternative without Bootstrap */
.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.feature-card {
    background: var(--text-light);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    flex: 1 1 calc(25% - 2rem); /* Dynamic resizing for 4 items in a row */
    min-width: 250px;
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 968px) {
    .hero-section {
        flex-direction: column-reverse; /* Puts text below image on smaller screens */
        text-align: center;
        padding: 3rem 5%;
    }

    .hero-content {
        max-width: 100%;
    }

    .feature-card {
        flex: 1 1 calc(50% - 2rem); /* Drop down to 2 items per row on tablets */
    }
}


/* --- RESPONSIVE BREAKPOINT (TABLETS & PHONES) --- */
@media (max-width: 768px) {
    .title-container .main-title {
        font-size: 1.6rem;
    }
    
    .title-container .sub-title {
        font-size: 1.1rem;
    }
}