/* DR RIZVI COLLEGE - MAIN STYLESHEET */

:root {
    --primary-color: #001f3f;
    --secondary-color: #4d5bc6;
    --accent-color: #e9e7e0;
    --text-dark: #262424;
    --text-light: #fff;
    --light-bg: #9792e1;
    --border-color: #8385b7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #eeeeee;
}

/* Student Portal Compatibility */
body.student-portal body,
body.student-portal {
    background-color: #f5f5f5 !important;
}
body.student-portal .header {
    position: relative !important;
    z-index: 1 !important;
}
body.student-portal .site-header,
body.student-portal #wr {
    position: relative !important;
    z-index: 1 !important;
}
.student-portal .profile-card,
.student-portal .sidebar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}
/* ad container box */
.adcontainer
{
height: 100px;
width: 100%;
float:left;
background-color: var(--secondary-color);
}
 .btn-primary-custom {
            background-color: var(--secondary-color);
            border: none;
            color: white;
            transition: background-color 0.3s;
        }

        .btn-primary-custom:hover {
            background-color: var(--highlight-color);
        }

        .hero-section {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            color: white;
           
           
        }

        .hero-content h1 {
            font-size: 3rem;
            font-weight: bold;
        }

        .hero-content p {
            font-size: 1.2rem;
        }

        .counter-box h3 {
            font-size: 2rem;
            font-weight: bold;
        }

        .counter-box p {
            font-size: 1rem;
        }

        .section-title h2 {
            color: var(--primary-color);
            font-weight: bold;
        }

        .section-title p {
            color: var(--text-color);
        }

        .card {
            border: none;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s;
        }

        .card:hover {
            transform: translateY(-10px);
        }

        .card-title {
            color: var(--primary-color);
            font-weight: bold;
        }

        .card-icon i {
            font-size: 2.5rem;
            color: var(--secondary-color);
        }
/* ========== NAVBAR ========== */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    color: #fff !important;
    letter-spacing: 1px;
}

.navbar-brand span {
    color: var(--accent-color);
}

.navbar-logo {
    height: 60px;
    width: auto;
    max-width: 70px;
    object-fit: contain;
    filter: brightness(1.1);
}

.nav-link {
    color: rgba(255,255,255,0.8) !important;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
}

.nav-link:hover {
    color: var(--accent-color) !important;
    transform: translateY(-2px);
}

.dropdown-menu {
    background: var(--secondary-color);
    border: none;
    border-radius: 0.5rem;
    animation: slideDown 0.3s ease;
}

.dropdown-item {
    color: rgba(255,255,255,0.8) !important;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--primary-color);
    color: var(--accent-color) !important;
    padding-left: 2rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInSlider {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ========== SITE HEADER ========== */
.site-header {
    position: relative;
    z-index: 999;
}

.navbar-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: sticky !important;
    top: 170px;
    width: 100%;
    z-index: 1000;
}

