/* AB International School - Homepage Redesign */
:root {
    --primary-red: #990000;
    --primary-gold: #D4AF37;
    --dark-bg: #1a1a2e;
    --light-bg: #f8f9fa;
    --text-color: #333;
    --text-light: #fff;
    --transition: all 0.3s ease;
}

/* Global Overrides for Home */
.home-page-body {
    overflow-x: hidden;
}

.p0 {
    padding: 0 !important;
}

/* Full Width Main Content for Home */
.home-content-wrapper {
    width: 100%;
    padding: 0;
    margin: 0;
    display: block;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 600px;
    width: 100%;
    overflow: hidden;
    margin-top: -20px;
    /* Offset potential default margins from alert/header */
}

/* Ensure Carousel Items take full height */
.hero-slider,
.hero-slider .carousel-inner,
.hero-slider .item {
    height: 100%;
}

.hero-slider .item {
    background-size: cover;
    background-position: center;
    position: relative;
    width: 100%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Semi-transparent overlay */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(26, 26, 46, 0.8) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 20px;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: var(--primary-gold);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    color: #fff;
}

.btn-hero {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: var(--transition);
    margin: 10px;
    display: inline-block;
    text-decoration: none;
}

.btn-primary-custom {
    background-color: var(--primary-red);
    color: #fff;
    border: 2px solid var(--primary-red);
}

.btn-primary-custom:hover {
    background-color: #fff;
    border-color: #fff;
    color: var(--primary-red);
}

.btn-secondary-custom {
    background-color: transparent;
    color: var(--primary-gold);
    border: 2px solid var(--primary-gold);
}

.btn-secondary-custom:hover {
    background-color: var(--primary-gold);
    color: #000;
}

/* Features / Quick Access Section */
.features-section {
    padding: 60px 15px;
    background-color: #fff;
    position: relative;
    margin-top: -60px;
    /* Overlap hero */
    z-index: 10;
}

.feature-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: var(--transition);
    height: 100%;
    border-bottom: 4px solid transparent;
    margin-bottom: 30px;
    /* Spacing for mobile */
}

.feature-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--primary-gold);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 20px;
    display: block;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-bg);
}

/* About Section */
.about-section {
    padding: 80px 0;
    background-color: var(--light-bg);
    overflow: hidden;
}

.about-section .row {
    display: flex;
    /* Flexbox for vertical alignment */
    flex-wrap: wrap;
    align-items: center;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    width: 100%;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-red);
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    margin-top: 0;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-gold);
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.about-img {
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border: 5px solid #fff;
    width: 100%;
    height: auto;
    display: block;
}

/* Stats Section */
.stats-section {
    padding: 60px 0;
    background-color: var(--primary-red);
    color: #fff;
}

.stat-item {
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-gold);
    display: block;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Latest News / Updates */
.updates-section {
    padding: 80px 0;
}

.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    margin-bottom: 30px;
    display: flex;
    flex-direction: row;
    /* Horizontal layout for news items if needed, but vertical is better for grid */
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.news-date {
    background-color: var(--primary-gold);
    color: #000;
    padding: 15px;
    text-align: center;
    font-weight: 700;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 5px;
    align-items: center;
}

.news-date span {
    font-size: 1.2rem;
}

.news-content-inner {
    padding: 20px;
    flex-grow: 1;
}

.news-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-bg);
    line-height: 1.4;
    margin-top: 0;
}

.news-title a {
    color: inherit;
    text-decoration: none;
}

.news-title a:hover {
    color: var(--primary-red);
}

/* Call to Action */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-red) 0%, #600000 100%);
    text-align: center;
    color: #fff;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-gold);
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .about-section .col-md-6 {
        margin-bottom: 30px;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {

    .hero-section,
    .hero-slider .item {
        height: 60vh;
        min-height: 500px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .features-section {
        margin-top: 0;
    }

    .feature-card {
        margin-bottom: 20px;
    }

    .about-section .row {
        display: block;
    }
}