@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #3a4a6b;        /* Navy corporate blue */
    --primary-light: #4f618a;
    --primary-dark: #2c3852;
    --secondary: #5c7aea;      /* Indigo blue accent */
    --accent: #ffb703;         /* Warm amber gold */
    --light: #f8f9fa;
    --gray-bg: #f3f5f8;        /* Soft gray block bg */
    --dark: #1e2530;
    --text-muted: #758398;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(92, 122, 234, 0.15);
    --shadow-soft: 0 15px 35px rgba(58, 74, 107, 0.05);
    --shadow-hover: 0 20px 45px rgba(58, 74, 107, 0.12);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    box-sizing: border-box;
}

a {
    text-decoration: none !important;
}

a:hover, a:focus, a:active {
    text-decoration: none !important;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body {
    font-family: 'Cairo', sans-serif;
    font-weight: 500;
    background-color: #ffffff;
    color: var(--dark);
    direction: rtl;
    text-align: right;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.7;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    color: var(--primary);
    line-height: 1.3;
    margin-bottom: 1rem;
}

p {
    color: var(--text-muted);
}

.text-primary {
    color: var(--secondary) !important;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Sections */
section {
    padding: 100px 0;
    position: relative;
    scroll-margin-top: 90px; /* Offset to prevent overlap from fixed header navbar */
}

.bg-light {
    background-color: var(--light) !important;
}

.bg-gray {
    background-color: var(--gray-bg) !important;
}

/* Header & Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(58, 74, 107, 0.06);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-brand {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary) !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand img {
    height: 45px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.nav-link {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--primary) !important;
    margin: 0 6px;
    padding: 8px 16px !important;
    border-radius: 12px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(92, 122, 234, 0.09);
    color: var(--secondary) !important;
}

.btn-nav {
    background: var(--primary);
    color: white !important;
    border-radius: 50px;
    padding: 8px 24px !important;
    box-shadow: 0 4px 12px rgba(58, 74, 107, 0.2);
}

.btn-nav:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(92, 122, 234, 0.3);
}

/* Buttons */
.btn {
    border-radius: 50px;
    padding: 14px 38px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    color: white;
    box-shadow: 0 8px 24px rgba(92, 122, 234, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(92, 122, 234, 0.35);
}

.btn-outline-primary {
    color: var(--primary);
    border: 2px solid var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary) !important;
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(58, 74, 107, 0.15);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 10% 20%, rgba(92, 122, 234, 0.04) 0%, transparent 50%),
                radial-gradient(circle at 90% 80%, rgba(58, 74, 107, 0.04) 0%, transparent 50%);
    padding-top: 130px;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    line-height: 1.7;
    font-weight: 500;
}

.hero-img-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 15px;
    width: 100%;
}

.hero-img-item {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    border: 4px solid white;
    transition: var(--transition);
}

.hero-img-item:hover {
    transform: translateY(-8px) scale(1.02);
    z-index: 10;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.hero-img-item.primary {
    grid-column: 1 / 13;
    grid-row: 1;
}

.hero-img-item.boys {
    grid-column: 1 / 7;
    grid-row: 2;
}

.hero-img-item.girls {
    grid-column: 7 / 13;
    grid-row: 2;
}

.hero-img-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* Section Header */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.7rem;
    font-weight: 800;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 10px;
}

.section-title p {
    font-size: 1.15rem;
    max-width: 800px;
    margin: 15px auto 0 auto;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    padding: 2.5rem 2rem;
    transition: var(--transition);
    height: 100%;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(92, 122, 234, 0.3);
}

/* Icon Box */
.icon-box {
    width: 75px;
    height: 75px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(92, 122, 234, 0.08);
    color: var(--secondary);
    border-radius: 20px;
    margin-bottom: 1.5rem;
    transition: var(--transition);
    font-size: 2.2rem;
    border: 1px solid rgba(92, 122, 234, 0.15);
}

.glass-card:hover .icon-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    transform: translateY(-5px) rotate(3deg);
    box-shadow: 0 8px 20px rgba(92, 122, 234, 0.25);
}