.site-header .top-bar {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.site-header .navbar-brand {
    font-size: 1.3rem;
}

.site-header .navbar-logo {
    height: 50px;
    width: auto;
    max-width: 60px;
}

.top-contact {
    font-size: 0.9rem;
}

/* Responsive header */
@media (max-width: 991px) {
    .site-header .top-bar .container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .site-header .navbar-brand {
        font-size: 1.1rem;
    }
    
    .site-header .navbar-logo {
        height: 40px;
        max-width: 50px;
    }
    
    .top-contact {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .site-header .navbar-brand span {
        display: none;
    }
    
    .site-header .navbar-brand::after {
        content: 'DRCE';
        font-size: 1rem;
    }
}

/* ========== HERO SECTION ========== */
.hero-section {
    position: relative;
    margin: 0;
    padding: 0;
    height: calc(100vh - 70px); /* adjust to nav height if needed */
    min-height: 500px;
    background: transparent;
    overflow: hidden;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    color: white;
    text-align: center;
}

.hero-section::before {
    content: '';
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><circle cx="100" cy="100" r="80" fill="rgba(255,255,255,0.05)"/><circle cx="800" cy="30" r="100" fill="rgba(255,193,7,0.05)"/></svg>');
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero-section p {
    font-size: 1.3rem;
   
    opacity: 0.9;
}

.btn-primary-custom {
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 0.5rem;
}

.btn-primary-custom:hover {
    background: #ffb300;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255,193,7,0.3);
    color: var(--primary-color);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== IMAGE SLIDER ========== */
.image-slider {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    top: 0;
    left: 0;
}

.slider-slide.active {
    opacity: 1;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: rgb(240, 235, 235);
    border: none;
    font-size: 2rem;
    padding: 15px 20px;
    cursor: pointer;
    z-index: 10;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.dot.active {
    background: var(--accent-color);
    width: 15px;
    height: 15px;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* ========== SECTIONS ========== */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 1rem auto;
    display: block;
    border-radius: 2px;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ========== CARDS ========== */
.card {
    border: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.card-body {
    padding: 2rem;
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 10px 10px 0 0;
    padding: 1.5rem;
}

.card-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.card-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* ========== COURSES SECTION ========== */
.course-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.course-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.course-header h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.course-content {
    padding: 2rem;
}

.course-info {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.course-info i {
    color: var(--accent-color);
    margin-right: 1rem;
    font-size: 1.2rem;
    min-width: 25px;
}

/* ========== GALLERY ========== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 31, 63, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--accent-color);
    font-size: 2rem;
}

/* ========== FEATURES WITH COUNTER ========== */
.counter-box {
    text-align: center;
    padding: 2rem;
}

.counter-box h3 {
    color: var(--accent-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.counter-box p {
    color: var(--text-light);
    font-size: 1rem;
}

/* ========== BUTTONS ========== */
.btn {
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 31, 63, 0.3);
    color: white;
}

.btn-warning {
    background: var(--accent-color);
    color: var(--primary-color);
    border: 2px solid var(--accent-color);
}

.btn-warning:hover {
    background: transparent;
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* ========== FOOTER ========== */
footer {
    background: var(--primary-color) !important;
    color: white;
    padding: 50px 0 20px;
    margin-top: 60px;
}

footer h5, footer h6 {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--accent-color) !important;
}

footer hr {
    opacity: 0.3;
}

/* ========== SCROLL TO TOP BUTTON ========== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* ========== FORMS ========== */
.form-control {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.2);
}

.form-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* ========== LOADING ANIMATION ========== */
.spinner-border {
    border-color: rgba(0, 31, 63, 0.15);
    border-right-color: var(--accent-color);
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* ========== TESTIMONIALS ========== */
.testimonial-card {
    background: white;
    border-left: 4px solid var(--accent-color);
    border-radius: 5px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
}

/* ========== MARQUEE NOTIFICATION TICKER ========== */
.notification-ticker {
    position: relative;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    overflow: hidden;
    z-index: 998;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    margin: 10px 0;
}

.notification-track {
    display: flex;
    height: 100%;
    animation: marquee 25s linear infinite;
    white-space: nowrap;
}

.notification-track:hover {
    animation-play-state: paused;
}

.notification-item {
    display: flex;
    align-items: center;
    padding: 0 40px;
    min-width: fit-content;
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.notification-item i {
    font-size: 1.2rem;
    margin-right: 10px;
}

.notification-item::after {
    content: '';
    width: 100vw;
    height: 1px;
    flex-shrink: 0;
}

.notification-item span {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.admission-banner {
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .notification-ticker {
        top: 160px;
        height: 40px;
    }
    
    .notification-item {
        font-size: 0.9rem;
        padding: 0 30px;
    }
    
    @keyframes marquee {
        0% {
            transform: translateX(100%);
        }
        100% {
            transform: translateX(-50%);
        }
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .notification-ticker {
        width: 300px;
        right: -350px;
        height: 50px;
        font-size: 0.9rem;
        animation: slideInRightNotification 0.5s ease-out 1s forwards, slideOutNotification 0.5s ease-in 4s forwards;
    }
    
    .notification-content {
        gap: 10px;
        padding: 0 15px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section {
        padding: 80px 0;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .gallery-item img {
        height: 150px;
    }

    .scroll-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }

    section {
        padding: 40px 0;
    }

    .navbar-nav {
        text-align: center;
    }

    .nav-link {
        margin: 0.5rem 0 !important;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .card-body {
        padding: 1rem;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ========== ALERT STYLES ========== */
.alert {
    border: none;
    border-radius: 5px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
}

/* ========== TABLE STYLES ========== */
.table {
    border-collapse: collapse;
}

.table thead th {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    font-weight: 600;
    border: none;
    padding: 1rem;
}

.table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: var(--light-bg);
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
}

/* Badge Styles */
.badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
}

.badge-success {
    background: #28a745;
}

.badge-danger {
    background: #dc3545;
}

.badge-warning {
    background: #ffc107;
    color: black;
}

/* ========== MANAGEMENT PROFILES ========== */
.management-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.management-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 20px;
}

.management-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.profile-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
}

.profile-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.profile-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: all 0.3s ease;
}

.profile-card:hover .profile-image img {
    transform: scale(1.05);
}

.profile-info {
    padding: 30px;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.profile-title {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.profile-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.profile-contact {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 10px 0;
}

.profile-contact a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.profile-contact a:hover {
    color: var(--primary-color);
}


/* ========== PAGE TITLE SECTION WITH BACKGROUND IMAGE ========== */
.page-title-section {
    position: relative;
    padding: 100px 0 60px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 300px;
}

.page-title-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 31, 63, 0.85) 0%, rgba(0, 61, 122, 0.75) 100%);
    z-index: 1;
}

.page-title-section .container {
    position: relative;
    z-index: 1;
}

.page-title-section h1 {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.page-title-section p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
    transform: translateY(30px);
}

.page-title-section .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-title-section .breadcrumb-item {
    color: rgba(255, 255, 255, 0.8);
}

.page-title-section .breadcrumb-item a {
    color: var(--accent-color);
    text-decoration: none;
}

.page-title-section .breadcrumb-item a:hover {
    color: white;
}

.page-title-section .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

.page-title-section .breadcrumb-item.active {
    color: white;
}

.badge-info {
    background: #17a2b8;
}
