/* ================================================================
   Samar State University - Alumni Portal
   Professional Stylesheet
   ================================================================
   Animation Stack: GSAP, AOS, Lottie, Swiper.js, CountUp.js
   Framework: Bootstrap 5 + Vuexy Theme
   ================================================================ */

/* ----------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ---------------------------------------------------------------- */
:root {
    /* Brand Colors */
    --ams-primary: #1a5f7a;
    --ams-primary-dark: #154d63;
    --ams-primary-light: #2d8bba;
    --ams-secondary: #ffc107;
    --ams-secondary-dark: #e0a800;
    --ams-success: #28a745;
    --ams-info: #17a2b8;
    --ams-warning: #ffc107;
    --ams-danger: #dc3545;

    /* Gradients */
    --ams-gradient: linear-gradient(135deg, #1a5f7a 0%, #2d8bba 100%);
    --ams-gradient-gold: linear-gradient(135deg, #ffc107 0%, #ffdb4d 100%);
    --ams-gradient-dark: linear-gradient(135deg, #0d2f3d 0%, #1a5f7a 100%);
    --ams-gradient-warm: linear-gradient(135deg, #ff6b6b 0%, #ffc107 100%);

    /* Typography */
    --ams-font-primary: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ams-font-heading: 'Public Sans', sans-serif;

    /* Spacing */
    --ams-section-py: 5rem;
    --ams-section-py-sm: 3rem;

    /* Shadows */
    --ams-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --ams-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --ams-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --ams-shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    --ams-shadow-primary: 0 8px 24px rgba(26, 95, 122, 0.2);

    /* Border Radius */
    --ams-radius-sm: 0.375rem;
    --ams-radius-md: 0.75rem;
    --ams-radius-lg: 1rem;
    --ams-radius-xl: 1.5rem;
    --ams-radius-full: 9999px;

    /* Transitions */
    --ams-transition-fast: 150ms ease-out;
    --ams-transition-base: 250ms ease-out;
    --ams-transition-slow: 400ms ease-out;
}


/* ----------------------------------------------------------------
   2. BASE & TYPOGRAPHY
   ---------------------------------------------------------------- */
body {
    font-family: var(--ams-font-primary);
    color: #475569;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ams-font-heading);
    color: #1e293b;
    font-weight: 600;
}

.text-ams-primary { color: var(--ams-primary) !important; }
.text-ams-secondary { color: var(--ams-secondary) !important; }
.bg-ams-primary { background-color: var(--ams-primary) !important; }
.bg-ams-gradient { background: var(--ams-gradient) !important; }
.bg-label-ams {
    background: rgba(26, 95, 122, 0.12) !important;
    color: var(--ams-primary) !important;
}


/* ----------------------------------------------------------------
   3. BUTTONS
   ---------------------------------------------------------------- */
.btn-ams-primary {
    background: var(--ams-primary);
    border-color: var(--ams-primary);
    color: #fff;
    transition: all var(--ams-transition-base);
}
.btn-ams-primary:hover {
    background: var(--ams-primary-dark);
    border-color: var(--ams-primary-dark);
    color: #fff;
    box-shadow: var(--ams-shadow-primary);
    transform: translateY(-1px);
}
.btn-ams-primary:active { transform: translateY(0); }

.btn-ams-gradient {
    background: var(--ams-gradient);
    border: none;
    color: #fff;
    transition: all var(--ams-transition-base);
}
.btn-ams-gradient:hover {
    background: var(--ams-gradient-dark);
    color: #fff;
    box-shadow: var(--ams-shadow-primary);
    transform: translateY(-1px);
}

.btn-press {
    transition: transform 0.1s ease-out;
}
.btn-press:active {
    transform: scale(0.97);
}


/* ----------------------------------------------------------------
   4. HERO SECTION
   ---------------------------------------------------------------- */
.portal-hero {
    background: var(--ams-gradient);
    color: white;
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
    min-height: 500px;
}
.portal-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.hero-section {
    background: var(--ams-gradient);
    position: relative;
    overflow: hidden;
    padding: 6rem 0 4rem;
    min-height: 600px;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    opacity: 0.3;
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 1;
}
.hero-dashboard-img {
    max-width: 100%;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.25));
}


/* ----------------------------------------------------------------
   5. CARDS & CONTAINERS
   ---------------------------------------------------------------- */
.card-animate {
    transition: transform var(--ams-transition-slow), box-shadow var(--ams-transition-slow);
}
.card-animate:hover {
    transform: translateY(-8px);
    box-shadow: var(--ams-shadow-lg);
}

.feature-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: var(--ams-radius-md);
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(26, 95, 122, 0.15);
}

.event-card {
    transition: all 0.3s ease;
    border: 1px solid #e7e7e8;
    border-radius: var(--ams-radius-md);
}
.event-card:hover {
    border-color: var(--ams-primary);
    box-shadow: 0 8px 25px rgba(26, 95, 122, 0.12);
}

.hover-lift {
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--ams-shadow-md);
}