/* Investors Block (Grey Backdrop) */
.investor-block {
    background: #f8f9fa;
    border-radius: 30px;
    padding: 4rem 3rem;
    border-right: 6px solid var(--secondary);
    box-shadow: var(--shadow-soft);
}

.investor-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0,0,0,0.02);
}

.investor-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.investor-card i {
    color: var(--secondary);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

/* Tech Features (Online/Offline) */
.tech-badge {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.tech-badge.offline {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Smart Counters */
.counter-box {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.02);
    transition: var(--transition);
}

.counter-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.counter-box i {
    font-size: 2.8rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.counter-value {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.counter-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* Success Partners Slider (Continuous scroll RTL) */
.partners-slider-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 25px 0;
    background: white;
    border-radius: 20px;
    box-shadow: inset 10px 0 30px rgba(0,0,0,0.01), inset -10px 0 30px rgba(0,0,0,0.01);
}

.partners-slider-track {
    display: flex;
    align-items: center;
    gap: 40px;
    width: max-content;
    animation: scrollRTL 25s linear infinite;
}

.partners-slider-track:hover {
    animation-play-state: paused;
}

@keyframes scrollRTL {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(50%);
    }
}

.partner-logo-container {
    position: relative;
    cursor: pointer;
    background: #ffffff;
    padding: 12px 24px;
    border-radius: 20px;
    border: 1px solid rgba(92, 122, 234, 0.1);
    box-shadow: 0 10px 25px rgba(58, 74, 107, 0.03);
    transition: var(--transition);
    display: flex;
    flex-direction: row !important;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
}

.partner-logo-container:hover {
    transform: translateY(-5px);
    border-color: rgba(92, 122, 234, 0.3);
    box-shadow: var(--shadow-hover);
}

.partner-logo-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(92, 122, 234, 0.08);
    color: var(--secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border: 1px solid rgba(92, 122, 234, 0.12);
    transition: var(--transition);
    flex-shrink: 0;
}

.partner-logo-container:hover .partner-logo-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    transform: scale(1.1) rotate(5deg);
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(92, 122, 234, 0.2);
}

.partner-logo-container span {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
}

/* Testimonials / User Reviews */
.testimonial-card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.02);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(92, 122, 234, 0.1);
}

.stars-rating {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.testimonial-text {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--primary);
    line-height: 1.7;
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-size: 4rem;
    color: rgba(92, 122, 234, 0.1);
    position: absolute;
    top: -25px;
    right: -10px;
    font-family: serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.author-info h6 {
    margin: 0;
    font-weight: 700;
    font-size: 1rem;
}

.author-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Mobile Apps Showcase */
.app-mockup-wrapper {
    position: relative;
    max-width: 320px;
    margin: 0 auto;
}

.mockup-screens-container {
    position: relative;
    width: 100%;
    border-radius: 36px;
    box-shadow: var(--shadow-hover);
    border: 8px solid var(--primary-dark);
    background: white;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-screens-container .app-mockup-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.mockup-screens-container .app-mockup-img.active {
    position: relative;
    opacity: 1;
    z-index: 2;
}

.float-animation {
    animation: floatAnim 6s ease-in-out infinite;
}

@keyframes floatAnim {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* App Download Badges (Match Premium standard) */
.store-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    background: #0c1017;
    color: white;
    padding: 10px 24px;
    border-radius: 14px;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.08);
}

.store-badge:hover {
    background: #1a2230;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    color: white;
}

.store-badge i {
    font-size: 2.2rem;
    margin-left: 12px;
}

.badge-text {
    display: flex;
    flex-direction: column;
    text-align: right;
    line-height: 1.2;
}

.badge-text .small-text {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
}

.badge-text .big-text {
    font-size: 1.1rem;
    font-weight: 700;
}

/* Why Notika list */
.why-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.why-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 1.8rem;
}

.why-list li i {
    color: var(--secondary);
    font-size: 1.4rem;
    margin-top: 5px;
}

