/*
Theme Name: Little Feats Pro International
Theme URI: https://penonsystems.com
Author: Penon Systems
Author URI: https://penonsystems.com
Description: Post-modern international-standard custom WordPress theme for Little Feats English School featuring interactive Ken Burns hero slider with floating colorful icon cards, exact school emblem, Rising Stars showcase (LKG to 5th STD), filterable Gallery & Tours, Exam Results lookup, E-Certificate Verification & PDF download, and Official Staff Admin Portal.
Version: 2.0
Text Domain: little-feats-pro
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

:root {
    --primary: #0f172a;
    --primary-blue: #1e3a8a;
    --accent: #f59e0b;
    --accent-hover: #d97706;
    --bg-light: #f8fafc;
    --text-dark: #1e293b;
    --text-muted: #64748b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Plus Jakarta Sans', sans-serif; background-color: var(--bg-light); color: var(--text-dark); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; }

/* Top Utility Bar */
.top-bar { background: #090e1a; color: #cbd5e1; font-size: 13px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.container { width: 92%; max-width: 1280px; margin: 0 auto; }
.flex-between { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }

/* Main Navbar */
header.main-header { background: rgba(15, 23, 42, 0.96); backdrop-filter: blur(12px); color: white; padding: 14px 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 10px 30px rgba(0,0,0,0.18); border-bottom: 1px solid rgba(255,255,255,0.08); }
.brand { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.brand-title h1 { font-size: 20px; font-weight: 800; letter-spacing: 0.4px; color: #fff; line-height: 1.1; }
.brand-title span { font-size: 11px; color: #fbbf24; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }

nav.main-nav ul { display: flex; list-style: none; gap: 6px; align-items: center; flex-wrap: wrap; }
nav.main-nav ul li a { color: #e2e8f0; font-size: 13.5px; font-weight: 600; padding: 8px 13px; border-radius: 99px; transition: all 0.25s; cursor: pointer; display: inline-block; }
nav.main-nav ul li a:hover, nav.main-nav ul li a.active { background: rgba(245, 158, 11, 0.16); color: #fbbf24; }
.btn-staff-login { background: linear-gradient(135deg, #f59e0b, #d97706); color: #0f172a !important; font-weight: 800 !important; box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35); }
.btn-staff-login:hover { transform: translateY(-2px); filter: brightness(1.05); }

/* Hero Slider with Ken Burns & Floating Colorful Icons */
.hero-slider { position: relative; height: 640px; overflow: hidden; background: #0f172a; color: white; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.9s ease-in-out, visibility 0.9s; display: flex; align-items: center; }
.slide.active { opacity: 1; visibility: visible; z-index: 2; }
.slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1); transition: transform 8s ease-out; }
.slide.active .slide-bg { transform: scale(1.09); }
.slide-overlay { position: absolute; inset: 0; background: linear-gradient(95deg, rgba(9, 14, 26, 0.92) 0%, rgba(15, 23, 42, 0.72) 55%, rgba(30, 58, 138, 0.45) 100%); }

.hero-grid { position: relative; z-index: 5; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; width: 92%; max-width: 1280px; margin: 0 auto; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(245, 158, 11, 0.18); border: 1px solid rgba(245, 158, 11, 0.45); color: #fbbf24; padding: 6px 16px; border-radius: 99px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 18px; }
.hero-content h2 { font-size: 46px; font-weight: 800; line-height: 1.15; margin-bottom: 16px; }
.hero-content h2 .highlight { background: linear-gradient(90deg, #fbbf24, #fde68a); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-content p { font-size: 17px; color: #cbd5e1; margin-bottom: 28px; max-width: 580px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-gold { background: linear-gradient(135deg, #f59e0b, #d97706); color: #0f172a; padding: 14px 28px; border-radius: 99px; font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 10px 25px rgba(245, 158, 11, 0.35); transition: 0.3s; cursor: pointer; border: none; }
.btn-gold:hover { transform: translateY(-3px); }
.btn-glass { background: rgba(255,255,255,0.12); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.25); color: white; padding: 14px 28px; border-radius: 99px; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; transition: 0.3s; cursor: pointer; }
.btn-glass:hover { background: rgba(255,255,255,0.22); }

/* Floating Colorful Icon Cards on Slider */
.floating-icons-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.float-card { background: rgba(255, 255, 255, 0.12); backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 20px; padding: 20px; display: flex; align-items: center; gap: 14px; box-shadow: 0 15px 35px rgba(0,0,0,0.25); transform: translateY(25px); opacity: 0; transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.slide.active .float-card { transform: translateY(0); opacity: 1; }
.slide.active .float-card:nth-child(1) { transition-delay: 0.15s; }
.slide.active .float-card:nth-child(2) { transition-delay: 0.3s; }
.slide.active .float-card:nth-child(3) { transition-delay: 0.45s; }
.slide.active .float-card:nth-child(4) { transition-delay: 0.6s; }

.icon-pill { width: 50px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
.bg-amber { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.bg-blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.bg-emerald { background: linear-gradient(135deg, #10b981, #047857); }
.bg-purple { background: linear-gradient(135deg, #a855f7, #6d28d9); }
.bg-rose { background: linear-gradient(135deg, #f43f5e, #be123c); }
.bg-cyan { background: linear-gradient(135deg, #06b6d4, #0e7490); }
.float-card h4 { font-size: 15px; font-weight: 800; color: #fff; margin-bottom: 2px; }
.float-card p { font-size: 12px; color: #cbd5e1; margin: 0; }

.slider-controls { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; gap: 10px; }
.dot { width: 12px; height: 12px; border-radius: 99px; background: rgba(255,255,255,0.35); cursor: pointer; transition: 0.3s; border: none; }
.dot.active { width: 34px; background: #f59e0b; }

/* Sections & Cards */
.page-section { display: none; padding: 70px 0; min-height: 75vh; }
.page-section.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.section-header { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-tag { display: inline-block; background: #fef3c7; color: #b45309; font-weight: 800; font-size: 12px; padding: 5px 14px; border-radius: 99px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.section-header h2 { font-size: 36px; font-weight: 800; color: #0f172a; margin-bottom: 12px; }
.section-header p { color: #64748b; font-size: 16px; }

.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 32px; }

.feature-box { background: white; border-radius: 20px; padding: 28px; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05); border: 1px solid #e2e8f0; transition: 0.3s; }
.feature-box:hover { transform: translateY(-6px); border-color: #f59e0b; box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1); }
.feature-box .f-icon { width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 18px; color: white; }
.feature-box h3 { font-size: 19px; font-weight: 800; color: #0f172a; margin-bottom: 8px; }
.feature-box p { font-size: 14px; color: #64748b; }

/* Rising Stars */
.filter-tabs { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.tab-btn { background: white; border: 1px solid #cbd5e1; padding: 9px 20px; border-radius: 99px; font-weight: 700; font-size: 13px; color: #334155; cursor: pointer; transition: 0.25s; }
.tab-btn.active, .tab-btn:hover { background: #0f172a; color: #fbbf24; border-color: #0f172a; }

.star-card { background: white; border-radius: 22px; overflow: hidden; box-shadow: 0 12px 30px rgba(0,0,0,0.06); border: 1px solid #e2e8f0; text-align: center; padding: 28px 22px; position: relative; transition: 0.3s; }
.star-card:hover { transform: translateY(-6px); }
.star-badge { position: absolute; top: 14px; right: 14px; background: #fef3c7; color: #b45309; font-size: 11px; font-weight: 800; padding: 4px 12px; border-radius: 99px; }
.star-avatar { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 4px solid #f59e0b; margin: 0 auto 14px; display: block; }
.star-card h4 { font-size: 18px; font-weight: 800; color: #0f172a; }
.star-card .cls { color: #2563eb; font-weight: 700; font-size: 13px; margin-bottom: 8px; }

/* Gallery */
.gallery-card { border-radius: 20px; overflow: hidden; position: relative; height: 260px; box-shadow: 0 12px 25px rgba(0,0,0,0.08); cursor: pointer; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-card:hover img { transform: scale(1.08); }
.gallery-caption { position: absolute; inset: auto 0 0 0; background: linear-gradient(transparent, rgba(15, 23, 42, 0.92)); color: white; padding: 24px 18px 16px; }
.gallery-caption span { font-size: 11px; background: #f59e0b; color: #0f172a; font-weight: 800; padding: 3px 10px; border-radius: 99px; }
.gallery-caption h4 { font-size: 16px; margin-top: 6px; }

/* Forms & Portals */
.portal-box { background: white; border-radius: 24px; padding: 36px; box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08); border: 1px solid #e2e8f0; max-width: 780px; margin: 0 auto; }
.input-group { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.form-control { flex: 1; min-width: 220px; padding: 13px 18px; border-radius: 12px; border: 1.5px solid #cbd5e1; font-size: 15px; font-family: inherit; outline: none; }
.form-control:focus { border-color: #2563eb; }

/* Certificate Design */
.cert-frame { background: #fffdf7; border: 12px solid #0f172a; outline: 3px solid #f59e0b; outline-offset: -8px; padding: 40px; border-radius: 8px; text-align: center; position: relative; max-width: 820px; margin: 24px auto; box-shadow: 0 20px 50px rgba(0,0,0,0.12); }
.cert-header { display: flex; justify-content: center; align-items: center; gap: 16px; margin-bottom: 18px; }
.cert-title { font-family: 'Playfair Display', serif; font-size: 36px; color: #1e3a8a; margin: 10px 0; letter-spacing: 1px; }
.cert-student-photo { width: 115px; height: 115px; border-radius: 16px; object-fit: cover; border: 4px solid #f59e0b; margin: 12px auto; display: block; box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.cert-name { font-family: 'Playfair Display', serif; font-size: 32px; color: #0f172a; border-bottom: 2px dashed #cbd5e1; display: inline-block; padding: 4px 28px; margin: 8px 0; }
.cert-footer { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 34px; padding-top: 16px; border-top: 1px solid #e2e8f0; font-size: 13px; }

/* Footer */
footer.site-footer { background: #090e1a; color: #94a3b8; padding: 65px 0 24px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 40px; }
.footer-grid h4 { color: white; font-size: 17px; margin-bottom: 16px; }
.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: 10px; font-size: 14px; }
.footer-grid ul li a { color: #94a3b8; transition: 0.2s; cursor: pointer; }
.footer-grid ul li a:hover { color: #fbbf24; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; text-align: center; font-size: 13px; }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(9, 14, 26, 0.78); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; z-index: 2000; padding: 20px; }
.modal-backdrop.open { display: flex; }
.modal-card { background: white; border-radius: 24px; padding: 32px; max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; }
.close-modal { position: absolute; top: 18px; right: 18px; background: #f1f5f9; border: none; width: 34px; height: 34px; border-radius: 50%; font-size: 18px; cursor: pointer; }

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-slider { height: auto; padding: 60px 0 80px; }
    .hero-btns { justify-content: center; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .hero-content h2 { font-size: 32px; }
    .floating-icons-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}
