/* =========================================================
   HERO BASE
========================================================= */

.hero-school {
    background: var(--hero-gradient);
    min-height: var(--hero-min-height);
    padding: var(--hero-padding);

    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;

    animation: gradientShift 10s ease infinite alternate;
    background-size: 200% 200%;
}

/* Optional dark overlay */
.hero-school::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--hero-overlay);
    pointer-events: none;
}

/* Keep content above overlay */
.hero-school > * {
    position: relative;
    z-index: 2;
}

/* =========================================================
   HERO SHAPES
========================================================= */

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.14;
    filter: blur(45px);
    pointer-events: none;
}

.shape-1 {
    width: 280px;
    height: 280px;
    background: var(--shape1-bg);
    top: -60px;
    left: -80px;
    animation: floatShape 6s ease-in-out infinite;
}

.shape-2 {
    width: 220px;
    height: 220px;
    background: var(--shape2-bg);
    bottom: -60px;
    right: -80px;
    animation: floatShape 8s ease-in-out infinite reverse;
}

.shape-3 {
    width: 160px;
    height: 160px;
    background: var(--shape3-bg);
    top: 45%;
    left: 75%;
    animation: floatShape 7s ease-in-out infinite 2s;
}

/* =========================================================
   SHARED HERO UTILITIES
========================================================= */

.card-translucent {
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.12);
}

.fade-up {
    animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.float-icon {
    display: inline-block;
    animation: iconFloat 3s ease-in-out infinite;
}

.avatar-pulse {
    animation: avatarPulse 2.5s ease-in-out infinite;
    border: 3px solid var(--accent-color);
}

/* =========================================================
   SECTION TITLES
========================================================= */

.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;

    bottom: -10px;
    left: 50%;

    transform: translateX(-50%);

    width: 60px;
    height: 4px;

    background: var(--accent-color);
    border-radius: 2px;

    animation: titleUnderline 1s ease-out forwards;
}

/* =========================================================
   CARDS
========================================================= */

.subject-card,
.activity-card,
.message-card,
.leader-card,
.blogs-grid .card {
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.subject-card:hover,
.activity-card:hover,
.message-card:hover,
.leader-card:hover,
.blogs-grid .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 45px rgba(0,0,0,0.12);
    border-color: var(--accent-color);
}

/* =========================================================
   DOWNLOAD ITEMS
========================================================= */

.download-item {
    border-left: 4px solid var(--school-secondary);
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.download-item:hover {
    background-color: var(--school-gray-100);
    transform: translateX(4px);
}

/* =========================================================
   BUTTONS
========================================================= */

.btn-primary-custom,
.btn-accent {
    background-color: var(--accent-color);
    border: none;
    color: white;
    transition: all 0.25s ease;
}

.btn-primary-custom:hover,
.btn-accent:hover {
    background-color: transparent;
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-outline-primary-custom,
.btn-outline-accent {
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    background: transparent;
    transition: all 0.25s ease;
}

.btn-outline-primary-custom:hover,
.btn-outline-accent:hover {
    background-color: var(--accent-color);
    color: white;
}

/* =========================================================
   ALERTS / CALLOUTS
========================================================= */

.alert-info,
.alert-warning {
    border-left: 6px solid var(--accent-color);
    background: rgba(255,255,255,0.92);
    transition: box-shadow 0.3s ease;
}

.alert-info:hover,
.alert-warning:hover {
    box-shadow: 0 10px 25px rgba(var(--accent-rgb), 0.2);
}

.callout-school,
.cta-section {
    background: var(--school-primary-dark);
}

/* =========================================================
   IMAGE EFFECTS
========================================================= */

.img-fluid-white-filter {
    filter: brightness(0) invert(1);
}

.leader-img-pop {
    transition:
        transform 0.3s ease,
        filter 0.3s ease;
}

.leader-card:hover .leader-img-pop {
    transform: scale(1.08) rotate(2deg);
    filter: drop-shadow(0 8px 12px rgba(0,0,0,0.2));
}

/* =========================================================
   BLOGS PAGE
========================================================= */

.blogs-header {
    background-color: var(--school-gray-100);
}

.filter-bar {
    background-color: var(--school-bg);
    border-bottom: 1px solid var(--school-gray-200);
}

/* =========================================================
   PAGE-SPECIFIC CARDS
========================================================= */

/* Talent Showcase */
.talent-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.talent-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.category-card {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-3px);
}

/* Contact */
.quick-link-card {
    transition: transform 0.3s ease;
}

.quick-link-card:hover {
    transform: translateY(-3px);
}

/* Announcements */
.announcement-card {
    transition: transform 0.3s ease;
}

.announcement-card:hover {
    transform: translateY(-3px);
}

/* FAQs */
.accordion-button:not(.collapsed) {
    background-color: rgba(13, 110, 253, 0.05);
    color: #0d6efd;
    font-weight: 600;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(13, 110, 253, 0.25);
}

.accordion-item {
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* Blogs */

.blog-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

.blog-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--school-primary);
}

.blog-content p {
    margin-bottom: 1.2rem;
}

.blog-content ul,
.blog-content ol {
    margin-bottom: 1.2rem;
    padding-left: 1.5rem;
}

/* Talent */

.category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
}

.talent-card {
    transition: transform 0.3s ease;
}

.talent-card:hover {
    transform: translateY(-3px);
}

/* Gallery */
.gallery-item {
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-3px);
}

.gallery-item .card {
    transition: box-shadow 0.3s ease;
}

.gallery-item:hover .card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* =========================================================
   TEXT / COLOR UTILITIES
========================================================= */

.text-gray-700 {
    color: var(--school-gray-700) !important;
}

.bg-gray-100 {
    background-color: var(--school-gray-100) !important;
}

.bg-secondary-light {
    background-color: var(--school-secondary-light);
}

.border-gray-200 {
    border-color: var(--school-gray-200) !important;
}

.border-gray-300 {
    border-color: var(--school-gray-300) !important;
}

.text-primary-dark {
    color: var(--school-primary-dark) !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

.bg-accent {
    background-color: var(--accent-color) !important;
}

/* =========================================================
   REVEAL / MOTION
========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.tilt-card {
    will-change: transform;
    transition:
        transform 0.2s ease-out,
        box-shadow 0.2s;
}

/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

@keyframes floatShape {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes avatarPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.35);
    }
    50% {
        transform: scale(1.04);
        box-shadow: 0 0 0 14px rgba(var(--accent-rgb), 0);
    }
}

@keyframes titleUnderline {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 60px;
        opacity: 1;
    }
}