.why-list h5 {
    margin: 0 0 5px 0;
    font-weight: 700;
    color: var(--primary);
}

/* Footer redesign */
footer {
    background: var(--dark) !important;
    color: #cbd5e1;
    padding: 80px 0 40px 0 !important;
    border-top: 5px solid var(--primary-light);
}

footer h3, footer h4 {
    color: white !important;
}

footer .footer-brand {
    font-size: 2.2rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1.5rem;
    display: inline-block;
}

footer a {
    color: #94a3b8;
    transition: var(--transition);
}

footer a:hover {
    color: var(--secondary) !important;
}

footer hr {
    border-color: rgba(255,255,255,0.08) !important;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 1.5rem;
}

.social-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    color: white !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--secondary);
    color: white !important;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(92, 122, 234, 0.3);
}

/* Floating contact buttons (WhatsApp & Phone) */
.floating-actions {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    font-size: 1.8rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transition: var(--transition);
}

.float-btn:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.float-btn.whatsapp {
    background: #25d366;
}

.float-btn.telegram {
    background: #0088cc;
}

/* Mobile Responsiveness fixes */
@media (max-width: 991px) {
    section {
        padding: 60px 0;
    }
    
    .hero-section {
        padding-top: 100px;
        text-align: center;
    }
    
    .hero-img-grid {
        margin-top: 3rem;
    }
    
    .section-title h2 {
        font-size: 2.1rem;
    }
    
    .investor-block {
        padding: 2.5rem 1.5rem;
        border-right: none;
        border-top: 6px solid var(--secondary);
    }
    
    .store-badges {
        justify-content: center;
    }
}

/* Premium Web Showcase Carousel */
.web-showcase-carousel {
    transition: var(--transition);
    border: 4px solid white !important;
}

.web-showcase-carousel:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(58, 74, 107, 0.15) !important;
}

.carousel-control-prev, .carousel-control-next {
    width: 12% !important;
    background: rgba(58, 74, 107, 0.1);
    transition: var(--transition);
}

.carousel-control-prev:hover, .carousel-control-next:hover {
    background: rgba(92, 122, 234, 0.3) !important;
}

/* Extra Mobile centering and layout stability overrides */
@media (max-width: 767px) {
    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .float-btn {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.35rem !important;
    }
    
    .floating-actions {
        bottom: 15px !important;
        left: 15px !important;
        gap: 8px !important;
    }
    
    .app-mockup-wrapper {
        max-width: 280px !important;
    }
}

/* Hover Micro-animations Utility */
.transition-hover {
    transition: var(--transition) !important;
}

.transition-hover:hover {
    transform: translateY(-5px) !important;
    border-color: rgba(92, 122, 234, 0.4) !important;
    box-shadow: 0 10px 25px rgba(58, 74, 107, 0.08) !important;
}

/* --- Skoolix-Style Animated Orbit & Revolving Dashboard Cards --- */

.orbit-scale-wrapper {
    width: 100%;
    height: 640px; /* Matches desktop height */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    transition: var(--transition);
}

.notika-orbit-container {
    position: relative;
    width: 760px; /* Hardcoded to preserve exact absolute coordinates across all viewports! */
    height: 640px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(92, 122, 234, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    margin: 0 auto;
    flex-shrink: 0; /* Prevents flex squishing on mobile */
}

/* Center Glow */
.orbit-center-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 183, 3, 0.22) 0%, transparent 70%);
    z-index: 1;
    filter: blur(12px);
}

/* Rotating Holder that revolves around the center */
.orbit-rotating-holder {
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    z-index: 2;
    animation: rotateOrbit 45s linear infinite; /* Revolve smoothly! */
}

/* Orbits backgrounds inside the holder */
.orbit-bg-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px dashed rgba(92, 122, 234, 0.15);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.orbit-bg-circle.outer-orbit {
    width: 450px;
    height: 450px;
}

.orbit-bg-circle.inner-orbit {
    width: 290px;
    height: 290px;
    border: 1px dashed rgba(58, 74, 107, 0.1);
}

