/* ============================================================
   Ramaiah Composite PU College - Custom Styles
   Bootstrap 5 + Custom Overrides
   ============================================================ */

:root {
    --rc-primary: #1a3c6e;
    --rc-secondary: #c8102e;
    --rc-accent: #f0a500;
    --rc-dark: #0d1b2a;
    --rc-light: #f8f9fa;
    --rc-gray: #6c757d;
    --rc-body: #333;
    --rc-gradient: linear-gradient(135deg, var(--rc-primary), #2a5ca8);
    --rc-shadow: 0 4px 24px rgba(0, 0, 0, .08);
    --rc-radius: .75rem;
}

/* ---------- Global ---------- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--rc-body);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--rc-primary);
    transition: all .25s ease;
}

p.opacity-75.mb-4 {
    text-align: center;
}

a:hover {
    color: #d82d03;
}

section {
    padding: 3rem 0;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 500;
    color: var(--rc-primary);
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 60px;
    height: 4px;
    background: #d82d03;
    border-radius: 2px;
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    color: var(--rc-gray);
    font-size: 1.1rem;
    max-width: 640px;
}

.section-subtitle.mx-auto {
    margin: 0 auto;
}

.btn-primary {
    background: var(--rc-primary);
    border-color: var(--rc-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background: #14325a;
    border-color: #14325a;
}

.btn-accent {
    background: var(--rc-accent);
    border: none;
    color: var(--rc-dark);
    font-weight: 600;
}

.btn-accent:hover {
    background: #d99200;
    color: #fff;
}

.btn-danger {
    background: var(--rc-secondary);
    border-color: var(--rc-secondary);
}

/* ---------- Top Bar ---------- */
.top-bar {
    background: #361961;
    color: rgba(255, 255, 255, .85);
    font-size: .85rem;
    padding: .3rem 0;
    transition: transform .3s ease, margin-bottom .3s ease, opacity .3s ease;
}

.top-bar.hidden {
    transform: translateY(-100%);
    margin-bottom: calc(-1 * var(--topbar-h, 36px));
    opacity: 0;
    pointer-events: none;
}

.top-bar a {
    color: var(--rc-accent);
    text-decoration: none;
}

.top-bar a:hover {
    color: #fff;
}

/* ---------- Navbar ---------- */
.navbar-rcpuc {
    background: #fff;
    box-shadow: 0 2px 16px rgba(0, 0, 0, .06);
    transition: all .3s ease;
    padding: 0;
}

.navbar-rcpuc.scrolled {
    padding: .25rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .1);
}

.navbar-rcpuc .navbar-brand img {
    height: 90px;
    transition: height .3s ease;
}

.navbar-rcpuc.scrolled .navbar-brand img {
    height: 70px;
}

.navbar-rcpuc .nav-link {
    color: var(--rc-dark) !important;
    font-weight: 600;
    font-size: .92rem;
    padding: .5rem 1rem !important;
    text-transform: uppercase;
    letter-spacing: .5px;
    position: relative;
}

.navbar-rcpuc .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    transition: all .3s ease;
    transform: translateX(-50%);
}

.dropdown-toggle::after {
    margin-left: 0;
}

.navbar-rcpuc .nav-link:hover::after,
.navbar-rcpuc .nav-link.active::after {
    width: 60%;
}

.navbar-rcpuc .dropdown-menu {
    border: none;
    box-shadow: var(--rc-shadow);
    border-radius: var(--rc-radius);
    padding: .5rem 0;
}

.navbar-rcpuc .dropdown-item {
    font-weight: 500;
    padding: .5rem 1.25rem;
}

.navbar-rcpuc .dropdown-item:hover {
    background: var(--rc-primary);
    color: #fff;
}

/* ---------- Hero / Banner Carousel ---------- */
.hero-carousel {
    position: relative;
}

