/* ================================
   REVS ABACUS ACADEMY – BRAND CSS
================================ */


/* home page start */
/* Brand Colors */
:root {
    --revs-purple: #5A3D8C;
    --revs-purple-dark: #3F2A66;
    --revs-light: #F5F3FA;
    --revs-black: #111111;
    --revs-danger: #dc3545;
}

/* Backgrounds */
.bg-revs {
    background: linear-gradient(135deg, var(--revs-purple), var(--revs-purple-dark));
    color: #ffffff;
}

.section-light {
    background-color: var(--revs-light);
}

/* Text */
.text-revs {
    color: var(--revs-purple) !important;
}

/* Buttons */
.btn-revs {
    background-color: transparent;
    color: var(--revs-purple);
    border: 2px solid var(--revs-purple);
    transition: all 0.3s ease;
}

.btn-outline-revs {
    background-color: var(--revs-purple-dark) !important;
    color: #ffffff !important;
    border: 2px solid var(--revs-purple-dark) !important;
}

.btn-revs:hover,
.btn-revs:focus,
.btn-revs:active {
    background-color: var(--revs-purple) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(90, 61, 140, 0.3);
    border-color: var(--revs-purple) !important;
}

/* Danger variant with same shape/behavior as btn-revs */
.btn-revs-danger {
    background-color: transparent;
    color: var(--revs-danger);
    border: 2px solid var(--revs-danger);
    transition: all 0.3s ease;
}

.btn-revs-danger:hover,
.btn-revs-danger:focus,
.btn-revs-danger:active {
    background-color: var(--revs-danger) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.3);
    border-color: var(--revs-danger) !important;
}

/* Fix for potential white-on-white issues in light buttons */
.btn-light:hover {
    background-color: #e2e6ea;
    color: #212529;
}

/* Cards */
.section-light {
    background-color: #f8f9fa;
}

