/* ============================================
   SCHOOL WEBSITE - MASTER STYLESHEET
   ============================================ */

:root {
    /* Main Branding Colors */
    --navy-dark: #1a1a2e;
    --navy-light: #2a2a4a;
    --primary: #e91e63;        /* School Red/Pink */
    --primary-dark: #c2185b;
    --accent: #fbc02d;         /* Gold/Yellow */
    
    /* Neutral Palette */
    --white: #ffffff;
    --black: #0f172a;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-600: #475569;
    --gray-700: #334155;
    
    /* UI Helpers */
    --font-primary: 'Poppins', sans-serif;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--gray-700);
    background: var(--gray-50);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--navy-dark);
    line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.2rem); }
h3 { font-size: 1.4rem; }

p { color: var(--gray-600); }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(233, 30, 99, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.2);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--navy-dark);
    transform: translateY(-2px);
}

/* Top Bar */
.top-bar {
    background: var(--navy-dark);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.8rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-info {
    display: flex;
    gap: 20px;
}

.top-bar-info span {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.9;
}

.top-bar-info i {
    color: var(--primary);
    font-size: 0.85rem;
}

.top-bar-social {
    display: flex;
    gap: 12px;
}

.top-bar-social a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

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

/* Ticker Bar */
.ticker-bar {
    background: var(--gray-100);
    padding: 6px 0;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.85rem;
}

.ticker-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ticker-label {
    background: var(--primary);
    color: var(--white);
    padding: 2px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.ticker-slide a {
    color: var(--navy-dark);
    font-weight: 500;
}

/* Navigation */
.main-nav {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}

.main-nav.scrolled {
    padding: 6px 0;
    box-shadow: var(--shadow-md);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: 800;
    font-size: 1.2rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--navy-dark);
    line-height: 1;
    margin: 0;
    letter-spacing: -0.01em;
}

.logo-subtitle {
    color: var(--primary);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    margin-top: 3px;
    opacity: 0.9;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.nav-menu a {
    color: var(--gray-700);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 5px 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-menu a:hover::after, 
.nav-menu a.active::after {
    width: 100%;
}

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

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
    background: var(--navy-dark);
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.hero-slider img.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.3));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 700px;
}

.hero-badge {
    background: rgba(233, 30, 99, 0.2);
    color: var(--primary);
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: inline-block;
    border: 1px solid rgba(233, 30, 99, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 15px;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* Stats Bar */
.stats-bar {
    background: var(--white);
    padding: 30px 0;
    margin-top: -50px;
    position: relative;
    z-index: 10;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    margin-bottom: 60px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.stat-item {
    border-right: 1px solid var(--gray-200);
    padding: 0 10px;
}

.stat-item:last-child { border: none; }

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy-dark);
    display: block;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--gray-600);
}

/* Section Styling */
section {
    padding: 80px 0;
}

.latest-news-section {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
}

.latest-news-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(233, 30, 99, 0.08), transparent 42%);
    pointer-events: none;
}

.section-header {
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.section-header h2 {
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 8px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 45px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.section-header .left p {
    max-width: 560px;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    background: var(--white);
    color: var(--navy-dark);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
}

.btn-view-all:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.section-title {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 40px;
}

.section-title h2 {
    margin-bottom: 10px;
}

.section-title p {
    margin: 0 auto;
}

/* News Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

.card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.card-img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.card-img-placeholder {
    width: 100%;
    height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    color: var(--primary);
    font-size: 2rem;
}

.card-content {
    padding: 22px;
}

.card-content .badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.card-content h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.card-content h3 a {
    color: var(--navy-dark);
}

.card-content h3 a:hover {
    color: var(--primary);
}

.card-content p {
    font-size: 0.92rem;
    margin-bottom: 15px;
    color: var(--gray-600);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--gray-100);
    padding-top: 12px;
    font-size: 0.82rem;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
}

.read-more:hover {
    color: var(--primary-dark);
}

/* Events */
.events-section {
    background: var(--gray-50);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.event-item {
    display: flex;
    gap: 18px;
    padding: 24px;
    background: var(--white);
    border-radius: 18px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.event-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.event-date-box {
    min-width: 76px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    font-weight: 700;
    text-align: center;
}

.event-date-box .day {
    font-size: 1.35rem;
    line-height: 1;
}

.event-date-box .month {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

.event-body h4 {
    margin-bottom: 8px;
    color: var(--navy-dark);
}

.event-body p {
    margin-bottom: 10px;
    font-size: 0.92rem;
}

.event-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.86rem;
    color: var(--primary);
    font-weight: 600;
}

/* Testimonials */
.testimonials-section {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-light) 100%);
    color: var(--white);
}

.testimonials-section .section-title h2,
.testimonials-section .section-title p {
    color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-item {
    background: rgba(255, 255, 255, 0.96);
    color: var(--gray-700);
    padding: 28px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.testimonial-item::before {
    content: '“';
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 4rem;
    color: rgba(233, 30, 99, 0.12);
    line-height: 1;
    font-family: Georgia, serif;
}

.stars {
    color: var(--accent);
    margin-bottom: 14px;
    letter-spacing: 0.18em;
}

.quote {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gray-600);
    margin-bottom: 20px;
}

.author {
    border-top: 1px solid var(--gray-100);
    padding-top: 16px;
}

.author-info .name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy-dark);
}

.author-info .role {
    font-size: 0.85rem;
    color: var(--primary);
    margin-top: 2px;
}

/* Footer */
.footer {
    background: var(--navy-dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer h3, .footer h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
}

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

.footer-column ul a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.footer-column ul a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* Responsive */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cards-grid { grid-template-columns: 1fr 1fr; }
    .testimonials-grid { grid-template-columns: 1fr 1fr; }
    .events-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .top-bar-info { display: none; }
    .nav-menu { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .stat-item { border: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .cards-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 15px; }
    .testimonial-item { padding: 24px; }
    .event-item { flex-direction: column; }
    .event-date-box { width: 100%; min-height: 72px; }
}