.hover-scale {
    transition: transform var(--ams-transition-fast);
}
.hover-scale:hover {
    transform: scale(1.03);
}


/* ----------------------------------------------------------------
   6. STATS & METRICS
   ---------------------------------------------------------------- */
.stats-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: var(--ams-radius-md);
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ams-primary);
    line-height: 1;
}

.stat-icon-box {
    width: 56px;
    height: 56px;
    border-radius: var(--ams-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}


/* ----------------------------------------------------------------
   7. GAMIFICATION
   ---------------------------------------------------------------- */
.badge-gold {
    background: linear-gradient(135deg, #ffc107 0%, #ffdb4d 100%);
    color: #000;
}
.badge-silver {
    background: linear-gradient(135deg, #adb5bd 0%, #dee2e6 100%);
    color: #000;
}
.badge-bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #dda15e 100%);
    color: #fff;
}
.badge-platinum {
    background: linear-gradient(135deg, #1a5f7a 0%, #2d8bba 100%);
    color: #fff;
}

.points-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    background: var(--ams-gradient-gold);
    border-radius: var(--ams-radius-full);
    font-weight: 600;
    color: #000;
    font-size: 0.875rem;
}

.level-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    background: var(--ams-gradient);
    color: white;
}

.progress-gradient .progress-bar {
    background: var(--ams-gradient);
}

.achievement-card {
    position: relative;
    text-align: center;
    padding: 1.5rem;
    border-radius: var(--ams-radius-lg);
    transition: all var(--ams-transition-base);
}
.achievement-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ams-shadow-md);
}
.achievement-card .achievement-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
}
.achievement-card.locked {
    opacity: 0.5;
    filter: grayscale(100%);
}
.achievement-card.locked::after {
    content: '\eb09'; /* ti-lock */
    font-family: 'tabler-icons';
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 1rem;
    color: #94a3b8;
}

.leaderboard-rank {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}
.leaderboard-rank.rank-1 { background: var(--ams-gradient-gold); color: #000; }
.leaderboard-rank.rank-2 { background: linear-gradient(135deg, #adb5bd, #dee2e6); color: #000; }
.leaderboard-rank.rank-3 { background: linear-gradient(135deg, #cd7f32, #dda15e); color: #fff; }


/* ----------------------------------------------------------------
   8. PROFILE & USER ELEMENTS
   ---------------------------------------------------------------- */
.profile-completion-ring {
    width: 80px;
    height: 80px;
    position: relative;
}
.profile-completion-ring svg {
    transform: rotate(-90deg);
}
.profile-completion-ring .completion-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: var(--ams-primary);
}

.alumni-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: var(--ams-shadow-sm);
}
.alumni-avatar-lg {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: var(--ams-shadow-md);
}

.verification-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    border-radius: var(--ams-radius-full);
    font-size: 0.75rem;
    font-weight: 500;
}
.verification-badge.verified {
    background: rgba(40, 167, 69, 0.12);
    color: var(--ams-success);
}
.verification-badge.pending {
    background: rgba(255, 193, 7, 0.12);
    color: var(--ams-warning);
}
.verification-badge.unverified {
    background: rgba(108, 117, 125, 0.12);
    color: #6c757d;
}

.membership-tier-card {
    border-radius: var(--ams-radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all var(--ams-transition-base);
    position: relative;
    overflow: hidden;
}
.membership-tier-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--ams-shadow-lg);
}
.membership-tier-card.recommended {
    border: 2px solid var(--ams-primary);
}
.membership-tier-card.recommended::before {
    content: 'Recommended';
    position: absolute;
    top: 12px;
    right: -28px;
    transform: rotate(45deg);
    background: var(--ams-primary);
    color: white;
    padding: 0.25rem 2.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}


/* ----------------------------------------------------------------
   9. EVENTS
   ---------------------------------------------------------------- */
.event-date-badge {
    width: 60px;
    text-align: center;
    border-radius: var(--ams-radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}
.event-date-badge .month {
    background: var(--ams-primary);
    color: white;
    padding: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.event-date-badge .day {
    background: #f1f5f9;
    padding: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ams-primary);
    line-height: 1;
}

.event-timeline {
    position: relative;
    padding-left: 2rem;
}
.event-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--ams-primary), transparent);
}
.event-timeline-item {
    position: relative;
    padding-bottom: 2rem;
}
.event-timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--ams-primary);
    border: 2px solid #fff;
    box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.2);
}


