/**
 * SAM GLOBAL UNIVERSITY — MASTER DESIGN SYSTEM & ANIMATIONS (2026)
 * Official Colorway:
 * - Regal SAM Navy (#0A1C3B, #0F2952, #061224)
 * - AI Electric Cyan (#00A8E8, #00C2FF)
 * - University Crest Gold (#C59B27, #FFB800)
 * - High-End Translucent Glassmorphism with Smooth Dynamic Animations
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600&family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600;700&display=swap');

:root {
    /* Brand Colors extracted from official crest */
    --sam-navy: #0A1C3B;
    --sam-navy-light: #132E5E;
    --sam-navy-deep: #050E1E;
    --sam-navy-card: rgba(10, 28, 59, 0.85);

    --sam-cyan: #00A8E8;
    --sam-cyan-bright: #00C2FF;
    --sam-cyan-soft: rgba(0, 168, 232, 0.12);
    --sam-cyan-glow: rgba(0, 168, 232, 0.45);

    --sam-gold: #C59B27;
    --sam-gold-light: #FFB800;
    --sam-gold-soft: rgba(197, 155, 39, 0.15);
    --sam-gold-glow: rgba(255, 184, 0, 0.5);

    /* Surfaces & Backgrounds */
    --sam-canvas: #F8FAFC;
    --sam-surface: #FFFFFF;
    --sam-surface-muted: #F1F5F9;
    --sam-border: rgba(10, 28, 59, 0.12);
    --sam-border-cyan: rgba(0, 168, 232, 0.25);

    /* Typography */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Shadows & Glows */
    --sam-shadow-sm: 0 2px 8px rgba(10, 28, 59, 0.06);
    --sam-shadow-md: 0 10px 30px rgba(10, 28, 59, 0.1);
    --sam-shadow-lg: 0 20px 45px rgba(10, 28, 59, 0.16);
    --sam-shadow-cyan: 0 8px 30px rgba(0, 168, 232, 0.35);
    --sam-shadow-gold: 0 8px 30px rgba(197, 155, 39, 0.35);

    /* Glassmorphism Tokens */
    --glass-bg-light: rgba(255, 255, 255, 0.82);
    --glass-bg-dark: rgba(10, 28, 59, 0.88);
    --glass-border-light: rgba(255, 255, 255, 0.6);
    --glass-border-dark: rgba(0, 168, 232, 0.25);
    --glass-blur: blur(18px) saturate(180%);
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */

@keyframes samFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes samPulseGlow {
    0% { transform: scale(0.96); box-shadow: 0 0 0 0 rgba(0, 168, 232, 0.6); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 168, 232, 0); }
    100% { transform: scale(0.96); box-shadow: 0 0 0 0 rgba(0, 168, 232, 0); }
}

@keyframes samShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes samMeshGlow {
    0%, 100% { opacity: 0.5; transform: scale(1) rotate(0deg); }
    50% { opacity: 0.85; transform: scale(1.08) rotate(4deg); }
}

@keyframes samSlideUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Base Global Styles */
body {
    font-family: var(--font-body);
    background-color: var(--sam-canvas);
    color: #1E293B;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    color: var(--sam-navy);
}

/* ==========================================================================
   BRAND LOGO STANDARDIZATION
   ========================================================================== */
.sam-brand-logo {
    height: 48px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.25s ease;
}

.sam-brand-logo:hover {
    transform: scale(1.03);
}

