/* ================= Attractive Background Pattern ================= */
body {
    background-color: #f4f7f6;
    background-image: radial-gradient(var(--primary-color) 1px, transparent 1px), radial-gradient(var(--primary-color) 1px, #f4f7f6 1px);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
    background-attachment: fixed;
}

.content-wrapper-bg {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}

.banner-container { margin-bottom: 25px; }
.custom-slider { border-radius: 15px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.carousel-item img { width: 100%; height: auto; aspect-ratio: 1640 / 624; object-fit: cover; }

/* News Ticker */
.news-ticker-container {
    margin-bottom: 30px; background: #fff; height: 45px; border-radius: 50px; display: flex; align-items: center; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); border: 1px solid #eee;
}
.ticker-label {
    background: var(--primary-color); color: #fff; padding: 0 25px; height: 100%; display: flex; align-items: center; font-weight: 700; font-size: 14px; white-space: nowrap; position: relative; z-index: 2; border-radius: 50px 0 0 50px;
}
.ticker-label i { margin-right: 12px; font-size: 16px; } 
.ticker-label::after {
    content: ''; position: absolute; right: -15px; border-top: 22px solid transparent; border-bottom: 23px solid transparent; border-left: 15px solid var(--primary-color);
}
.ticker-content { flex-grow: 1; overflow: hidden; white-space: nowrap; position: relative; }
.ticker-text-scroll { display: inline-block; padding-left: 100%; animation: ticker-scroll 35s linear infinite; }
.ticker-text-scroll:hover { animation-play-state: paused; }
.ticker-item { color: #444; text-decoration: none; font-weight: 600; font-size: 15px; margin-right: 50px; transition: 0.3s; }
.ticker-item:hover { color: var(--primary-color); }
.ticker-item i { color: var(--primary-color); margin-right: 8px; }

@keyframes ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* Feature Cards */
.feature-card {
    background: #fff; border-radius: 15px; padding: 25px; height: 100%; border: none; box-shadow: 0 5px 20px rgba(0,0,0,0.04); transition: 0.3s; display: flex; align-items: center;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.icon-circle { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-right: 15px; flex-shrink: 0; }
.card-title-text { font-weight: 700; font-size: 20px; margin-bottom: 5px; color: #2d3436; }
.card-desc { font-size: 13px; color: #636e72; line-height: 1.5; margin-bottom: 12px; }
.btn-action { border: 1px solid var(--primary-color); color: var(--primary-color); border-radius: 50px; padding: 4px 15px; font-weight: 600; font-size: 13px; transition: 0.3s; display: inline-block; text-decoration: none; }
.btn-action:hover { background-color: var(--primary-color); color: #fff; }

/* Highlight Cards */
.highlight-card { border-radius: 15px; border: none; overflow: hidden; position: relative; transition: 0.3s; color: #fff; }
.highlight-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.15); }
.highlight-card .bg-shape { position: absolute; right: -30px; top: -30px; width: 150px; height: 150px; background: rgba(255,255,255,0.1); border-radius: 50%; z-index: 1; }
.highlight-card .card-body { position: relative; z-index: 2; padding: 30px 25px; display: flex; align-items: center; }
.highlight-icon { width: 60px; height: 60px; background: rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; margin-right: 20px; flex-shrink: 0; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.highlight-card h3 { font-weight: 700; font-size: 22px; margin-bottom: 8px; color: #fff; }
.highlight-card p { font-size: 14px; opacity: 0.9; margin-bottom: 15px; line-height: 1.5; }
.btn-highlight { background-color: #fff; border-radius: 50px; padding: 6px 20px; font-weight: 700; font-size: 13px; text-transform: uppercase; transition: 0.3s; display: inline-block; text-decoration: none; }
.btn-highlight:hover { background-color: #f8f9fa; transform: scale(1.05); color: #000; }

/* Principal Message */
.principal-card { background: #fff; border-radius: 15px; overflow: hidden; box-shadow: 0 5px 25px rgba(0,0,0,0.05); }
.principal-img { width: 140px; height: 140px; object-fit: cover; border: 4px solid #e8f8f0; padding: 3px; }

/* Why Choose Us */
.why-card { background: #fff; border-radius: 12px; padding: 20px 15px; display: flex; gap: 15px; border: 1px solid #eee; transition: 0.3s; height: 100%; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.why-card:hover { border-color: var(--primary-color); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.why-card .icon-box { width: 50px; height: 50px; border-radius: 10px; background: #f8f9fa; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; color: var(--primary-color); }
.why-card h5 { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: #2d3436; }
.why-card p { font-size: 13px; color: #636e72; margin-bottom: 0; line-height: 1.4; }

/* Counters */
.counter-wrapper { background: linear-gradient(135deg, var(--primary-color) 0%, #11998e 100%); border-radius: 15px; padding: 35px 20px; color: #fff; box-shadow: 0 10px 30px rgba(17, 153, 142, 0.2); }
.counter-box i { font-size: 32px; margin-bottom: 15px; opacity: 0.8; }
.counter-box h3 { font-size: 32px; font-weight: 700; margin-bottom: 5px; letter-spacing: 1px; color: #fff; }
.counter-box p { font-size: 14px; opacity: 0.9; margin: 0; font-weight: 500; text-transform: uppercase; }

/* Sidebar Widgets */
.widget-box { background: #fff; border-radius: 15px; padding: 22px; margin-bottom: 25px; box-shadow: 0 5px 25px rgba(0,0,0,0.05); }
.widget-title { font-size: 18px; font-weight: 700; color: #2d3436; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px dashed #eee; position: relative; }
.widget-title::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 50px; background: var(--primary-color); }

/* ================= 🟢 PREMIUM CLOCK WIDGET 🟢 ================= */
.premium-clock-card {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    color: #fff; border-radius: 15px; padding: 25px 20px; text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15); border: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 25px; 
}
.clock-header-icon { font-size: 28px; color: #38ef7d; margin-bottom: 8px; animation: pulse 2s infinite; }
#live-time { font-size: 38px; font-weight: 700; font-family: 'Courier New', Courier, monospace; letter-spacing: 1px; color: #38ef7d; text-shadow: 0 0 10px rgba(56, 239, 125, 0.3); margin-bottom: 2px; }
#live-day { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 15px; opacity: 0.95; }
.calendar-divider { border-top: 1px dashed rgba(255,255,255,0.15); margin: 12px 0; }
.date-row-item { display: flex; align-items: center; justify-content: space-between; font-size: 14px; padding: 4px 0; }
.date-row-item span.label { opacity: 0.7; font-weight: 600; font-size: 13px; }
.date-row-item span.value { font-weight: 700; color: #f8fafc; }
.date-row-item i { width: 20px; color: #38ef7d; text-align: left; }

@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.08); } 100% { transform: scale(1); } }

/* Widget Lists */
.widget-list { list-style: none; padding: 0; margin: 0; }
.widget-list li { padding: 12px 0; border-bottom: 1px solid #f1f1f1; display: flex; align-items: flex-start; }
.widget-list li:last-child { border-bottom: none; padding-bottom: 0; }
.widget-list .icon { color: var(--primary-color); margin-right: 12px; margin-top: 3px; font-size: 16px; }
.widget-list a { color: #444; font-weight: 600; font-size: 14px; text-decoration: none; transition: 0.3s; display: block; line-height: 1.4; }
.widget-list a:hover { color: var(--primary-color); padding-left: 5px; }
.widget-list .date { font-size: 12px; color: #888; display: block; margin-top: 5px; font-weight: 400; }

/* Quick Links */
.quick-links { display: flex; flex-wrap: wrap; gap: 10px; }
.q-link { flex: 1 1 calc(50% - 10px); background: #f8f9fa; color: #333; padding: 12px; border-radius: 8px; text-align: center; text-decoration: none; font-size: 13px; font-weight: 600; transition: 0.3s; border: 1px solid #eee; }
.q-link i { display: block; font-size: 22px; color: var(--primary-color); margin-bottom: 6px; transition: 0.3s; }
.q-link:hover { background: var(--primary-color); color: #fff; border-color: var(--primary-color); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.q-link:hover i { color: #fff; }

/* Top Students Rank Badge */
.rank-badge {
    width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: bold; font-size: 14px; margin-right: 15px; flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}
.rank-1 { background: linear-gradient(135deg, #f1c40f, #f39c12); } 
.rank-2 { background: linear-gradient(135deg, #bdc3c7, #95a5a6); } 
.rank-3 { background: linear-gradient(135deg, #e67e22, #d35400); } 
.rank-other { background: var(--primary-color); }