/* 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 {
    width: 150px;
    height: 150px;
    max-width: min(100%, 150px);
    margin-left: auto;
    margin-right: auto;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 5px solid rgba(13, 110, 253, 0.1);
}

.staff-img img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* 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);
}

/* 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;
    }
}

/* Homepage middle sections — classic split layout (distinct from other templates) */
.site-classic .clx-icon-round {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}
@media (min-width: 992px) {
    .site-classic .clx-side-sticky { position: sticky; top: 5rem; }
}
.site-classic .clx-staff-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}
.site-classic .clx-staff-row:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 28px rgba(13, 110, 253, 0.12);
}
.site-classic .clx-staff-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.site-classic .clx-staff-avatar img { width: 100%; height: 100%; object-fit: cover; }
.site-classic .clx-staff-chev { flex-shrink: 0; opacity: 0.6; }

.site-classic .clx-msg-band { background: #fff; }
.site-classic .clx-msg-band-alt { background: #f8f9fa; }
.site-classic .clx-msg-avatar { border: 4px solid #fff; }

.site-classic .clx-tst-frame .carousel-control-prev,
.site-classic .clx-tst-frame .carousel-control-next { width: 2.5rem; }
.site-classic .clx-tst-card {
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    min-height: 320px;
}
.site-classic .clx-tst-face { width: 88px; height: 88px; object-fit: cover; }

.site-classic .clx-news-hero-img { height: 100%; min-height: 220px; }
.site-classic .clx-news-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.site-classic .clx-news-thumb { height: 180px; object-fit: cover; }
.site-classic .clx-news-card { border-radius: 1rem; overflow: hidden; }