/* Card Slots (Positions around the 450px circular boundary) */
.orbit-card-slot {
    position: absolute;
    width: 0;
    height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Top (0deg position) */
.slot-finance {
    top: 0;
    left: 50%;
}

/* Right (90deg position) */
.slot-report {
    top: 50%;
    right: 0;
}

/* Bottom (180deg position) */
.slot-absences {
    bottom: 0;
    left: 50%;
}

/* Left (270deg position) */
.slot-grades {
    top: 50%;
    left: 0;
}

/* Floating Card Base (Counter-rotates to remain perfectly upright/horizontal!) */
.orbit-card-wrapper {
    position: absolute;
    width: 0;
    height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: counterRotateOrbit 45s linear infinite;
}

.floating-dashboard-card {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(92, 122, 234, 0.18);
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(58, 74, 107, 0.12);
    padding: 20px;
    z-index: 10;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
}

/* Hover over entire container pauses rotation for easy reading! */
.notika-orbit-container:hover .orbit-rotating-holder,
.notika-orbit-container:hover .orbit-card-wrapper {
    animation-play-state: paused;
}

.floating-dashboard-card:hover {
    transform: translate(-50%, -50%) scale(1.06) !important;
    z-index: 100;
    box-shadow: 0 25px 55px rgba(92, 122, 234, 0.25);
    border-color: var(--secondary);
}

/* Animations Keyframes */
@keyframes rotateOrbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes counterRotateOrbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

/* Sizes of Cards (Increased on Desktop) */
.card-finance {
    width: 295px;
}

.card-report {
    width: 320px;
}

.card-absences {
    width: 270px;
}

.card-grades {
    width: 260px;
}

/* Internal Card Elements Styling */
.semester-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-muted);
}

.finance-amount {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--secondary);
}

.finance-detail-row {
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 6px;
}

.detail-label {
    color: var(--text-muted);
}

.detail-val {
    font-weight: 700;
}

.bg-success-glow {
    background-color: rgba(40, 167, 69, 0.1) !important;
    color: #28a745 !important;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    white-space: nowrap;
}

/* Absences Card */
.absences-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--primary);
}

.donut-chart-mini {
    position: relative;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: conic-gradient(
        #28a745 0% 40%, 
        var(--secondary) 40% 70%, 
        #dc3545 70% 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.donut-slice-circle {
    width: 31px;
    height: 31px;
    background: white;
    border-radius: 50%;
}

.donut-legend {
    font-size: 0.8rem;
    color: var(--primary);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    font-weight: 600;
}

.legend-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

.legend-dot.dot-1 { background-color: #28a745; }
.legend-dot.dot-2 { background-color: var(--secondary); }
.legend-dot.dot-3 { background-color: #dc3545; }

/* Grades Card */
.subject-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--primary);
}

.bg-secondary-glow {
    background-color: rgba(92, 122, 234, 0.1) !important;
    color: var(--secondary) !important;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
}

.grade-line {
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 6px;
}

.node-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--secondary);
    display: inline-block;
}

.grade-label {
    color: var(--text-muted);
}

.grade-val {
    font-weight: 700;
}

/* Report Card Table */
.report-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--primary);
}

.report-grade-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
}

.report-mini-table {
    border-collapse: collapse;
    font-size: 0.78rem;
}

.report-mini-table th {
    color: var(--text-muted);
    font-weight: 700;
    padding: 6px 3px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    text-align: center !important;
}

.report-mini-table td {
    padding: 6px 3px;
    color: var(--primary);
    font-weight: 600;
    text-align: center !important;
}

.dot-rating {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: block;
    margin: 0 auto;
}

