/* Base Styles */
:root {
    --primary: #0d6efd;
    --secondary: #6c757d;
    --success: #198754;
    --info: #0dcaf0;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #212529;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Hero Slider */
.hero-slider .carousel-item {
    height: 80vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
}

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

.hero-slider .carousel-caption {
    bottom: 30%;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.hero-slider .carousel-caption h5 {
    font-size: 2.5rem;
    font-weight: 700;
}

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

/* Notice Board */
.notice-board {
    background-color: #fff;
    border-radius: 5px;
    padding: 10px 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.marquee {
    overflow: hidden;
    position: relative;
}

.marquee ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    animation: scroll 20s linear infinite;
}

.marquee li {
    white-space: nowrap;
    padding: 0 20px;
    position: relative;
}

.marquee li:not(:last-child):after {
    content: "•";
    position: absolute;
    right: -5px;
    color: #ccc;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Section Titles */
.section-title h2 {
    position: relative;
    padding-bottom: 15px;
}

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

/* Course Cards */
.course-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.course-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Staff Cards */
.staff-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

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

.staff-img img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 5px solid rgba(13, 110, 253, 0.1);
}

/* Testimonials */
.testimonial-item {
    padding: 30px;
}

.testimonial-img img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 5px solid rgba(255,255,255,0.5);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    z-index: 99;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-slider .carousel-item {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-slider .carousel-caption h5 {
        font-size: 1.8rem;
    }
    
    .hero-slider .carousel-caption p {
        font-size: 1rem;
    }
    
    .notice-board {
        margin-top: 15px;
    }
}

/* Course Cards */
.course-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.course-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.course-price .text-danger {
    font-size: 0.9em;
}

/* Staff Cards */
.staff-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

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

.staff-img img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 5px solid rgba(13, 110, 253, 0.1);
}

/* Gallery */
.gallery-card {
    transition: all 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
}

.gallery-card img {
    height: 200px;
    object-fit: cover;
}

/* Messages */
.message-card {
    transition: all 0.3s ease;
}

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

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

/* 404 Page */
.display-1 {
    font-size: 8rem;
    font-weight: 700;
    line-height: 1;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .display-1 {
        font-size: 5rem;
    }
    
    .course-card, .staff-card, .message-card {
        margin-bottom: 20px;
    }
    
    .department-section {
        margin-bottom: 30px;
    }
}