/* ----------------------------------------------------------------
   10. DONATIONS & GIVING
   ---------------------------------------------------------------- */
.donation-amount-btn {
    min-width: 80px;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: var(--ams-radius-md);
    background: white;
    font-weight: 600;
    font-size: 1rem;
    color: #475569;
    cursor: pointer;
    transition: all var(--ams-transition-fast);
}
.donation-amount-btn:hover,
.donation-amount-btn.active {
    border-color: var(--ams-primary);
    color: var(--ams-primary);
    background: rgba(26, 95, 122, 0.05);
}
.donation-amount-btn.active {
    box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.15);
}

.campaign-progress {
    position: relative;
    height: 8px;
    border-radius: var(--ams-radius-full);
    background: #e2e8f0;
    overflow: hidden;
}
.campaign-progress-bar {
    height: 100%;
    border-radius: var(--ams-radius-full);
    background: var(--ams-gradient);
    transition: width 1s ease-out;
}

.donor-wall-card {
    padding: 1rem;
    border-radius: var(--ams-radius-md);
    background: linear-gradient(135deg, #f8fafc, #fff);
    border: 1px solid #e2e8f0;
    transition: all var(--ams-transition-base);
}
.donor-wall-card:hover {
    border-color: var(--ams-primary);
    box-shadow: var(--ams-shadow-sm);
}


/* ----------------------------------------------------------------
   11. CAREER & MENTORSHIP
   ---------------------------------------------------------------- */
.job-card {
    border-radius: var(--ams-radius-md);
    border: 1px solid #e2e8f0;
    transition: all var(--ams-transition-base);
    padding: 1.5rem;
}
.job-card:hover {
    border-color: var(--ams-primary);
    box-shadow: var(--ams-shadow-sm);
    transform: translateY(-2px);
}

.job-type-badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--ams-radius-full);
    font-size: 0.75rem;
    font-weight: 500;
}
.job-type-badge.full-time { background: rgba(40, 167, 69, 0.12); color: var(--ams-success); }
.job-type-badge.part-time { background: rgba(23, 162, 184, 0.12); color: var(--ams-info); }
.job-type-badge.contract { background: rgba(255, 193, 7, 0.12); color: #cc9a00; }
.job-type-badge.remote { background: rgba(111, 66, 193, 0.12); color: #6f42c1; }

.mentor-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--ams-radius-lg);
    border: 1px solid #e2e8f0;
    transition: all var(--ams-transition-base);
}
.mentor-card:hover {
    box-shadow: var(--ams-shadow-md);
    transform: translateY(-4px);
}


/* ----------------------------------------------------------------
   12. CHAPTERS
   ---------------------------------------------------------------- */
.chapter-card {
    border-radius: var(--ams-radius-lg);
    overflow: hidden;
    transition: all var(--ams-transition-base);
}
.chapter-card:hover {
    box-shadow: var(--ams-shadow-lg);
    transform: translateY(-4px);
}
.chapter-card-img {
    height: 180px;
    object-fit: cover;
    width: 100%;
}
.chapter-map-marker {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--ams-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: var(--ams-shadow-sm);
    transition: all var(--ams-transition-base);
}
.chapter-map-marker:hover {
    transform: scale(1.2);
    box-shadow: var(--ams-shadow-md);
}


/* ----------------------------------------------------------------
   13. FORMS & INPUTS
   ---------------------------------------------------------------- */
.input-glow:focus {
    outline: none;
    border-color: var(--ams-primary);
    box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.15);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-floating-ams .form-control:focus,
.form-floating-ams .form-select:focus {
    border-color: var(--ams-primary);
    box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.1);
}

