/* =========================
   GLOBAL
========================= */
body {
    font-family: Arial, sans-serif;
}

/* =========================
   HERO SECTION
========================= */
.hero {
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;

    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                url('school.jpg');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* =========================
   COMMON ELEMENTS
========================= */
.section-title {
    font-weight: bold;
    margin-bottom: 20px;
}

/* Cards */
.card,
.topper-card,
.staff-card {
    border-radius: 15px;
    transition: 0.3s ease;
}

.card:hover,
.topper-card:hover,
.staff-card:hover {
    transform: translateY(-5px);
}

/* =========================
   TOPPERS SECTION
========================= */
.topper-scroll {
    max-height: 420px;
    overflow-y: auto;
    padding-right: 6px;
}

/* Scrollbar */
.topper-scroll::-webkit-scrollbar {
    width: 6px;
}

.topper-scroll::-webkit-scrollbar-thumb {
    background: #0d6efd;
    border-radius: 10px;
}

/* Featured topper */
.featured-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid gold;
}

/* =========================
   GALLERY
========================= */
.gallery-img {
    height: 450px;
    width: 75%;
    object-fit: cover;
    transition: 0.3s;
}

.gallery-img:hover {
    transform: scale(1.02);
}

/* =========================
   CUSTOM SECTION
========================= */
.custom-section {
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    border-radius: 10px;
}

/* =========================
   TICKER (LATEST UPDATES)
========================= */
.ticker-wrapper {
    overflow: hidden;
    white-space: nowrap;
}

.ticker,
.ticker-track {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-left 25s linear infinite;
}

.ticker-item {
    display: inline-block;
    margin: 0 40px;
    font-weight: 500;
}

.ticker-item::before {
    content: "● ";
    color: #0d6efd;
}

/* Animation (only once defined) */
@keyframes scroll-left {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* =========================
   STAFF DESIGN
========================= */
.staff-card {
    padding-top: 10px;
}

.staff-img-box {
    width: 110px; /* reduced size */
    height: 110px;
    margin: 15px auto 8px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.staff-img-box img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    background: white;
}

.staff-card h6 {
    font-size: 14px;
}

.staff-card small {
    font-size: 12px;
}

.staff-section {
    margin-bottom: 60px;
}

/* =========================
   LATEST UPDATES BAR
========================= */
.latest-updates {
    background: #f8f9fa;
}

.updates-bar {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.updates-label {
    background: #0d6efd;
    color: white;
    padding: 12px 20px;
    font-weight: bold;
    white-space: nowrap;
}

.updates-ticker {
    overflow: hidden;
    flex: 1;
}

/* =========================
   LEADERSHIP TEXT
========================= */
.leadership-text {
    text-align: justify;
    line-height: 1.7;
    font-size: 15px;
}

/* =========================
   FORM / LABELS
========================= */
.card-body label {
    font-weight: 600;
    margin-bottom: 5px;
}

/* =========================
   FOOTER
========================= */
.footer-premium {
    background: linear-gradient(135deg, #0d6efd, #003c8f);
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #ffc107;
    padding-left: 5px;
}

/* Social Icons */
.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    color: white;
    font-size: 16px;
    transition: 0.3s;
}

.social-icon:hover {
    background: #ffc107;
    color: black;
    transform: scale(1.1);
}

/* =========================
   BUTTONS & CONTACT
========================= */
.btn-primary {
    transition: 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.card h5 {
    letter-spacing: 0.3px;
}