:root {
    --primary-color: #004A80;
    /* Adventist Royal Blue */
    --primary-light: #005ea3;
    --secondary-color: #FFD700;
    /* Gold */
    --accent-color: #e91e63;
    --text-dark: #2c3e50;
    --text-light: #ecf0f1;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    /* Accounts for the fixed header */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.main-header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: var(--primary-color);
    color: white;
    padding: 8px 5%;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
}

.logo {
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.logo-text h2 {
    font-size: 1.5rem;
    font-weight: 800;
}

@media (max-width: 480px) {
    .logo img {
        height: 35px !important;
    }

    .logo-text h2 {
        font-size: 1.2rem;
    }

    .logo-text small {
        font-size: 0.55rem !important;
    }
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

nav ul li a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--primary-color);
}

nav ul li a:hover {
    color: var(--secondary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: var(--shadow-md);
        gap: 15px;
        z-index: 1000;
    }

    nav ul.show {
        display: flex;
    }

    .top-bar {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }

    .nav-container {
        padding: 10px 5%;
    }
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 85vh;
    min-height: 500px;
    overflow: hidden;
    background: #000;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    z-index: 0;
}

.slide-content {
    position: relative;
    z-index: 5;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
    opacity: 0;
}

.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.slide-content h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: clamp(1rem, 2vw, 1.4rem);
    margin-bottom: 30px;
    opacity: 0.9;
}

/* School Logo Overlay */
.school-logo-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 20;
    pointer-events: none;
    animation: fadeInDown 1s ease-out;
}

.school-logo-overlay img {
    height: 220px;
    width: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
    transition: var(--transition);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .school-logo-overlay {
        top: 20px;
        left: 20px;
    }

    .school-logo-overlay img {
        height: 90px;
    }
}

/* Slider arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.slider-arrow:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
}

.arrow-prev {
    left: 30px;
}

.arrow-next {
    right: 30px;
}

@media (max-width: 768px) {
    .hero-slider {
        height: 70vh;
    }

    .slider-arrow {
        display: none;
    }
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background: white;
    transform: translateY(-3px);
}

.section-container {
    padding: 80px 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    border-bottom: 4px solid var(--secondary-color);
    display: inline-block;
    padding-bottom: 10px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-img {
    height: 200px;
    background: #ddd;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 25px;
}

footer {
    background: var(--primary-color);
    color: white;
    padding: 60px 5% 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Post Detail Styles */
.post-header {
    padding: 80px 5% 40px;
    background: #fdfdfd;
    text-align: center;
}

.post-meta {
    font-size: 0.9rem;
    color: var(--primary-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.post-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.2;
    max-width: 1000px;
    margin: 0 auto;
    color: var(--primary-color);
}

.post-featured-image {
    width: 90%;
    max-width: 1100px;
    height: 500px;
    margin: -40px auto 60px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 10;
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-body {
    max-width: 800px;
    margin: 0 auto 100px;
    padding: 0 20px;
    font-size: 1.15rem;
    line-height: 1.9;
    color: #444;
}

.post-body p {
    margin-bottom: 25px;
}

.post-body h2,
.post-body h3 {
    margin: 40px 0 20px;
    color: var(--primary-color);
}

.post-footer {
    max-width: 800px;
    margin: 0 auto 100px;
    padding: 40px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.share-btns {
    display: flex;
    gap: 15px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f7fe;
    color: var(--primary-color);
    transition: var(--transition);
}

.share-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .post-header {
        padding: 60px 20px 30px;
    }

    .post-featured-image {
        height: 300px;
        width: 100%;
        border-radius: 0;
        margin-top: 0;
    }

    .post-body {
        font-size: 1.1rem;
    }
}