.form-step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}
.form-step {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    border: 2px solid #e2e8f0;
    color: #94a3b8;
    background: white;
    transition: all var(--ams-transition-base);
}
.form-step.active {
    border-color: var(--ams-primary);
    background: var(--ams-primary);
    color: white;
}
.form-step.completed {
    border-color: var(--ams-success);
    background: var(--ams-success);
    color: white;
}
.form-step-line {
    width: 40px;
    height: 2px;
    background: #e2e8f0;
    transition: background var(--ams-transition-base);
}
.form-step-line.completed {
    background: var(--ams-success);
}


/* ----------------------------------------------------------------
   14. NAVIGATION
   ---------------------------------------------------------------- */
.nav-link-active {
    color: var(--ams-primary) !important;
    font-weight: 600;
}

.landing-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--ams-radius-md);
    padding: 0.5rem 1.5rem;
}

.portal-sidebar {
    position: sticky;
    top: 80px;
}
.portal-sidebar .nav-link {
    padding: 0.625rem 1rem;
    color: #64748b;
    border-radius: var(--ams-radius-sm);
    transition: all var(--ams-transition-fast);
    font-size: 0.9375rem;
}
.portal-sidebar .nav-link:hover {
    color: var(--ams-primary);
    background: rgba(26, 95, 122, 0.06);
}
.portal-sidebar .nav-link.active {
    color: var(--ams-primary);
    background: rgba(26, 95, 122, 0.1);
    font-weight: 600;
}


/* ----------------------------------------------------------------
   15. FOOTER
   ---------------------------------------------------------------- */
.portal-footer {
    background: #0f172a;
    color: #cbd5e1;
}
.portal-footer a {
    color: #94a3b8;
    transition: color var(--ams-transition-fast);
    text-decoration: none;
}
.portal-footer a:hover {
    color: #fff;
}

.landing-footer {
    background: #1a3a4a;
    color: rgba(255, 255, 255, 0.8);
}
.landing-footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}
.landing-footer a:hover {
    color: #fff;
}


/* ----------------------------------------------------------------
   16. SECTIONS & LAYOUT
   ---------------------------------------------------------------- */
.section-py {
    padding: var(--ams-section-py) 0;
}

.cta-section {
    background: var(--ams-gradient);
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.divider-wave svg {
    display: block;
    width: 100%;
}

.page-header {
    background: var(--ams-gradient);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
    color: white;
}
.page-header h1 {
    color: white;
    margin-bottom: 0.25rem;
}
.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.75);
}
.page-header .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.9);
}

.content-section {
    padding: 2rem 0;
}


/* ----------------------------------------------------------------
   17. SKELETON LOADING
   ---------------------------------------------------------------- */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--ams-radius-sm);
}
.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
}
.skeleton-heading {
    height: 1.5rem;
    width: 60%;
    margin-bottom: 0.75rem;
}
.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}


/* ----------------------------------------------------------------
   18. NOTIFICATIONS & TOASTS
   ---------------------------------------------------------------- */
.toast-success { border-left: 4px solid var(--ams-success); }
.toast-error { border-left: 4px solid var(--ams-danger); }
.toast-warning { border-left: 4px solid var(--ams-warning); }
.toast-info { border-left: 4px solid var(--ams-info); }

.notification-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    transition: background var(--ams-transition-fast);
}
.notification-item:hover {
    background: #f8fafc;
}
.notification-item.unread {
    background: rgba(26, 95, 122, 0.04);
    border-left: 3px solid var(--ams-primary);
}


/* ----------------------------------------------------------------
   19. COMMUNITY & FORUMS
   ---------------------------------------------------------------- */
.forum-thread-card {
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--ams-radius-md);
    transition: all var(--ams-transition-fast);
}
.forum-thread-card:hover {
    border-color: var(--ams-primary);
    background: #fafbff;
}

.story-card {
    border-radius: var(--ams-radius-lg);
    overflow: hidden;
    transition: all var(--ams-transition-base);
}
.story-card:hover {
    box-shadow: var(--ams-shadow-lg);
    transform: translateY(-4px);
}
.story-card-img {
    height: 200px;
    object-fit: cover;
}

.gallery-item {
    border-radius: var(--ams-radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--ams-transition-slow);
}
.gallery-item:hover img {
    transform: scale(1.08);
}
.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity var(--ams-transition-base);
}
.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}


/* ----------------------------------------------------------------
   20. SURVEYS & GTS
   ---------------------------------------------------------------- */
