/* =========================================
   MODERN HOME PAGE REDESIGN
   ========================================= */

/* --- Typography & Variables --- */
:root {
    --primary-color: #0056b3;
    /* Adjust to match brand */
    --secondary-color: #17a2b8;
    --dark-overlay: rgba(0, 0, 0, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* --- Header & Logo --- */
.frontend-logo {
    height: 110px !important;
    width: auto !important;
    max-width: 100%;
    object-fit: contain;
}

.u-header__navbar-brand-center {
    padding-top: 15px;
    padding-bottom: 15px;
}

/* Header Gradient & Styling */
.u-header__section {
    background: transparent !important;
    box-shadow: none !important;
}

.u-header__nav-link {
    color: #fff !important;
    font-weight: 500;
    font-size: 0.95rem;
}

.u-header__nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

.u-header__nav-item.active .u-header__nav-link {
    color: #fff !important;
    font-weight: 700;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 600px;
    width: 100%;
    overflow: hidden;
    background-color: #222;
    /* Fallback background */
}

/* Ensure slick track takes full height if needed */
.hero-section .slick-list,
.hero-section .slick-track {
    height: 100%;
}

.hero-slide {
    height: 600px;
    /* Fixed height for slides */
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 20px;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

.btn-hero {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* --- Feature Cards (About) --- */
.feature-section {
    padding: 100px 0;
    background-color: #f9fbfd;
}

.modern-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.modern-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
}

/* --- Profile Cards (Teachers) --- */
.profile-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 20px;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.profile-img-wrapper {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.profile-card:hover .profile-img {
    transform: scale(1.05);
}

.profile-info {
    padding: 20px;
}

.profile-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #333;
}

.profile-role {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: block;
}

/* --- Event Cards --- */
.event-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    display: flex;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.event-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.event-date-box {
    background: var(--primary-color);
    color: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    text-align: center;
}

.event-day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.event-month {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-details {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.event-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.event-title a:hover {
    color: var(--primary-color);
}

.event-meta {
    font-size: 0.9rem;
    color: #777;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-section {
        min-height: 400px;
    }

    .hero-slide {
        height: 400px;
    }
}