/* ============================================
   Lions School and College, Rangpur - Frontend
   Simple, clean, edit-friendly. Green primary
   (matching typical BD school branding).
   ============================================ */

:root {
    --primary: #0a5c36;
    --primary-dark: #074026;
    --primary-light: #e8f3ee;
    --accent: #f39c12;
    --text: #2c3e50;
    --muted: #6c757d;
}

* { box-sizing: border-box; }

body {
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: #f7f9fc;
    line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* Top bar */
.topbar {
    background: var(--primary-dark);
    color: #fff;
    font-size: 0.85rem;
}
.topbar a { color: #fff; }

/* Header */
.site-header {
    background: #fff;
    border-bottom: 3px solid var(--primary);
}
.site-title {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 700;
}
.site-tagline {
    font-size: 0.85rem;
}

/* Navigation */
.main-nav {
    background: var(--primary);
    padding: 0;
}
.main-nav .nav-link {
    color: #fff !important;
    padding: 15px 20px !important;
    font-weight: 500;
    transition: background 0.2s;
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    background: var(--primary-dark);
}
.main-nav .dropdown-menu {
    border-radius: 0;
    border: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.navbar-toggler {
    color: #fff;
    border-color: #fff;
    margin: 10px;
}
.navbar-toggler-icon {
    filter: invert(1);
}

/* Hero */
.hero {
    position: relative;
    height: 480px;
    background: linear-gradient(rgba(10,92,54,0.55), rgba(10,92,54,0.55)), url('../images/hero-default.jpg') center/cover;
    color: #fff;
    display: flex;
    align-items: center;
}
.hero-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Section */
.section {
    padding: 60px 0;
}
.section-title {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}
.section-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: var(--accent);
}
.section-title.text-center:after {
    left: 50%;
    transform: translateX(-50%);
}

/* Cards */
.card {
    border: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Notice ticker */
.notice-ticker {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    padding: 12px 20px;
}
.notice-ticker .label {
    background: var(--primary);
    color: #fff;
    padding: 4px 12px;
    font-weight: 600;
    font-size: 0.85rem;
}
.notice-item {
    display: flex;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px dashed #ddd;
}
.notice-item:last-child { border-bottom: 0; }
.notice-date {
    background: var(--primary);
    color: #fff;
    padding: 6px 10px;
    text-align: center;
    min-width: 60px;
    border-radius: 4px;
    font-size: 0.75rem;
    line-height: 1.1;
    margin-right: 12px;
}
.notice-date .day { font-size: 1.2rem; font-weight: 700; display: block; }

/* Principal message */
.principal-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.principal-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    margin: 0 auto 20px;
    display: block;
}

/* Footer */
.site-footer {
    background: var(--primary-dark);
    color: #fff;
    margin-top: 60px;
}
.site-footer h5 {
    color: var(--accent);
    margin-bottom: 20px;
    font-weight: 600;
}
.site-footer a {
    color: #fff;
    opacity: 0.85;
}
.site-footer a:hover {
    opacity: 1;
    color: var(--accent);
}
.site-footer ul li {
    padding: 4px 0;
}
.social-links a {
    font-size: 1.3rem;
    margin-right: 12px;
}

/* Module list grid */
.module-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.module-item .image {
    height: 200px;
    background: #eee center/cover no-repeat;
}
.module-item .body {
    padding: 20px;
    flex: 1;
}
.module-item h5 {
    color: var(--primary);
    font-weight: 600;
}

/* Breadcrumb */
.page-header {
    background: var(--primary-light);
    padding: 30px 0;
    border-bottom: 1px solid #e0e0e0;
}
.page-header h1 {
    color: var(--primary);
    margin: 0;
    font-size: 2rem;
}

/* Utility */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .site-title { font-size: 1.1rem; }
    .hero { height: 320px; }
    .hero-content h2 { font-size: 1.5rem; }
    .section { padding: 40px 0; }
}