.survey-card {
    border-radius: var(--ams-radius-md);
    border: 1px solid #e2e8f0;
    transition: all var(--ams-transition-base);
}
.survey-card:hover {
    border-color: var(--ams-primary);
    box-shadow: var(--ams-shadow-sm);
}
.survey-progress {
    height: 4px;
    border-radius: var(--ams-radius-full);
    background: #e2e8f0;
    overflow: hidden;
}
.survey-progress-bar {
    height: 100%;
    background: var(--ams-gradient);
    border-radius: var(--ams-radius-full);
    transition: width var(--ams-transition-slow);
}

.survey-question {
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: var(--ams-radius-md);
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
.survey-option {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border: 2px solid transparent;
    border-radius: var(--ams-radius-sm);
    cursor: pointer;
    transition: all var(--ams-transition-fast);
    margin-bottom: 0.5rem;
}
.survey-option:hover {
    background: rgba(26, 95, 122, 0.04);
    border-color: rgba(26, 95, 122, 0.2);
}
.survey-option.selected {
    background: rgba(26, 95, 122, 0.08);
    border-color: var(--ams-primary);
}


/* ----------------------------------------------------------------
   21. SEARCH
   ---------------------------------------------------------------- */
.search-hero {
    background: var(--ams-gradient);
    padding: 3rem 0;
    color: white;
}
.search-input-lg {
    padding: 1rem 1.5rem;
    font-size: 1.125rem;
    border-radius: var(--ams-radius-full);
    border: none;
    box-shadow: var(--ams-shadow-lg);
}
.search-input-lg:focus {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3), var(--ams-shadow-lg);
}
.search-filter-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: var(--ams-radius-full);
    border: 1px solid #e2e8f0;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--ams-transition-fast);
}
.search-filter-tag:hover,
.search-filter-tag.active {
    background: var(--ams-primary);
    color: white;
    border-color: var(--ams-primary);
}


/* ----------------------------------------------------------------
   22. DIGITAL ID CARD
   ---------------------------------------------------------------- */
.alumni-id-card {
    width: 340px;
    border-radius: var(--ams-radius-lg);
    overflow: hidden;
    background: white;
    box-shadow: var(--ams-shadow-xl);
    position: relative;
}
.alumni-id-card-header {
    background: var(--ams-gradient);
    padding: 1.5rem;
    text-align: center;
    color: white;
}
.alumni-id-card-body {
    padding: 1.5rem;
    text-align: center;
}
.alumni-id-card-footer {
    padding: 1rem 1.5rem;
    background: #f8fafc;
    text-align: center;
    font-size: 0.75rem;
    color: #64748b;
}
.alumni-id-qr {
    width: 100px;
    height: 100px;
    margin: 1rem auto;
    border: 1px solid #e2e8f0;
    border-radius: var(--ams-radius-sm);
    padding: 0.5rem;
}


/* ----------------------------------------------------------------
   23. RESPONSIVE
   ---------------------------------------------------------------- */
@media (max-width: 992px) {
    .section-py {
        padding: var(--ams-section-py-sm) 0;
    }
    .hero-section {
        padding: 4rem 0 3rem;
        min-height: auto;
    }
    .page-header {
        padding: 2rem 0 1.5rem;
    }
}