.sam-brand-logo-hero {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.sam-brand-logo-footer {
    height: 46px;
    width: auto;
    object-fit: contain;
}

/* ==========================================================================
   HERO CANVAS & GLASS CAPSULE (Home Redesign)
   ========================================================================== */
.sam-hero-wrapper {
    position: relative;
    padding: 24px 0 60px;
    background: radial-gradient(circle at 10% 20%, rgba(0, 168, 232, 0.12) 0%, transparent 45%),
                radial-gradient(circle at 90% 80%, rgba(197, 155, 39, 0.1) 0%, transparent 45%),
                linear-gradient(180deg, #F8FAFC 0%, #EDF4FA 100%);
    overflow: hidden;
}

.sam-hero-card {
    position: relative;
    border-radius: 28px;
    background: linear-gradient(135deg, #07152B 0%, #0A1C3B 50%, #0D2650 100%);
    border: 1px solid rgba(0, 168, 232, 0.25);
    box-shadow: 0 25px 60px -15px rgba(5, 14, 30, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    overflow: hidden;
    padding: 32px 40px 48px;
    color: #FFFFFF;
}

/* Hero Background Ambient Glows */
.sam-hero-card::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 168, 232, 0.18) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    animation: samMeshGlow 12s infinite ease-in-out;
}

.sam-hero-card::after {
    content: '';
    position: absolute;
    bottom: -15%;
    right: 5%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(197, 155, 39, 0.14) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    animation: samMeshGlow 10s infinite ease-in-out 2s;
}

/* Hero Inner Header Bar */
.sam-hero-nav {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 44px;
}

.sam-hero-pill-badge {
    background: linear-gradient(135deg, rgba(0, 168, 232, 0.2), rgba(197, 155, 39, 0.2));
    border: 1px solid rgba(0, 168, 232, 0.4);
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--sam-cyan-bright);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(8px);
    margin-bottom: 24px;
}

.sam-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 10px #10B981;
    animation: samPulseGlow 2s infinite;
}

/* Hero Typography */
.sam-hero-title {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 900;
    line-height: 1.08;
    color: #FFFFFF;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.sam-text-gradient-cyan {
    background: linear-gradient(135deg, #FFFFFF 20%, #00C2FF 70%, #00A8E8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sam-text-gradient-gold {
    background: linear-gradient(135deg, #FFE180 0%, #FFB800 50%, #C59B27 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sam-hero-desc {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.82);
    max-width: 680px;
    margin: 0 auto 36px;
    line-height: 1.65;
}

/* Hero Action Buttons */
.sam-btn-primary {
    background: linear-gradient(135deg, #00A8E8 0%, #007EA7 100%);
    color: #FFFFFF !important;
    padding: 14px 32px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 168, 232, 0.4);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sam-btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 168, 232, 0.6);
    color: #FFFFFF !important;
}

.sam-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    color: #FFFFFF !important;
    padding: 14px 30px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sam-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    color: #FFFFFF !important;
}

.sam-btn-gold {
    background: linear-gradient(135deg, #FFB800 0%, #C59B27 100%);
    color: #0A1C3B !important;
    padding: 12px 28px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    box-shadow: 0 8px 25px rgba(197, 155, 39, 0.4);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sam-btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 184, 0, 0.6);
    color: #0A1C3B !important;
}

/* Hero Stats Strip */
.sam-stats-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sam-stat-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 14px 24px;
    text-align: center;
    min-width: 140px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.sam-stat-item:hover {
    transform: translateY(-4px);
    border-color: var(--sam-cyan);
    background: rgba(0, 168, 232, 0.08);
}

.sam-stat-number {
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1;
    color: #FFFFFF;
    margin-bottom: 4px;
}

.sam-stat-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   ACADEMIC FACULTIES & BENTO CARDS
   ========================================================================== */
.sam-faculty-card {
    background: var(--sam-surface);
    border: 1px solid var(--sam-border);
    border-radius: 20px;
    padding: 28px 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.sam-faculty-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--sam-cyan), var(--sam-gold));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sam-faculty-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(10, 28, 59, 0.09);
    border-color: rgba(0, 168, 232, 0.3);
}

.sam-faculty-card:hover::after {
    opacity: 1;
}

.sam-faculty-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0, 168, 232, 0.12), rgba(10, 28, 59, 0.06));
    color: var(--sam-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.sam-faculty-card:hover .sam-faculty-icon {
    background: linear-gradient(135deg, #00A8E8, #007EA7);
    color: #FFFFFF;
    transform: scale(1.08) rotate(4deg);
}

/* ==========================================================================
   COURSE CATALOG & PROGRAM CARDS
   ========================================================================== */
.sam-course-card {
    background: var(--sam-surface);
    border: 1px solid var(--sam-border);
    border-radius: 22px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--sam-shadow-sm);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.sam-course-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 45px rgba(10, 28, 59, 0.12);
    border-color: rgba(0, 168, 232, 0.35);
}

.sam-course-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: #0A1C3B;
}

