/*
Theme Name: Haripur School Theme
Theme URI: https://example.com/haripur-school-theme
Author: Antigravity
Author URI: https://example.com
Description: A modern School Management System theme.
Version: 2.0.0
Text Domain: haripur-school
*/

@import url('https://fonts.googleapis.com/css2?family=Tiro+Bangla:ital@0;1&family=Inter:wght@400;600&display=swap');

:root {
    --primary: #1b5e20;
    /* Deep Green */
    --primary-light: #4c8c4a;
    --secondary: #c62828;
    /* Brick Red */
    --accent: #ffb300;
    --dark: #212121;
    --light: #f5f5f5;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --font-bn: 'Tiro Bangla', serif;
    --font-en: 'Inter', sans-serif;
}

body {
    font-family: var(--font-bn);
    color: var(--dark);
    background-color: #f0f2f5;
    line-height: 1.6;
    margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5em;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: 0.3s;
}

a:hover {
    color: var(--secondary);
}

.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 1. Navbar */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: var(--primary);
    color: var(--white);
    font-size: 0.85rem;
    padding: 8px 0;
    font-family: var(--font-en);
}

.top-bar span {
    margin-right: 20px;
}

.main-header {
    padding: 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-title {
    font-size: 2.2rem;
    margin: 0;
}

.site-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.main-navigation a {
    padding: 10px 15px;
    border-radius: 4px;
    font-weight: 600;
    color: var(--dark);
}

.main-navigation a:hover,
.main-navigation .current_page_item>a {
    background: var(--primary-light);
    color: var(--white);
}

/* 2. Hero Section */
.hero-block {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://placehold.co/1920x800/1b5e20/fff?text=Haripur+High+School') center/cover;
    color: var(--white);
    padding: 150px 0;
    text-align: center;
    border-radius: 0 0 50px 50px;
    margin-bottom: 50px;
}

.hero-block h2 {
    color: var(--white);
    font-size: 3.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.hero-block p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px;
}

.btn {
    display: inline-block;
    background: var(--secondary);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(198, 40, 40, 0.4);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(198, 40, 40, 0.6);
    color: var(--white);
}

/* 3. Cards & Grids */
.section-heading {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
}

.section-heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 10px auto 0;
    border-radius: 2px;
}

.teacher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.teacher-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    padding: 30px 20px;
    border-top: 5px solid var(--primary);
    transition: transform 0.3s;
}

.teacher-card:hover {
    transform: translateY(-10px);
}

.teacher-img img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e0e0e0;
    margin-bottom: 20px;
}

.teacher-card h3 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--dark);
}

.teacher-card .desig {
    color: var(--secondary);
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.teacher-card .sub {
    color: #666;
    font-size: 0.9rem;
}

.notice-list-wrapper {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 0;
    overflow: hidden;
}

.notice-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.notice-item:hover {
    background: #f9f9f9;
}

.notice-date {
    background: var(--primary-light);
    color: var(--white);
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    min-width: 80px;
    margin-right: 20px;
    font-family: var(--font-en);
    line-height: 1.2;
}

.notice-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
}

/* 4. Admission Form */
.admission-form {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
    border-top: 5px solid var(--accent);
}

.form-group label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    display: block;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
}

.btn-submit {
    background: var(--primary);
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
    margin-top: 20px;
}

/* Dashboard */
.role-dashboard {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

/* Auto Generated Content Helpers */
.headmaster-block {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 40px;
    align-items: center;
    margin: 40px 0;
}

.headmaster-block img {
    border-radius: 12px;
    width: 300px;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .headmaster-block {
        flex-direction: column;
        text-align: center;
    }

    .hero-block h2 {
        font-size: 2.5rem;
    }

    .main-navigation ul {
        flex-direction: column;
        text-align: center;
    }
}