.hero-carousel .carousel-item {
    height: 80vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-carousel .carousel-item::before {
    content: '';
    position: absolute;
    inset: 0;
    /* background: linear-gradient(45deg, #c83130, transparent); */
}

.hero-carousel .carousel-caption {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    padding: 0;
    margin: auto;
    text-align: center;
}

.hero-carousel .carousel-caption h1 {
    font-size: 3.2rem;
    font-weight: 800;
    text-shadow: 9px 7px 12px rgb(0 0 0);
    line-height: 1.15;
}

.hero-carousel .carousel-caption p {
    font-size: 1.25rem;
    opacity: .9;
    margin-bottom: 1.5rem;
    text-shadow: 9px 7px 12px rgb(0 0 0);
}

.hero-carousel .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    opacity: .6;
}

.hero-carousel .carousel-indicators .active {
    background: var(--rc-accent);
    border-color: var(--rc-accent);
    opacity: 1;
}

@media (max-width: 768px) {
    .hero-carousel .carousel-item {
        height: 60vh;
        min-height: 400px;
    }

    .hero-carousel .carousel-caption {
        left: 5%;
        right: 5%;
        text-align: center;
    }

    .hero-carousel .carousel-caption h1 {
        font-size: 1.8rem;
    }

    .hero-carousel .carousel-caption p {
        font-size: 1rem;
    }
}

/* ---------- Marquee / Announcements ---------- */
.announcement-bar {
    background: #3a1d65;
    color: #fff;
    padding: .65rem 0;
    overflow: hidden;
    position: relative;
}

.announcement-bar .badge-new {
    background: var(--rc-secondary);
    color: #fff;
    font-weight: 700;
    padding: .3rem .75rem;
    border-radius: 4px;
    font-size: .8rem;
    margin-right: .75rem;
    display: inline-block;
    white-space: nowrap;
}

.marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 25s linear infinite;
}

.marquee-content a {
    color: #fff;
    text-decoration: none;
    margin-right: 3rem;
    font-weight: 500;
}

.marquee-content a:hover {
    color: var(--rc-accent);
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* ---------- Combinations Cards ---------- */
.combo-card {
    border: none;
    border-radius: var(--rc-radius);
    box-shadow: var(--rc-shadow);
    transition: all .3s ease;
    text-align: center;
    padding: 2rem 1.5rem;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.combo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--rc-gradient);
}

.combo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(26, 60, 110, .15);
}

.combo-card .combo-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(26, 60, 110, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.6rem;
    color: var(--rc-primary);
    font-weight: 700;
}

.combo-card h5 {
    font-weight: 700;
    color: var(--rc-primary);
}

.combo-card p {
    color: var(--rc-gray);
    font-size: .92rem;
}

/* ---------- Facility Cards ---------- */
.facility-card {
    background: #fff;
    border-radius: var(--rc-radius);
    box-shadow: var(--rc-shadow);
    padding: 2rem;
    text-align: center;
    transition: all .3s ease;
    height: 100%;
}

.facility-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(26, 60, 110, .12);
}

.facility-card .icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--rc-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 2rem;
    color: #fff;
}

.facility-card h5 {
    font-weight: 700;
    margin-bottom: .75rem;
}

/* ---------- Stats Counter ---------- */
.stats-section {
    background: var(--rc-gradient);
    color: #fff;
    padding: 4rem 0;
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" stroke="white" stroke-width=".3" fill="none" opacity=".08"/></svg>') repeat;
    opacity: .5;
}

.stat-item {
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-item .stat-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.stat-item .stat-label {
    font-size: .95rem;
    opacity: .85;
    margin-top: .5rem;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
    background: #fff;
    border-radius: var(--rc-radius);
    box-shadow: var(--rc-shadow);
    padding: 2rem;
    position: relative;
    height: 100%;
}

.testimonial-card::before {
    content: '\201C';
    font-size: 4rem;
    color: var(--rc-primary);
    opacity: .15;
    position: absolute;
    top: .5rem;
    left: 1.25rem;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card .testimonial-text {
    font-style: italic;
    color: #555;
    font-size: .95rem;
    line-height: 1.7;
}

.testimonial-card .testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: .75rem;
}

.testimonial-card .testimonial-author h6 {
    margin: 0;
    font-weight: 700;
    color: var(--rc-primary);
}

/* ---------- Events ---------- */
.event-card {
    border: none;
    border-radius: var(--rc-radius);
    overflow: hidden;
    box-shadow: var(--rc-shadow);
    transition: all .3s ease;
}

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .12);
}

