.amref-homepage {
    font-family: Arial, sans-serif;
    background: #f7f9fb;
    color: #222;
}

/* Floating Login Button */
.floating-login-btn {
    position: fixed;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: #c8102e;
    color: #fff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(0,0,0,0.25);
    transition: 0.3s ease;
    font-size: 13px;
}

.floating-login-btn i {
    font-size: 22px;
    margin-bottom: 4px;
}

.floating-login-btn:hover {
    background: #991026;
    color: #fff;
    transform: translateY(-50%) scale(1.08);
    text-decoration: none;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    min-height: 520px;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.75), rgba(0,0,0,0.25));
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-content {
    position: relative;
    z-index: 3;
    max-width: 680px;
    padding: 150px 8%;
    color: #fff;
}

.slide-content h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 18px;
}

.slide-content p {
    font-size: 20px;
    line-height: 1.6;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    border: none;
    background: rgba(255,255,255,0.25);
    color: #fff;
    font-size: 34px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
}

.slider-btn:hover {
    background: rgba(255,255,255,0.45);
}

.slider-btn.prev {
    left: 25px;
}

.slider-btn.next {
    right: 25px;
}

/* Feature Cards */
.feature-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding: 70px 8%;
    background: #fff;
}

.feature-card {
    background: #fff;
    padding: 35px 28px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-top: 5px solid #c8102e;
    transform: translateY(45px);
    opacity: 0;
    transition: 1s ease;
}

.feature-card.show {
    transform: translateY(0);
    opacity: 1;
}

.feature-card i {
    font-size: 38px;
    color: #c8102e;
    margin-bottom: 18px;
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
    font-weight: 700;
}

.feature-card p {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
}

/* Courses */
.courses-section {
    padding: 70px 8%;
    background: #f7f9fb;
}

.section-heading {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 45px;
}

.section-heading h2 {
    font-size: 36px;
    font-weight: 800;
    color: #222;
}

.section-heading p {
    font-size: 17px;
    color: #555;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.course-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}
.course-card.show {
    opacity: 1;
    transform: translateY(0);
}

.course-card:hover {
    transform: translateY(-8px);
}

.course-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    background-color: #d9d9d9;
}

.course-body {
    padding: 28px;
}

.course-body h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.course-body p {
    color: #555;
    line-height: 1.7;
    font-size: 15px;
}

.course-btn {
    display: inline-block;
    margin-top: 18px;
    background: #c8102e;
    color: #fff;
    padding: 11px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
}

.course-btn:hover {
    background: #991026;
    color: #fff;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 992px) {
    .feature-row,
    .course-grid {
        grid-template-columns: 1fr 1fr;
    }

    .slide-content h1 {
        font-size: 38px;
    }
}

@media (max-width: 768px) {
    .hero-slider{
        width:100vw;
        margin-left:calc(50% - 50vw);
        margin-right:calc(50% - 50vw);
    }
    .slide-content {
        padding: 130px 8%;
    }

    .slide-content h1 {
        font-size: 32px;
    }

    .slide-content p {
        font-size: 17px;
    }

    .feature-row,
    .course-grid {
        grid-template-columns: 1fr;
    }

    .floating-login-btn {
        width: 64px;
        height: 64px;
        font-size: 11px;
        left: 10px;
    }

    .slider-btn {
        width: 42px;
        height: 42px;
        font-size: 26px;
    }
}
#region-main,
#region-main-box,
#page,
#page-content,
.pagelayout-frontpage #page-content,
.pagelayout-frontpage #region-main,
.pagelayout-frontpage .container,
.pagelayout-frontpage .container-fluid {

    max-width: 98% !important;
    width: 98% !important;
    margin: 0 auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Make our homepage use the full available width */
.amref-homepage {
    width: 100%;
    max-width: 100%;
}