/*
Theme Name: FBISE Modern Portal 2026
Theme URI: https://fbiseresult2026.pk/
Author: Al Raza Computer and Online Services
Description: A modern, SEO-optimized, and fully mobile responsive WordPress theme for educational portals.
Version: 3.0
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;800;900&display=swap');

:root {
    --primary: #004b87;
    --accent: #00a0e3;
    --bg-color: #f8faff;
    --text-dark: #1a2b3c;
    --text-light: #64748b;
    --white: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden; /* Mobile scrolling fix */
}

a { text-decoration: none; transition: all 0.3s ease; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.text-center { text-align: center; }

/* --- Modern Header --- */
.modern-header { background: rgba(255, 255, 255, 0.98); border-bottom: 1px solid #eaeaea; padding: 15px 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo a { font-size: 26px; font-weight: 800; color: var(--primary); }
.logo span { color: var(--accent); }

/* --- 9. HIGH-TECH ULTRA-MODERN HERO SECTION (HOME PAGE) --- */
.hero-section {
    position: relative !important; overflow: hidden !important; padding: 120px 20px 140px 20px !important;
    background-color: #050a1f !important;
    background-image: radial-gradient(circle at 15% 50%, rgba(0, 160, 227, 0.4), transparent 30%), radial-gradient(circle at 85% 30%, rgba(255, 0, 118, 0.4), transparent 30%) !important;
    border-bottom-left-radius: 50px !important; border-bottom-right-radius: 50px !important; text-align: center !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4) !important; z-index: 1 !important; margin-bottom: 50px !important;
}
.hero-section::after {
    content: "" !important; position: absolute !important; top: -50%; left: -50%; right: -50%; bottom: -50%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) !important;
    background-size: 40px 40px !important; z-index: -1 !important; animation: gridMove 15s linear infinite !important;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px) !important;
}
@keyframes gridMove { 0% { background-position: 0 0; } 100% { background-position: 0 40px; } }
.hero-section h1 { font-size: 50px !important; font-weight: 900 !important; margin: 0 0 35px 0 !important; text-transform: uppercase !important; letter-spacing: 2px !important; background: linear-gradient(to right, #00ffff, #ff00ff, #00ffff) !important; background-size: 200% auto !important; color: transparent !important; -webkit-background-clip: text !important; background-clip: text !important; animation: shineText 3s linear infinite !important; text-shadow: 0px 10px 30px rgba(0, 255, 255, 0.2) !important; position: relative !important; z-index: 2 !important; }
@keyframes shineText { to { background-position: 200% center; } }
.hero-section p { font-size: 18px !important; font-weight: 700 !important; color: #ffffff !important; background: #0f172a !important; padding: 16px 45px !important; border-radius: 50px !important; display: inline-block !important; position: relative !important; margin: 0 !important; z-index: 2 !important; animation: floatPill 4s ease-in-out infinite !important; }
.hero-section p::before { content: "" !important; position: absolute !important; top: -3px; left: -3px; right: -3px; bottom: -3px; background: linear-gradient(45deg, #ff0076, #00a0e3, #00ff88, #ff0076) !important; background-size: 400% !important; z-index: -1 !important; border-radius: 50px !important; animation: glowingBorder 3s linear infinite !important; }
@keyframes glowingBorder { 0% { background-position: 0 0; } 50% { background-position: 400% 0; } 100% { background-position: 0 0; } }
@keyframes floatPill { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); box-shadow: 0 20px 40px rgba(0, 255, 255, 0.2); } }

/* --- 1. BOARDS KO NEECHAY WALI LINE PAR LANE KA CODE --- */
.boards-section { width: 100% !important; overflow: visible !important; }
.boards-row-scroll { display: flex !important; flex-wrap: wrap !important; justify-content: center !important; gap: 30px !important; padding: 20px 10px 40px 10px !important; overflow: visible !important; }
.boards-row-scroll::-webkit-scrollbar { display: none !important; }

/* --- 2 & 3. CARD KI MODERN ANIMATION AUR LOGO FIT --- */
.board-card { background: #ffffff !important; border-radius: 20px !important; padding: 30px 15px !important; flex: 0 0 auto !important; width: 180px !important; display: flex !important; flex-direction: column !important; align-items: center !important; position: relative !important; overflow: hidden !important; z-index: 1 !important; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s !important; box-shadow: 0 5px 15px rgba(0,0,0,0.06) !important; }
.board-card::before { content: "" !important; position: absolute !important; top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important; z-index: -1 !important; opacity: 0 !important; background-size: 200% 200% !important; transition: opacity 0.5s ease !important; animation: gradientMove 3s ease infinite !important; }
@keyframes gradientMove { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.board-card:hover { transform: translateY(-12px) scale(1.05) !important; box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important; }
.board-card:hover::before { opacity: 1 !important; }
.board-card h3 { font-size: 16px !important; font-weight: 800 !important; margin: 0 !important; z-index: 2 !important; transition: color 0.4s ease !important; }
.board-card:hover h3 { color: #ffffff !important; }
.board-logo { width: 90px !important; height: 90px !important; border-radius: 50% !important; background: #ffffff !important; display: flex !important; align-items: center !important; justify-content: center !important; margin-bottom: 20px !important; box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important; overflow: hidden !important; transition: transform 0.6s ease, box-shadow 0.6s ease !important; border: 3px solid transparent !important; }
.board-card:hover .board-logo { transform: rotate(360deg) !important; box-shadow: 0 10px 25px rgba(255,255,255,0.6) !important; }
.board-logo img { width: 100% !important; height: 100% !important; object-fit: contain !important; padding: 10px !important; }

/* --- 4. HAR BOARD KE ALAG CHALTE HUE RANG --- */
.card-fbise { border-bottom: 5px solid #004b87 !important; } .card-fbise::before { background: linear-gradient(45deg, #004b87, #00a0e3, #004b87) !important; } .card-fbise .board-logo { border-color: #004b87 !important; }
.card-lahore { border-bottom: 5px solid #10b981 !important; } .card-lahore::before { background: linear-gradient(45deg, #059669, #34d399, #059669) !important; } .card-lahore .board-logo { border-color: #10b981 !important; }
.card-sargodha { border-bottom: 5px solid #8b5cf6 !important; } .card-sargodha::before { background: linear-gradient(45deg, #7c3aed, #a78bfa, #7c3aed) !important; } .card-sargodha .board-logo { border-color: #8b5cf6 !important; }
.card-multan { border-bottom: 5px solid #f97316 !important; } .card-multan::before { background: linear-gradient(45deg, #ea580c, #fb923c, #ea580c) !important; } .card-multan .board-logo { border-color: #f97316 !important; }
.card-rawalpindi { border-bottom: 5px solid #ef4444 !important; } .card-rawalpindi::before { background: linear-gradient(45deg, #dc2626, #f87171, #dc2626) !important; } .card-rawalpindi .board-logo { border-color: #ef4444 !important; }
.card-gujranwala { border-bottom: 5px solid #14b8a6 !important; } .card-gujranwala::before { background: linear-gradient(45deg, #0d9488, #2dd4bf, #0d9488) !important; } .card-gujranwala .board-logo { border-color: #14b8a6 !important; }
.card-faisalabad { border-bottom: 5px solid #eab308 !important; } .card-faisalabad::before { background: linear-gradient(45deg, #ca8a04, #facc15, #ca8a04) !important; } .card-faisalabad .board-logo { border-color: #eab308 !important; }

/* --- 6. CLASS SELECTION CARDS (9th, 10th...) --- */
.class-selection-section { margin-top: -10px; }
.class-cards-grid { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important; gap: 25px !important; padding: 10px !important; }
.class-card { background: #ffffff !important; border-radius: 20px !important; padding: 30px 20px !important; text-align: center !important; box-shadow: 0 8px 25px rgba(0,0,0,0.06) !important; position: relative !important; overflow: hidden !important; z-index: 1 !important; transition: transform 0.4s ease, box-shadow 0.4s ease !important; border-bottom-style: solid !important; border-bottom-width: 6px !important; display: flex !important; flex-direction: column !important; align-items: center !important; }
.class-card::before { content: "" !important; position: absolute !important; top: 0; left: 0; right: 0; bottom: 0; z-index: -1 !important; opacity: 0 !important; background-size: 200% 200% !important; transition: opacity 0.5s ease !important; animation: gradientMove 3s ease infinite !important; }
.class-card:hover { transform: translateY(-10px) !important; box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important; }
.class-card:hover::before { opacity: 1 !important; }
.class-icon { width: 75px !important; height: 75px !important; border-radius: 50% !important; display: flex !important; align-items: center !important; justify-content: center !important; font-size: 32px !important; font-weight: 900 !important; margin-bottom: 15px !important; transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55), background 0.4s !important; border: 3px solid transparent !important; }
.class-card:hover .class-icon { transform: rotateY(360deg) !important; box-shadow: 0 5px 15px rgba(255,255,255,0.5) !important; }
.class-card h3 { font-size: 22px !important; font-weight: 800 !important; margin: 0 0 5px 0 !important; transition: color 0.4s ease !important; }
.class-card p { font-size: 14px !important; margin: 0 !important; transition: color 0.4s ease !important; opacity: 0.8 !important; }
.class-card:hover h3, .class-card:hover p { color: #ffffff !important; }
.card-9th { border-bottom-color: #f43f5e !important; } .card-9th .class-icon { background: #ffe4e6 !important; color: #f43f5e !important; } .card-9th::before { background: linear-gradient(45deg, #e11d48, #fb7185, #e11d48) !important; } .card-9th:hover .class-icon { background: #ffffff !important; color: #e11d48 !important; }
.card-10th { border-bottom-color: #3b82f6 !important; } .card-10th .class-icon { background: #dbeafe !important; color: #3b82f6 !important; } .card-10th::before { background: linear-gradient(45deg, #2563eb, #60a5fa, #2563eb) !important; } .card-10th:hover .class-icon { background: #ffffff !important; color: #2563eb !important; }
.card-11th { border-bottom-color: #f97316 !important; } .card-11th .class-icon { background: #ffedd5 !important; color: #f97316 !important; } .card-11th::before { background: linear-gradient(45deg, #ea580c, #fb923c, #ea580c) !important; } .card-11th:hover .class-icon { background: #ffffff !important; color: #ea580c !important; }
.card-12th { border-bottom-color: #10b981 !important; } .card-12th .class-icon { background: #d1fae5 !important; color: #10b981 !important; } .card-12th::before { background: linear-gradient(45deg, #059669, #34d399, #059669) !important; } .card-12th:hover .class-icon { background: #ffffff !important; color: #059669 !important; }

/* --- 8. ULTRA-MODERN VIBRANT POST CARDS --- */
.post-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important; gap: 30px !important; padding: 20px 5px !important; }
.post-card-3d { background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%) !important; border-radius: 20px !important; overflow: hidden !important; position: relative !important; z-index: 1 !important; box-shadow: 0 10px 25px rgba(0,0,0,0.04) !important; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important; border: none !important; display: flex !important; flex-direction: column !important; }
.post-card-3d::before { content: "" !important; position: absolute !important; top: 0 !important; left: 0 !important; right: 0 !important; height: 5px !important; background: linear-gradient(90deg, #ff0076, #590fb7, #00a0e3) !important; z-index: 2 !important; }
.post-card-3d:hover { transform: translateY(-12px) !important; box-shadow: 0 20px 45px rgba(0, 160, 227, 0.15) !important; }
.post-content-3d { padding: 30px 25px 25px 25px !important; flex-grow: 1 !important; display: flex !important; flex-direction: column !important; }
.post-badge a { background: linear-gradient(45deg, #00a0e3, #004b87) !important; color: #ffffff !important; padding: 7px 18px !important; border-radius: 30px !important; font-size: 11px !important; font-weight: 800 !important; text-transform: uppercase !important; letter-spacing: 1px !important; display: inline-block !important; margin-bottom: 20px !important; box-shadow: 0 4px 12px rgba(0, 160, 227, 0.3) !important; transition: all 0.3s ease !important; }
.post-badge a:hover { transform: scale(1.05) translateY(-2px) !important; background: linear-gradient(45deg, #ff0076, #590fb7) !important; box-shadow: 0 6px 15px rgba(255, 0, 118, 0.3) !important; }
.post-content-3d h3 { font-size: 21px !important; line-height: 1.4 !important; margin: 0 0 12px 0 !important; font-weight: 800 !important; }
.post-content-3d h3 a { color: #1e293b !important; transition: all 0.3s ease !important; }
.post-card-3d:hover h3 a { background: linear-gradient(90deg, #ff0076, #590fb7) !important; -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important; }
.post-content-3d p { color: #64748b !important; font-size: 14px !important; line-height: 1.6 !important; margin-bottom: 25px !important; flex-grow: 1 !important; }
.post-footer { display: flex !important; justify-content: space-between !important; align-items: center !important; border-top: 1px dashed #cbd5e1 !important; padding-top: 18px !important; margin-top: auto !important; }
.post-date { font-size: 13px !important; color: #94a3b8 !important; font-weight: 700 !important; }
.btn-read-more { background: rgba(0, 160, 227, 0.1) !important; color: #00a0e3 !important; font-weight: 800 !important; font-size: 13px !important; padding: 8px 18px !important; border-radius: 20px !important; display: flex !important; align-items: center !important; gap: 6px !important; transition: all 0.3s ease !important; }
.post-card-3d:hover .btn-read-more { background: linear-gradient(45deg, #00a0e3, #004b87) !important; color: #ffffff !important; box-shadow: 0 6px 15px rgba(0, 160, 227, 0.3) !important; }
.post-card-3d:hover .btn-read-more span { transform: translateX(5px) !important; }
.ad-slot { margin: 40px 0; padding: 15px; background: #f1f5f9; border-radius: 10px; border: 1px dashed #cbd5e1; overflow: hidden; }
.pagination { margin: 40px 0; display: flex; justify-content: center; gap: 10px; }
.pagination .page-numbers { padding: 10px 15px; background: var(--white); border: 1px solid #eee; border-radius: 8px; color: var(--text-dark); font-weight: bold; }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.site-footer { background: #0f172a; color: #94a3b8; padding: 30px 0; margin-top: 60px; text-align: center; }


/* ===================================================
   10. SINGLE POST - THE ULTIMATE MASTER DESIGN 
   (Title Box + 123 Badges + ✔ Ticks + Table Animation)
   =================================================== */
.modern-seo-article { font-family: 'Outfit', sans-serif !important; }
.reading-progress-container { position: fixed; top: 0; width: 100%; height: 5px; z-index: 9999; background: #e2e8f0; }
.reading-progress-bar { height: 5px; background: linear-gradient(90deg, #ff0076, #00ffff, #00a0e3, #ff0076); background-size: 300%; animation: scrollColor 3s linear infinite; width: 0%; box-shadow: 0 0 15px #00ffff; }
@keyframes scrollColor { 0% { background-position: 0%; } 100% { background-position: 100%; } }

.single-post-hero-v2 { padding: 100px 20px 120px 20px; background: linear-gradient(-45deg, #050a1f, #1a0b2e, #001f3f); background-size: 400% 400%; animation: gradientBG 8s ease infinite; border-bottom-left-radius: 40px; border-bottom-right-radius: 40px; text-align: center; }
.post-category-glow a { background: linear-gradient(45deg, #ff0076, #590fb7); color: #fff; padding: 6px 20px; border-radius: 50px; font-size: 13px; font-weight: 900; text-transform: uppercase; box-shadow: 0 0 20px rgba(255, 0, 118, 0.6); display: inline-block; margin-bottom: 25px; }

.single-title-animated { font-size: 38px !important; font-weight: 900 !important; color: #ffffff !important; background: linear-gradient(90deg, #ff0076, #590fb7, #00a0e3, #ff0076) !important; background-size: 300% !important; animation: gradientBG 4s linear infinite !important; padding: 20px 30px !important; border-radius: 20px !important; box-shadow: 0 15px 35px rgba(255, 0, 118, 0.4) !important; display: inline-block !important; margin-bottom: 25px !important; border: 3px solid rgba(255, 255, 255, 0.3) !important; }
.post-meta-modern { display: inline-flex; justify-content: center; gap: 20px; background: rgba(255,255,255,0.1); padding: 12px 25px; border-radius: 50px; color: #00ffff; font-weight: 700; border: 1px solid rgba(0,255,255,0.2); backdrop-filter: blur(10px); }

.single-main-content-v2 { max-width: 900px; margin: -60px auto 50px auto; background: #ffffff; padding: 50px; border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.1); position: relative; z-index: 10; border-top: 5px solid #00ffff; }

.the-content-v2 p { font-size: 18px; line-height: 1.8; color: #1e293b; background: linear-gradient(135deg, #f8fafc, #eff6ff); padding: 20px; border-radius: 15px; border-left: 5px solid #00a0e3; margin-bottom: 25px; transition: all 0.3s ease; }
.the-content-v2 p:hover { transform: translateY(-3px); border-left-color: #ff0076; box-shadow: 0 10px 25px rgba(0, 160, 227, 0.1); }

.the-content-v2 ul { list-style: none !important; padding-left: 0 !important; }
.the-content-v2 ul li { position: relative; font-size: 18px; font-weight: 700; color: #0f172a; background: linear-gradient(90deg, rgba(89, 15, 183, 0.05), transparent); padding: 15px 20px 15px 50px; border-radius: 15px; margin-bottom: 15px; transition: all 0.4s ease; border: 1px solid rgba(89, 15, 183, 0.1); }
.the-content-v2 ul li::before { content: "✔"; position: absolute; left: 15px; top: 15px; font-size: 20px; color: #ff0076; animation: bounceTick 0.8s infinite alternate; }
@keyframes bounceTick { 0% { transform: translateY(0) scale(1); color: #ff0076; } 100% { transform: translateY(-5px) scale(1.2); color: #00a0e3; } }
.the-content-v2 ul li:hover { background: linear-gradient(90deg, #ff0076, #590fb7); color: #ffffff; transform: translateX(15px) scale(1.02); box-shadow: 0 10px 25px rgba(255, 0, 118, 0.3); }
.the-content-v2 ul li:hover::before { color: #ffffff; animation: none; transform: scale(1.2); }

.the-content-v2 ol { counter-reset: custom-counter; list-style: none !important; padding-left: 0 !important; }
.the-content-v2 ol li { position: relative; font-size: 18px; font-weight: 600; color: #1e293b; background: #ffffff; padding: 18px 20px 18px 70px; border-radius: 16px; margin-bottom: 18px; box-shadow: 0 5px 15px rgba(0,0,0,0.04); border: 1px solid #e2e8f0; transition: all 0.3s ease; }
.the-content-v2 ol li::before { counter-increment: custom-counter; content: counter(custom-counter); position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; background: linear-gradient(135deg, #00a0e3, #590fb7); color: #ffffff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; box-shadow: 0 5px 15px rgba(0, 160, 227, 0.4); animation: floatNumber 3s ease-in-out infinite alternate; }
@keyframes floatNumber { 0% { transform: translateY(-50%) scale(1); } 100% { transform: translateY(-50%) scale(1.1); box-shadow: 0 8px 20px rgba(89, 15, 183, 0.6); } }
.the-content-v2 ol li:hover { border-color: #00a0e3; transform: translateX(10px); box-shadow: 0 10px 25px rgba(0, 160, 227, 0.15); }

.the-content-v2 table { width: 100%; border-collapse: collapse; margin: 40px 0; border-radius: 15px; overflow: hidden; box-shadow: 0 15px 35px rgba(89, 15, 183, 0.15); border: 2px solid #590fb7; animation: tableFloat 4s infinite alternate; }
@keyframes tableFloat { 0% { transform: translateY(0); } 100% { transform: translateY(-10px); box-shadow: 0 25px 45px rgba(89, 15, 183, 0.3); } }
.the-content-v2 table th { background: linear-gradient(90deg, #ff0076, #590fb7, #00a0e3); background-size: 200%; animation: gradientBG 4s infinite; color: #fff; padding: 18px; font-size: 17px; text-transform: uppercase; text-align: center; font-weight: 900; }
.the-content-v2 table tr:nth-child(even) td { background: rgba(0, 160, 227, 0.05); }
.the-content-v2 table tr:nth-child(odd) td { background: rgba(255, 0, 118, 0.05); }
.the-content-v2 table td { padding: 15px; text-align: center; font-weight: 700; color: #334155; border-bottom: 1px solid #e2e8f0; transition: 0.3s; }
.the-content-v2 table tr:hover td { background: linear-gradient(90deg, #ff0076, #590fb7); color: #fff; transform: scale(1.02); }

/* Missing Bracket Fixed Here */
.the-content-v2 table td a { background: linear-gradient(45deg, #00ffff, #00a0e3) !important; color: #000 !important; padding: 8px 20px !important; border-radius: 50px !important; text-decoration: none !important; font-weight: 900 !important; display: inline-block; box-shadow: 0 5px 15px rgba(0, 255, 255, 0.4); transition: 0.3s; }
.the-content-v2 table td a:hover { transform: scale(1.1); box-shadow: 0 10px 25px rgba(0, 255, 255, 0.6); }

.glowing-author-box { display: flex; align-items: center; gap: 25px; background: linear-gradient(135deg, #050a1f, #1a0b2e); padding: 35px; border-radius: 25px; margin-top: 60px; border: 2px solid #00ffff; box-shadow: 0 15px 30px rgba(0, 255, 255, 0.2); }
.author-avatar-glow { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(45deg, #ff0076, #ff00ff); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 900; box-shadow: 0 0 25px rgba(255, 0, 118, 0.5); flex-shrink: 0; animation: bounceTick 1s infinite alternate; }
.author-info-glow h4 { color: #00ffff; font-size: 22px; font-weight: 900; margin: 0 0 8px 0; }
.author-info-glow p { color: #cbd5e1; font-size: 15px; margin: 0; line-height: 1.6; }

/* 11. Mobile Adjustments (Tight Lock for SEO & Viewport) */
@media (max-width: 768px) {
    .hero-section { padding: 80px 15px 100px 15px !important; border-bottom-left-radius: 35px !important; border-bottom-right-radius: 35px !important; }
    .hero-section h1 { font-size: 28px !important; line-height: 1.3 !important; }
    .hero-section p { font-size: 14px !important; padding: 12px 25px !important; }
    
    .boards-section { padding: 0 15px !important; box-sizing: border-box !important; max-width: 100vw !important; overflow: hidden !important; }
    .boards-row-scroll { flex-direction: column !important; align-items: center !important; gap: 15px !important; padding: 10px 0 20px 0 !important; width: 100% !important; box-sizing: border-box !important; }
    .board-card { width: 100% !important; max-width: 280px !important; padding: 20px 15px !important; box-sizing: border-box !important; border-radius: 16px !important; }
    .board-logo { width: 75px !important; height: 75px !important; margin-bottom: 12px !important; }
    .board-card h3 { font-size: 15px !important; }
    
    .class-cards-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 15px !important; }
    .class-card { padding: 20px 10px !important; }
    .class-icon { width: 60px !important; height: 60px !important; font-size: 26px !important; }
    .class-card h3 { font-size: 18px !important; }
    
    .single-post-hero-v2 { padding: 80px 15px; border-bottom-left-radius: 25px; border-bottom-right-radius: 25px; }
    .single-title-animated { font-size: 22px !important; padding: 15px !important; line-height: 1.4 !important; }
    .single-main-content-v2 { padding: 25px 15px; margin: -40px 10px 20px 10px; }
    .the-content-v2 p { font-size: 16px; padding: 15px; }
    .the-content-v2 table { display: block; overflow-x: auto; white-space: nowrap; animation: none; border-radius: 10px; }
    .glowing-author-box { flex-direction: column; text-align: center; padding: 25px 15px; }
}

/* ================================================= */
/* 🌟 NEW UPDATE: MODERN TITLE & HEADING BACKGROUNDS 🌟 */
/* ================================================= */

/* 1. Title Ko Modern Glass Look Diya Hai */
.single-title-animated {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-bottom: 4px solid #00ffff !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2) !important;
    padding: 25px 40px !important;
    border-radius: 20px !important;
    animation: none !important; /* Purani heavy animation khatam */
    transition: transform 0.4s ease !important;
}
.single-title-animated:hover {
    transform: translateY(-5px) !important;
}

/* 2. Post Ke Andar Wali Headings (H2, H3, H4) Ko Colored Background Diya Hai */
.the-content-v2 h2, .the-content-v2 h3, .the-content-v2 h4 {
    background: linear-gradient(90deg, #004b87, #00a0e3) !important;
    color: #ffffff !important;
    padding: 18px 25px !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
    margin-top: 50px !important;
    margin-bottom: 25px !important;
    box-shadow: 0 10px 25px rgba(0, 160, 227, 0.25) !important;
    border-left: 6px solid #00ffff !important;
    position: relative !important;
    overflow: hidden !important;
    display: block !important;
}

/* 3. Headings Par Chamak (Shine) Ki Animation */
.the-content-v2 h2::after, .the-content-v2 h3::after, .the-content-v2 h4::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important; left: -100% !important;
    width: 50% !important; height: 100% !important;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.4), transparent) !important;
    transform: skewX(-25deg) !important;
    animation: headingShine 3s infinite !important;
}
@keyframes headingShine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

/* --- Modern Post Title Box --- */
.single-title-animated {
    background: linear-gradient(135deg, #004b87, #00a0e3) !important;
    color: #ffffff !important;
    padding: 30px !important;
    border-radius: 20px !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 10px 30px rgba(0, 160, 227, 0.3) !important;
    text-align: center !important;
    font-size: 32px !important;
    font-weight: 800 !important;
}

/* --- Main Content Container (Overlapping Effect) --- */
.single-main-content-v2 {
    max-width: 900px !important;
    margin: -50px auto 50px auto !important; /* Title ke upar overlap karega */
    background: #ffffff !important;
    padding: 40px !important;
    border-radius: 25px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1) !important;
    position: relative !important;
    z-index: 10 !important;
}

/* --- Headings Coloring --- */
.the-content-v2 h2, .the-content-v2 h3 {
    background: #f8fafc !important;
    color: #004b87 !important;
    padding: 15px 20px !important;
    border-left: 5px solid #00a0e3 !important;
    border-radius: 8px !important;
    margin-top: 30px !important;
}

/* --- Paragraphs Styling --- */
.the-content-v2 p {
    font-size: 17px !important;
    line-height: 1.7 !important;
    color: #334155 !important;
    margin-bottom: 20px !important;
}