@media (max-width: 768px) {
    .portal-hero, .hero-section {
        padding: 3rem 0 2rem;
    }
    .stat-number {
        font-size: 1.75rem;
    }
    .alumni-id-card {
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
    }
    .stats-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    .donation-amount-btn {
        min-width: 60px;
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .feature-card:hover,
    .event-card:hover,
    .card-animate:hover {
        transform: none;
    }
    .form-step-indicator {
        flex-wrap: wrap;
    }
    .points-badge {
        font-size: 0.75rem;
        padding: 0.125rem 0.5rem;
    }
}


/* ----------------------------------------------------------------
   24. PRINT STYLES
   ---------------------------------------------------------------- */
@media print {
    .no-print { display: none !important; }
    .portal-hero, .hero-section { background: #1a5f7a !important; min-height: auto; padding: 1rem 0; }
    .card { box-shadow: none !important; border: 1px solid #ddd !important; }
    body { color: #000; }
}


/* ----------------------------------------------------------------
   25. ACCESSIBILITY
   ---------------------------------------------------------------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .hover-lift:hover,
    .hover-scale:hover,
    .card-animate:hover,
    .feature-card:hover {
        transform: none;
    }
}

:focus-visible {
    outline: 2px solid var(--ams-primary);
    outline-offset: 2px;
}

/* High contrast mode adjustments */
@media (forced-colors: active) {
    .btn-ams-primary,
    .btn-ams-gradient {
        border: 2px solid ButtonText;
    }
    .points-badge,
    .level-badge,
    .verification-badge {
        border: 1px solid ButtonText;
    }
}


/* ================================================================
   26. BASE TEMPLATE OVERRIDES
   (Migrated from base.html inline <style> — 2026-06-04)
   Animation Stack: GSAP, AOS, Lottie, Swiper.js, CountUp.js
   ================================================================ */

:root {
    --ssu-primary: #1a5f7a;
    --ssu-secondary: #ffc107;
    --ssu-success: #28a745;
    --ssu-info: #17a2b8;
    --ssu-warning: #ffc107;
    --ssu-danger: #dc3545;
    --ssu-gradient: linear-gradient(135deg, #1a5f7a 0%, #2d8bba 100%);
    --ssu-gradient-gold: linear-gradient(135deg, #ffc107 0%, #ffdb4d 100%);
}

/* Hero Section */
.portal-hero {
    background: var(--ssu-gradient);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.portal-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Micro-interactions */
.hover-lift {
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.hover-scale {
    transition: transform 0.15s ease-out;
}
.hover-scale:hover {
    transform: scale(1.02);
}

.btn-press {
    transition: transform 0.1s ease-out;
}
.btn-press:active {
    transform: scale(0.98);
}

/* Focus states */
.input-glow:focus {
    outline: none;
    border-color: var(--ssu-primary);
    box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.15);
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* Card animations */
.card-animate {
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}
.card-animate:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Fade animations */
.fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Pulse for notifications */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(26, 95, 122, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(26, 95, 122, 0); }
    100% { box-shadow: 0 0 0 0 rgba(26, 95, 122, 0); }
}

/* Ripple effect */
.ripple {
    position: relative;
    overflow: hidden;
}
.ripple::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform 0.5s, opacity 1s;
}
.ripple:active::after {
    transform: scale(0, 0);
    opacity: 0.3;
    transition: 0s;
}

@keyframes ripple-effect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Gamification badges */
.badge-gold { background: linear-gradient(135deg, #ffc107 0%, #ffdb4d 100%); color: #000; }
.badge-silver { background: linear-gradient(135deg, #adb5bd 0%, #dee2e6 100%); color: #000; }
.badge-bronze { background: linear-gradient(135deg, #cd7f32 0%, #dda15e 100%); color: #fff; }
.badge-platinum { background: linear-gradient(135deg, #1a5f7a 0%, #2d8bba 100%); color: #fff; }

/* Points counter */
.points-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    background: var(--ssu-gradient-gold);
    border-radius: 50px;
    font-weight: 600;
    color: #000;
}

/* Level indicator */
.level-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    background: var(--ssu-gradient);
    color: white;
}

/* Progress bars */
.progress-gradient {
    background: var(--ssu-gradient);
}

/* Stat cards */
.stat-card {
    text-align: center;
    padding: 1.5rem;
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ssu-primary);
    line-height: 1;
}

/* Profile completion */
.profile-completion-ring {
    width: 80px;
    height: 80px;
}

/* Navigation highlight */
.nav-link-active {
    color: var(--ssu-primary) !important;
    font-weight: 600;
}

/* Footer */
.portal-footer {
    background: #1a1a2e;
    color: #fff;
}

.portal-footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s;
}

.portal-footer a:hover {
    color: #fff;
}

/* Swiper customizations */
.swiper-button-next,
.swiper-button-prev {
    color: var(--ssu-primary);
}

.swiper-pagination-bullet-active {
    background: var(--ssu-primary);
}

/* Toast notifications */
.toast-success { border-left: 4px solid var(--ssu-success); }
.toast-error { border-left: 4px solid var(--ssu-danger); }
.toast-warning { border-left: 4px solid var(--ssu-warning); }
.toast-info { border-left: 4px solid var(--ssu-info); }

/* Mobile responsiveness */
@media (max-width: 768px) {
    .portal-hero {
        padding: 2rem 0;
    }
    .stat-number {
        font-size: 1.75rem;
    }
}

/* Print styles */
@media print {
    .no-print { display: none !important; }
}

/* ----------------------------------------------------------------
   Round 19 Y3 — Portal polish: navigation, dropdowns, focus rings,
   prefers-reduced-motion, page-load fade
   ---------------------------------------------------------------- */

/* Brand text gradient — subtle premium accent */
.navbar-brand-text {
    background: var(--ssu-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Nav-link underline reveal on hover (subtle, not aggressive) */
.portal-navbar .nav-link {
    position: relative;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
    transition: color 0.2s ease;
}
.portal-navbar .nav-link::after {
    content: '';
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.35rem;
    height: 2px;
    background: var(--ssu-gradient);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    opacity: 0;
}
.portal-navbar .nav-link:hover::after,
.portal-navbar .nav-link:focus-visible::after,
.portal-navbar .nav-link-active::after {
    transform: scaleX(1);
    opacity: 1;
}
.portal-navbar .nav-link.dropdown-toggle::after {
    display: none;
}
.portal-navbar .nav-link.dropdown-toggle::before {
    content: '\f107';
    display: none;
}

/* Icon-only nav buttons (search, notifications) — circular hover */
.nav-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background-color 0.2s ease, transform 0.15s ease;
}
.nav-icon-btn:hover,
.nav-icon-btn:focus-visible {
    background-color: rgba(26, 95, 122, 0.08);
}
.nav-icon-btn:focus-visible {
    outline: 2px solid var(--ssu-primary);
    outline-offset: 2px;
}

/* Dropdown menu reveal animation */
.dropdown-menu-animate {
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
    border-radius: 0.5rem;
    padding: 0.5rem;
}
.dropdown-menu-animate .dropdown-item {
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    transition: background-color 0.15s ease, color 0.15s ease, padding-left 0.2s ease;
}
.dropdown-menu-animate .dropdown-item:hover,
.dropdown-menu-animate .dropdown-item:focus-visible {
    background-color: rgba(26, 95, 122, 0.08);
    color: var(--ssu-primary);
    padding-left: 1rem;
}
.dropdown-menu-animate .dropdown-item.text-danger:hover {
    background-color: rgba(220, 53, 69, 0.08);
    color: var(--ssu-danger) !important;
}
.dropdown-menu-animate.show {
    animation: dropdownFadeIn 0.18s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Page-load fade for main content (subtle, < 250ms) */
main {
    animation: pageLoadFade 0.32s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes pageLoadFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Universal focus ring — accessibility */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--ssu-primary);
    outline-offset: 2px;
}

/* Footer link polish */
.portal-footer .footer-heading {
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    font-weight: 600;
    color: #fff;
}
.portal-footer .footer-links li {
    margin-bottom: 0.5rem;
}
.portal-footer .footer-links a,
.portal-footer .footer-contact a {
    position: relative;
    display: inline-block;
    transition: color 0.15s ease, transform 0.15s ease;
    text-decoration: none;
}
.portal-footer .footer-links a:hover,
.portal-footer .footer-contact a:hover {
    color: #fff;
    transform: translateX(2px);
}
.portal-footer-divider {
    border-color: rgba(255, 255, 255, 0.12) !important;
}
.portal-footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.15s ease;
}
.portal-footer-legal a:hover {
    color: #fff;
}
.portal-social .btn {
    transition: background-color 0.2s ease, transform 0.15s ease, color 0.15s ease;
}
.portal-social .btn:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* Sticky navbar shadow on scroll */
.portal-navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
}

/* Respect user motion preferences (WCAG 2.3.3) */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .hover-lift:hover,
    .hover-scale:hover,
    .card-animate:hover {
        transform: none !important;
    }
    main {
        animation: none !important;
    }
}


/* ================================================================
   27. PUBLIC LANDING PAGE OVERRIDES
   (Migrated from base_public.html inline <style> — 2026-06-04)
   Note: .hero-section::before background-image (uses {% static %})
         stays as a minimal inline <style> in base_public.html.
   ================================================================ */

/* Round 19 Y3 — page-load fade + uniform focus ring +
   reduced-motion guard for WCAG 2.3.3 compliance. */
main {
    animation: ams-main-fade-in 0.5s ease-out both;
}
@keyframes ams-main-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--ams-primary);
    outline-offset: 2px;
    border-radius: 0.25rem;
}
@media (prefers-reduced-motion: reduce) {
    main,
    .feature-card,
    .event-card,
    .animate-float,
    .animate-pulse {
        animation: none !important;
        transition: none !important;
    }
    .feature-card:hover,
    .event-card:hover {
        transform: none !important;
    }
}
