:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --background-color: #f8f9fa;
}

/* News Section */
.news-section {
    background: #0d6efd;
    background-clip: padding-box;
    -webkit-background-clip: padding-box;
    padding: 10px 0;
    margin-bottom: 0;
    position: relative;
    z-index: 1000;
}

.news-container {
    display: flex;
    align-items: center;
}

.news-header {
    min-width: 120px;
    margin-right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 6px 15px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.news-flash {
    color: white;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-flash::before {
    content: '📢';
    font-size: 1.2rem;
}

.news-marquee {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    background-clip: padding-box;
    -webkit-background-clip: padding-box;
    border-radius: 4px;
    padding: 5px 10px;
}

.news-item {
    color: white;
    margin-right: 20px;
    font-size: 0.95rem;
}

.news-item:last-child {
    margin-right: 0;
}

marquee:hover {
    cursor: pointer;
}

/* Main Content Area */
.main-content {
    position: relative;
}

/* Header Styles */
.transparent-header {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 10px 0;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.transparent-header.scrolled {
    position: fixed;
    top: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.transparent-header .navbar {
    padding: 0;
}

.transparent-header .navbar-brand {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.logo-img {
    height: 40px;
    margin-right: 10px;
}

.transparent-header .nav-link {
    color: var(--secondary-color) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    background-clip: padding-box;
    -webkit-background-clip: padding-box;
}

.transparent-header .nav-link:hover,
.transparent-header .nav-link.active {
    color: var(--primary-color) !important;
    background-color: rgba(13, 110, 253, 0.1);
    border-radius: 4px;
    background-clip: padding-box;
    -webkit-background-clip: padding-box;
}

.transparent-header .navbar-toggler {
    border-color: rgba(0, 0, 0, 0.2);
    padding: 4px 8px;
}

.transparent-header .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Slider Styles */
.slider-section {
    position: relative;
}

#mainSlider {
    position: relative;
}

.carousel-item {
    height: 100vh;
    min-height: 500px;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 1;
}

.carousel-caption {
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    max-width: 800px;
    margin: 0 auto;
}

.carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.carousel-caption .lead {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Page Header */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/header-bg.jpg');
    background-size: cover;
    background-position: center;
    background-clip: padding-box;
    -webkit-background-clip: padding-box;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header .background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    background-clip: padding-box;
    -webkit-background-clip: padding-box;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

.page-header .breadcrumb-item a {
    text-decoration: none;
}

.page-header .breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.95);
        padding: 1rem;
        border-radius: 8px;
        margin-top: 10px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
}

@media (max-width: 768px) {
    .carousel-item {
        height: 100vh;
    }

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

    .carousel-caption .lead {
        font-size: 1.1rem;
    }

    .news-container {
        margin: 0;
    }
    
    .news-flash {
        font-size: 0.9rem;
    }

    .transparent-header {
        top: 15px;
    }

    .transparent-header .navbar-brand {
        font-size: 1.1rem;
    }

    .logo-img {
        height: 30px;
    }
}

/* Statistics Section Styles */
.statistics-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.statistics-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary-color), #0099ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-subtitle {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    transition: all 0.3s ease;
    border: none;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.shadow-hover {
    transition: all 0.3s ease;
}

.shadow-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    position: relative;
    z-index: 1;
}

.stat-icon::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, rgba(13, 110, 253, 0.1), rgba(13, 110, 253, 0.05));
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.stat-icon i {
    background: linear-gradient(45deg, var(--primary-color), #0099ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.1));
}

.counter-wrapper {
    position: relative;
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.counter-number {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin: 0;
    padding: 0;
}

.gradient-text {
    background: linear-gradient(45deg, var(--primary-color), #0099ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.counter-plus {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-left: 5px;
    opacity: 0.7;
}

.stat-title {
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    padding: 0;
    position: relative;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #0099ff);
    border-radius: 3px;
    opacity: 0;
    transition: all 0.3s ease;
}

.stat-card:hover::after {
    opacity: 1;
    width: 80px;
}

@media (max-width: 768px) {
    .statistics-section {
        padding: 60px 0;
    }

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

    .section-subtitle {
        font-size: 1rem;
    }
    
    .counter-number {
        font-size: 2.5rem;
    }
    
    .counter-plus {
        font-size: 1.8rem;
    }
    
    .stat-title {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .statistics-section {
        padding: 40px 0;
    }

    .counter-number {
        font-size: 2rem;
    }
    
    .counter-plus {
        font-size: 1.5rem;
    }
}

/* Faculty Styles */
.faculty-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    background: #fff;
    overflow: hidden;
}

.faculty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.faculty-image {
    transition: transform 0.5s ease;
}

.faculty-card:hover .faculty-image {
    transform: scale(1.05);
}

.featured-faculty .card-body {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.faculty-card .card-title {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.faculty-card .btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

@media (max-width: 768px) {
    .faculty-card {
        margin-bottom: 1.5rem;
    }
    
    .faculty-image {
        height: 250px !important;
    }
}

/* Principal's Message Section */
.principal-message {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.principal-message .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    background-clip: padding-box;
    -webkit-background-clip: padding-box;
}

.principal-message .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.principal-image-wrapper img {
    transition: transform 0.3s ease;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.principal-image-wrapper img:hover {
    transform: scale(1.05);
}

.message-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #495057;
    margin-bottom: 1.5rem;
}

.message-text:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .principal-message .card-body {
        padding: 2rem !important;
    }
    
    .principal-image-wrapper img {
        max-width: 150px !important;
    }
    
    .message-text {
        font-size: 1rem;
        line-height: 1.6;
    }
}

.news-ticker {
    background: #f8f9fa;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    background-clip: padding-box;
    -webkit-background-clip: padding-box;
}

/* Sports Section */
.sport-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.sport-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.sport-card .card-img-top {
    transition: transform 0.5s ease;
}

.sport-card:hover .card-img-top {
    transform: scale(1.1);
}

.sport-overlay {
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sport-card:hover .sport-overlay {
    opacity: 1;
}

.sport-overlay .btn {
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.sport-card:hover .sport-overlay .btn {
    transform: translateY(0);
}

/* Course Content Section */
.course-content-section {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.content-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: none;
    overflow: hidden;
}

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

.content-icon {
    color: #0d6efd;
    text-align: center;
    margin-bottom: 1rem;
}

.content-icon i {
    font-size: 2.5rem;
}

.content-meta {
    margin: 1rem 0;
    color: #6c757d;
}

.content-meta small {
    display: block;
    margin-bottom: 0.5rem;
}

.content-actions {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}

.content-actions .btn {
    flex: 1;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.section-title {
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #0d6efd;
}

.section-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* News Section Styles */
.news-section {
    background: #0d6efd;
    color: white;
    padding: 10px 0;
}

.news-container {
    display: flex;
    align-items: center;
}

.news-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 5px;
    margin-right: 20px;
}

.news-flash {
    margin: 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-marquee {
    flex: 1;
    overflow: hidden;
}

.news-item {
    margin-right: 30px;
    font-weight: 500;
}

/* Transparent Header */
.transparent-header {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.transparent-header .navbar {
    padding: 15px 0;
}

.logo-img {
    height: 50px;
    margin-right: 10px;
}

.navbar-nav .nav-link {
    color: #2c3e50;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #0d6efd;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .news-header {
        display: none;
    }
    
    .content-card {
        margin-bottom: 20px;
    }
}

/* Contact Section Styles */
.contact-section {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.contact-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.contact-info-item {
    padding: 1.5rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.contact-info-item:hover {
    transform: translateY(-5px);
}

.contact-info-item i {
    color: #0d6efd;
}

.contact-info-item h5 {
    color: #2c3e50;
    margin: 1rem 0;
}

.contact-info-item p {
    color: #6c757d;
    margin: 0;
}

.form-control {
    border-radius: 8px;
    padding: 0.8rem 1rem;
    border: 1px solid #dee2e6;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-label {
    color: #2c3e50;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.btn-primary {
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
}