.dot-rating.dot-green { background-color: #28a745; }
.dot-rating.dot-blue { background-color: var(--secondary); }
.dot-rating.dot-red { background-color: #dc3545; }

.comment-bubble {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-style: italic;
}

/* --- Mobile Responsiveness for Orbit Container (Enabling Full Rotation and Scale-down!) --- */
#interactive-showcase {
    overflow: hidden !important;
}

.orbit-scale-wrapper {
    width: 100%;
    height: 640px; /* Default desktop height */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

@media (max-width: 991px) {
    .orbit-scale-wrapper {
        height: 560px; /* Proportional scaled height with breathing room */
    }
    .notika-orbit-container {
        transform: scale(0.75);
        transform-origin: center center;
    }
}

@media (max-width: 767px) {
    .orbit-scale-wrapper {
        height: 460px; /* Proportional scaled height with breathing room */
    }
    .notika-orbit-container {
        transform: scale(0.58);
        transform-origin: center center;
    }
}

@media (max-width: 575px) {
    .orbit-scale-wrapper {
        height: 380px; /* Proportional scaled height with breathing room */
    }
    .notika-orbit-container {
        transform: scale(0.44);
        transform-origin: center center;
    }
}

@media (max-width: 380px) {
    .orbit-scale-wrapper {
        height: 320px; /* Proportional scaled height with breathing room */
    }
    .notika-orbit-container {
        transform: scale(0.37);
        transform-origin: center center;
    }
}

/* --- Hero Interactive School Deck --- */
.hero-deck-scale-wrapper {
    width: 100%;
    height: 540px; /* Desktop height */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    transition: var(--transition);
}

.hero-interactive-deck {
    position: relative;
    width: 580px; /* Expanded size to allow beautiful staggered spacing! */
    height: 520px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-deck-card {
    position: absolute;
    width: 360px; /* Increased width from 320px to 360px for visually larger cards! */
    height: 270px; /* Increased height from 240px to 270px! */
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(58, 74, 107, 0.15);
    border: 4px solid white;
    background: white;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.5s ease, z-index 0.5s ease, border-color 0.5s ease;
    cursor: pointer;
}

.hero-deck-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.deck-card-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px;
    background: linear-gradient(to top, rgba(58, 74, 107, 0.95) 0%, rgba(58, 74, 107, 0.4) 70%, transparent 100%);
    color: white;
    text-align: center;
    font-size: 0.95rem;
    font-family: 'Cairo', sans-serif;
}

/* Overlapping Positions - Spread out further to reveal more card surface! */
.card-primary {
    top: 10px;
    right: 0;
    z-index: 3;
    transform: rotate(-4deg);
}

.card-boys {
    top: 145px;
    left: 0;
    z-index: 2;
    transform: rotate(5deg);
}

.card-girls {
    bottom: 10px;
    right: 25px;
    z-index: 1;
    transform: rotate(-3deg);
}

/* Hover Interactive Effects */
.hero-deck-card:hover {
    z-index: 10;
    transform: scale(1.08) translateY(-10px) rotate(0deg) !important;
    box-shadow: 0 25px 55px rgba(92, 122, 234, 0.25);
    border-color: var(--secondary);
}

.hero-deck-card:hover img {
    transform: scale(1.05);
}

/* Responsive adjustments for the school deck (No grid! Maintains gorgeous absolute rotating layout scaled down!) */
@media (max-width: 991px) {
    .hero-deck-scale-wrapper {
        height: 460px; /* Proportional scaled height */
        margin-top: 40px;
    }
    .hero-interactive-deck {
        transform: scale(0.85);
        transform-origin: center center;
    }
}

@media (max-width: 767px) {
    .hero-deck-scale-wrapper {
        height: 400px; /* Proportional scaled height */
    }
    .hero-interactive-deck {
        transform: scale(0.75);
        transform-origin: center center;
    }
}

@media (max-width: 575px) {
    .hero-deck-scale-wrapper {
        height: 330px; /* Proportional scaled height */
    }
    .hero-interactive-deck {
        transform: scale(0.60);
        transform-origin: center center;
    }
}

@media (max-width: 380px) {
    .hero-deck-scale-wrapper {
        height: 280px; /* Proportional scaled height */
    }
    .hero-interactive-deck {
        transform: scale(0.50);
        transform-origin: center center;
    }
}