.event-card img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.event-card .card-body {
    padding: 1.25rem;
}

.event-card .event-date {
    background: var(--rc-secondary);
    color: #fff;
    display: inline-block;
    padding: .25rem .75rem;
    border-radius: 4px;
    font-size: .8rem;
    font-weight: 600;
}

/* ---------- Page Header / Breadcrumb ---------- */
.page-header {
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 4rem 0rem;
    color: #fff;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 2.75rem;
    font-weight: 800;
    text-shadow: -4px 1px 1px #960d4f;
}

.page-header .fs-5 {
    text-shadow: -4px 1px 1px #960d4f;
    display: none !important;
}

.page-header .breadcrumb {
    background: none;
    margin: 0;
    padding: 0;
    display: none !important;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, .8);
    font-weight: 500;
}

.page-header .breadcrumb-item.active {
    color: var(--rc-accent);
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    content: '›';
    color: rgba(255, 255, 255, .5);
}

/* ---------- Footer ---------- */
.site-footer {
    background: linear-gradient(318deg, #9a1655, #30115c);
    color: rgba(255, 255, 255, .8);
    padding: 4rem 0 0;
}

.site-footer h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: .75rem;
}

.site-footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--rc-accent);
    border-radius: 2px;
}

.site-footer a {
    color: rgba(255, 255, 255, .7);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--rc-accent);
}

.site-footer ul {
    list-style: none;
    padding: 0;
}

.site-footer ul li {
    margin-bottom: .5rem;
}

/* .site-footer ul li a::before { content: '›  '; color: var(--rc-accent); } */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 1.25rem 0;
    margin-top: 2.5rem;
    font-size: .85rem;
    color: rgba(255, 255, 255, .5);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    margin-right: .5rem;
    transition: all .3s ease;
    font-size: 1.1rem;
}

.social-links a:hover {
    background: var(--rc-accent);
    color: var(--rc-dark);
    transform: translateY(-3px);
}

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--rc-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;
    box-shadow: 0 4px 16px rgba(26, 60, 110, .3);
    z-index: 999;
    border: none;
    cursor: pointer;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--rc-secondary);
    transform: translateY(-3px);
}

/* ---------- WhatsApp Float ---------- */
.whatsapp-float {
    position: fixed;
    bottom: 5.5rem;
    right: 2rem;
    z-index: 999;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    font-size: 1.6rem;
    box-shadow: 0 4px 16px rgba(37, 211, 102, .3);
    transition: all .3s ease;
}

.whatsapp-float a:hover {
    transform: scale(1.1);
}

/* ---------- Admin Panel Overrides ---------- */
.admin-sidebar {
    background: var(--rc-dark);
    min-height: 100vh;
    width: 260px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    padding-top: 1rem;
    transition: all .3s ease;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, .7);
    padding: .75rem 1.25rem;
    font-weight: 500;
    border-radius: 0;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.admin-content {
    margin-left: 260px;
    padding: 2rem;
    min-height: 100vh;
    background: #f0f2f5;
}

.admin-topbar {
    background: #fff;
    padding: 1rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
    margin: -2rem -2rem 2rem;
}

.admin-card {
    background: #fff;
    border-radius: var(--rc-radius);
    box-shadow: var(--rc-shadow);
    padding: 1.5rem;
}

.stat-widget {
    background: #fff;
    border-radius: var(--rc-radius);
    box-shadow: var(--rc-shadow);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-widget .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
}

/* ---------- Animations ---------- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all .6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.show {
        transform: translateX(0);
    }

    .admin-content {
        margin-left: 0;
    }

    section {
        padding: 3.5rem 0;
    }

    .section-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
    .stat-item .stat-number {
        font-size: 2.25rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header {
        padding: 4rem 0 3rem;
    }
}