/* Force perfect circle */
.section-light .card {
    width: 220px;
    aspect-ratio: 1 / 1;
    /* 🔥 key line */
    border-radius: 50%;
    margin: auto;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect */
.section-light .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Prevent Bootstrap stretching */
.section-light .card-body {
    flex: 0 0 auto;
    text-align: center;
    padding: 0;
}

/* Text styles */
.text-revs {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0d6efd;
}

.section-light p {
    font-size: 0.95rem;
    font-weight: 500;
}


/* Blog Card */
.blog-card img {
    border-radius: 14px 14px 0 0;
}

/* Gallery */
.gallery-hover img {
    transition: all 0.3s ease;
    border: 3px solid transparent;
    border-radius: 14px;
}

.gallery-hover img:hover {
    transform: scale(1.05);
    border-color: var(--revs-purple);
}

/* Accordion (FAQ) */
.accordion-button:not(.collapsed) {
    background-color: var(--revs-purple);
    color: #ffffff;
}

.accordion-button:focus {
    box-shadow: none;
}

/* Hero Image */
.hero-section img {
    height: 500px;
    width: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .hero-section img {
        height: 300px;
    }
}

/* home page end */


/* nav start */
/* ======================================
   NAVBAR – REVS ABACUS ACADEMY (FINAL)
====================================== */

.navbar-revs {
    background-color: var(--revs-purple-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Brand */
.navbar-revs .navbar-brand {
    color: #ffffff;
}

/* Nav Links */
.navbar-revs .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

/* Hover & Active */
.navbar-revs .nav-link:hover,
.navbar-revs .nav-link.active {
    color: lightsteelblue;
}

.navbar-revs .nav-link:hover::after,
.navbar-revs .nav-link.active::after {
    width: 100%;
}

/* Navbar toggler (mobile) */
.navbar-revs .navbar-toggler {
    border: none;
    box-shadow: none;
}

.navbar-revs .navbar-toggler:focus {
    box-shadow: none;
}


/* Register button */
.navbar-revs .btn-light {
    font-weight: 600;
    border-radius: 8px;
    padding: 6px 14px;
}

/* nav end */

/* Mobile Menu Fixes */
@media (max-width: 991px) {
    .navbar-revs .navbar-collapse {
        background: var(--revs-purple-dark);
        padding: 1rem;
        border-radius: 10px;
        margin-top: 10px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
}


/* footer start */
/* Footer base */
.footer-revs {
    position: relative;
    background: linear-gradient(180deg, #2a143f, #12091d);
    overflow: hidden;
    color: #ffffff;
}

/* Wave shape on top */
.footer-revs::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 120px;

    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23f8f9fa' d='M0,64 C120,80 240,96 360,90 480,84 600,56 720,48 840,40 960,52 1080,64 1200,76 1320,88 1440,80 L1440,0 L0,0 Z'/%3E%3C/svg%3E") no-repeat center top;

    background-size: cover;
    z-index: 1;
}

/* Push footer content above wave */
.footer-revs .container {
    position: relative;
    z-index: 2;
    padding-top: 80px;
}

/* Footer titles */
.footer-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

/* Footer links */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 6px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Contact layout */
.footer-contact .item {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.footer-contact a {
    color: white;
    text-decoration: none;
}

/* Divider */
.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 2rem 0;
}

/* footer end */


/* about page start */
/* ============================= */
/* ABOUT PAGE – REVS SIGNATURE */
/* ============================= */

/* Brand colors */
:root {
    --revs-purple: #5B3A8E;
    --revs-purple-dark: #3e2766;
    --revs-soft: #f6f2fb;
}

/* Page background */
.about-page {
    background:
        radial-gradient(circle at top right, rgba(91, 58, 142, 0.08), transparent 45%),
        linear-gradient(180deg, #faf8ff 0%, #ffffff 100%);
}

/* Heading & text */
.text-revs {
    color: var(--revs-purple);
    letter-spacing: 0.4px;
}

.about-page h2,
.about-page h4 {
    position: relative;
}

.about-page p.lead {
    max-width: 850px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Badge */
.bg-revs {
    background: linear-gradient(135deg,
            var(--revs-purple),
            var(--revs-purple-dark));
    color: #fff;
    /* border-radius: 30px; */
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 8px 18px rgba(91, 58, 142, 0.35);
}

/* Divider */
.revs-divider {
    width: 90px;
    height: 4px;
    background: linear-gradient(to right,
            var(--revs-purple),
            var(--revs-purple-dark));
    border-radius: 10px;
    border: none;
    margin-top: 25px;
}

/* Cards – glass effect */
.revs-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border-radius: 18px;
    border: 1px solid rgba(91, 58, 142, 0.12);
    box-shadow:
        0 10px 30px rgba(91, 58, 142, 0.12),
        inset 0 0 0 rgba(255, 255, 255, 0.2);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

/* Card accent line */
.revs-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg,
            transparent 60%,
            rgba(91, 58, 142, 0.08),
            transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}

/* Hover */
.revs-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 18px 45px rgba(91, 58, 142, 0.25);
}

.revs-card:hover::before {
    opacity: 1;
}

/* Card content */
.revs-card h5 {
    color: var(--revs-purple);
    font-size: 1.15rem;
}

.revs-card p {
    font-size: 0.95rem;
}

/* Section spacing */
.about-page .mb-5 {
    margin-bottom: 4rem !important;
}

/* about page end */


/* Courses Page Start */
/* COURSES PAGE */
.courses-page {
    background: linear-gradient(180deg, #f7f4fb 0%, #ffffff 100%);
}

/* Purple Theme */
.text-revs {
    color: #5B3A8E;
}

.bg-revs {
    background-color: #5B3A8E;
    color: #ffffff;
}

/* Divider */
.revs-divider {
    width: 90px;
    height: 3px;
    background-color: #5B3A8E;
    border: none;
    margin-top: 20px;
}

/* Cards */
.revs-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(91, 58, 142, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.revs-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(91, 58, 142, 0.22);
}

/* Age Badge */
.age-badge {
    background-color: rgba(91, 58, 142, 0.1);
    color: #5B3A8E;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 20px;
    text-align: center;
}

/* Courses Page end */


/* Gallery Page start */
/* Header */
.gallery-header {
    color: #5C4DB1;
    font-weight: 700;
    letter-spacing: 1px;
}

.gallery-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Card */
.gallery-card {
    border: 0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(92, 77, 177, 0.4);
    /* logo purple shadow */
}

/* Image */
.gallery-img {
    height: 250px;
    object-fit: cover;
    width: 100%;
    display: block;
}

/* Title */
.gallery-title {
    background-color: #5C4DB1;
    text-align: center;
    padding: 0.5rem 0;
}

.gallery-title h6 {
    color: #fff;
    margin: 0;
    font-weight: 600;
}

/* Gallery Page end */


/* Blog Page Start */
/* Heading */
.heading-primary {
    color: #4B0082;
    /* Purple from your logo */
}

/* Blog Card */
.blog-card {
    overflow: hidden;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.blog-img {
    height: 220px;
    width: 100%;
    object-fit: contain;
    object-position: center;
    background-color: #ffffff;
    display: block;
    border-radius: 14px 14px 0 0;
}

@media (max-width: 576px) {
    .blog-img {
        height: 160px;
    }
}

/* Fix for admin panel button hover visibility */
.btn-light:hover,
.btn-white:hover {
    color: var(--revs-purple) !important;
    background-color: #e2e6ea !important;
    border-color: #dae0e5 !important;
}

/* Utility: Purple badge for category labels */
.badge.bg-purple {
    background-color: var(--revs-purple) !important;
    color: #ffffff !important;
    border: 1px solid var(--revs-purple-dark);
}

/* Pagination: Purple theme */
.revs-pagination .pagination {
    margin-bottom: 0;
}

.revs-pagination .page-link {
    color: var(--revs-purple);
    border-color: var(--revs-purple);
}

.revs-pagination .page-link:hover {
    color: #ffffff;
    background-color: var(--revs-purple);
    border-color: var(--revs-purple);
}

.revs-pagination .page-item.active .page-link {
    color: #ffffff;
    background-color: var(--revs-purple);
    border-color: var(--revs-purple);
}

.revs-pagination .page-item.disabled .page-link {
    color: #b0b0b0;
    border-color: #ddd;
}