.sam-course-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.sam-course-card:hover .sam-course-img-wrapper img {
    transform: scale(1.07);
}

.sam-course-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(10, 28, 59, 0.75);
    backdrop-filter: blur(10px);
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.sam-course-price-badge {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--sam-navy);
}

/* ==========================================================================
   FLOATING GLASS HEADER (Global Header)
   ========================================================================== */
.floating-glass-header-wrapper {
    position: sticky;
    top: 14px;
    z-index: 990;
    padding: 0 20px;
}

.floating-glass-header {
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(0, 168, 232, 0.2) !important;
    box-shadow: 0 10px 30px rgba(10, 28, 59, 0.08) !important;
    border-radius: 999px !important;
    padding: 10px 24px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

/* ==========================================================================
   ROYAL SAM FOOTER
   ========================================================================== */
.nika-footer {
    background: linear-gradient(180deg, #0A1C3B 0%, #061224 100%) !important;
    color: #FFFFFF !important;
    border-top: 1px solid rgba(0, 168, 232, 0.2) !important;
}

.nika-footer h5 {
    color: #FFFFFF !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    letter-spacing: -0.01em;
}

.nika-footer-links a {
    color: rgba(255, 255, 255, 0.75) !important;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.nika-footer-links a:hover {
    color: var(--sam-cyan-bright) !important;
    transform: translateX(4px);
}

/* ==========================================================================
   SAM HERO VIDEO PLAYER
   ========================================================================== */
.sam-hero-video-frame,
.w3-hero-video-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    background: #0A1C3B;
    border: 1px solid rgba(0, 168, 232, 0.3);
    box-shadow: 0 24px 60px rgba(10, 28, 59, 0.45);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sam-hero-video-frame:hover,
.w3-hero-video-frame:hover {
    box-shadow: 0 32px 75px rgba(0, 168, 232, 0.35);
}

.sam-video-poster,
.w3-video-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.sam-hero-video-frame:hover .sam-video-poster,
.w3-hero-video-frame:hover .w3-video-poster {
    transform: scale(1.03);
}

.sam-video-shade,
.w3-video-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 28, 59, 0.15) 0%, rgba(10, 28, 59, 0.5) 100%);
    pointer-events: none;
}

.sam-video-play,
.w3-video-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 84px;
    height: 84px;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sam-gold), var(--sam-gold-light));
    color: var(--sam-navy-dark);
    box-shadow: 0 16px 42px rgba(197, 155, 39, 0.5);
    cursor: pointer;
    isolation: isolate;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.25s ease;
    z-index: 5;
}

.sam-video-play i,
.w3-video-play i {
    position: relative;
    z-index: 2;
    margin-left: 5px;
    font-size: 26px;
    color: var(--sam-navy-dark);
}

.sam-video-play-pulse,
.w3-video-play-pulse {
    position: absolute;
    inset: -3px;
    z-index: -1;
    border-radius: inherit;
    border: 3px solid rgba(229, 185, 59, 0.8);
    animation: sam-video-pulse 2s ease-out infinite;
}

.sam-video-play:hover,
.w3-video-play:hover {
    transform: translate(-50%, -50%) scale(1.12);
    box-shadow: 0 20px 55px rgba(229, 185, 59, 0.7);
    background: linear-gradient(135deg, var(--sam-cyan), var(--sam-cyan-bright));
}

.sam-video-play:hover i,
.w3-video-play:hover i {
    color: #FFFFFF;
}

@keyframes sam-video-pulse {
    0% { opacity: 0.9; transform: scale(1); }
    75%, 100% { opacity: 0; transform: scale(1.6); }
}

.sam-hero-video-frame iframe,
.w3-hero-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* Hero content balancing without video player */
.xtra-hero-content {
    padding: 56px 24px 38px !important;
}
.xtra-hero-actions {
    margin-bottom: 24px !important;
}
