/* assets/css/style.css - Custom Styles - Royal Violet Theme */
/* ============================================ */
/* MOBILE OVERFLOW FIX - GLOBAL */
/* ============================================ */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box;
    max-width: 100%;
}

img, video, iframe, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

.container, .container-fluid {
    max-width: 100%;
    overflow-x: hidden;
}

@media (max-width: 576px) {
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    .row {
        margin-left: -5px !important;
        margin-right: -5px !important;
    }
    [class*="col-"] {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
}

@media (max-width: 400px) {
    .container {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }
    [class*="col-"] {
        padding-left: 3px !important;
        padding-right: 3px !important;
    }
}

/* Fix for any hidden overflow elements */
.overflow-hidden {
    overflow: hidden !important;
}

.no-overflow {
    overflow-x: hidden !important;
    overflow-y: auto !important;
}
/* ============================================ */
/* CORE COLOR PALETTE */
/* ============================================ */
:root {
    --primary: #4B2A83;
    --secondary: #C2187A;
    --accent: #D9A928;
    --soft-gold: #F4D878;
    --bg-ivory: #FAFAF8;
    --bg-cream: #F5F3F0;
    --white: #FFFFFF;
    --text-dark: #202124;
    --text-muted: #6B7280;
    --green: #2E7D32;
    --cyan: #00838F;
    --shadow: 0 10px 40px rgba(75, 42, 131, 0.15);
    --shadow-light: 0 4px 20px rgba(75, 42, 131, 0.08);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-ivory);
    color: var(--text-dark);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: color 0.3s ease;
}
a:hover {
    color: var(--secondary);
}

/* ============================================ */
/* ANIMATED GRADIENT TEXT - SLIDING EFFECT */
/* ============================================ */
@keyframes slideGradient {
    to {
        background-position: 300%;
    }
}

.gradient-text {
    background: linear-gradient(90deg, #174a8b, #3e83d2, #f4a62a, #174a8b);
    background-size: 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: slideGradient 6s linear infinite;
    display: inline-block;
    font-weight: inherit;
}

.gradient-text-fast {
    animation-duration: 4s;
}

.gradient-text-slow {
    animation-duration: 8s;
}

.gradient-text-custom {
    background: linear-gradient(90deg, var(--g1, #174a8b), var(--g2, #3e83d2), var(--g3, #f4a62a), var(--g4, #174a8b));
    background-size: 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: slideGradient var(--speed, 6s) linear infinite;
    display: inline-block;
    font-weight: inherit;
}

/* ============================================ */
/* BUTTONS */
/* ============================================ */
.btn-primary-custom {
    background: var(--primary);
    color: var(--white);
    border: none;
    transition: all 0.3s ease;
}
.btn-primary-custom:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(75, 42, 131, 0.35);
    color: var(--white);
}

.btn-outline-primary-custom {
    color: var(--primary);
    border: 2px solid var(--primary);
    background: transparent;
    transition: all 0.3s ease;
}
.btn-outline-primary-custom:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-accent {
    background: var(--accent);
    color: var(--text-dark);
    border: none;
    transition: all 0.3s ease;
}
.btn-accent:hover {
    background: #C49A20;
    transform: translateY(-3px);
    color: var(--text-dark);
}

.btn-secondary-custom {
    background: var(--secondary);
    color: var(--white);
    border: none;
    transition: all 0.3s ease;
}
.btn-secondary-custom:hover {
    background: #A0155F;
    transform: translateY(-3px);
    color: var(--white);
}

/* ============================================ */
/* BADGES */
/* ============================================ */
.badge-primary-custom {
    background: var(--primary);
    color: var(--white);
}
.badge-secondary-custom {
    background: var(--secondary);
    color: var(--white);
}
.badge-accent-custom {
    background: var(--accent);
    color: var(--text-dark);
}
.badge-soft-gold {
    background: var(--soft-gold);
    color: var(--text-dark);
}
.badge-accent-custom,
.badge[style*="var(--accent)"] {
    background: var(--secondary) !important;
    color: var(--white) !important;
}

/* ============================================ */
/* HERO SECTION */
/* ============================================ */
.hero-section {
    background: var(--bg-cream);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.floating-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* ============================================ */
/* STATS SECTION */
/* ============================================ */
.stat-card {
    background: rgba(255,255,255,0.10);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    transition: transform 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-10px);
}

/* ============================================ */
/* ACADEMIC CARDS */
/* ============================================ */
.academic-card {
    transition: all 0.3s ease;
    border-radius: 20px;
    background: var(--white);
    border: 1px solid rgba(75, 42, 131, 0.08);
}
.academic-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(75, 42, 131, 0.10) !important;
    border-color: var(--accent);
}

.academic-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.academic-icon.bg-primary-soft {
    background: rgba(75, 42, 131, 0.08);
}
.academic-icon.bg-secondary-soft {
    background: rgba(194, 24, 122, 0.10);
}
.academic-icon.bg-accent-soft {
    background: rgba(217, 169, 40, 0.12);
}

/* ============================================ */
/* GALLERY */
/* ============================================ */
.gallery-item {
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid transparent;
}
.gallery-item:hover {
    transform: scale(1.03);
    border-color: var(--accent);
}
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(75, 42, 131, 0.85));
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}
.gallery-overlay p {
    color: var(--white);
    font-weight: 600;
}

/* ============================================ */
/* TESTIMONIALS */
/* ============================================ */
.testimonial-card {
    transition: all 0.3s ease;
    border-radius: 20px;
    background: var(--white);
    border: 1px solid rgba(75, 42, 131, 0.06);
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(75, 42, 131, 0.08) !important;
    border-color: var(--accent);
}

.testimonial-avatar {
    flex-shrink: 0;
    background: var(--primary);
    color: var(--white);
}

/* ============================================ */
/* SECTION BADGE */
/* ============================================ */
.section-badge {
    background: var(--accent);
    color: var(--text-dark);
    border-radius: 50px;
    padding: 6px 24px;
    font-weight: 600;
    display: inline-block;
}

.section-title .highlight {
    color: var(--primary);
}

/* ============================================ */
/* RESPONSIVE */
/* ============================================ */
@media (max-width: 992px) {
    .display-3 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .display-3 {
        font-size: 2rem;
    }
    .display-2 {
        font-size: 2.5rem;
    }
    .top-bar {
        display: none;
    }
}

/* ============================================ */
/* SCROLL ANIMATIONS */
/* ============================================ */
[data-aos] {
    opacity: 0;
    transition: all 0.8s ease;
}
[data-aos].aos-animate {
    opacity: 1;
}

/* ============================================ */
/* TRUST BADGE CARDS */
/* ============================================ */
.trust-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(75, 42, 131, 0.04) !important;
}

.trust-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent) !important;
    box-shadow: 0 8px 30px rgba(75, 42, 131, 0.04) !important;
}

.trust-card:hover .trust-icon {
    transform: scale(1.05);
}

.trust-icon {
    transition: transform 0.3s ease;
}

/* ============================================ */
/* NEWS TICKER */
/* ============================================ */
.ticker a {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark) !important;
    text-decoration: none;
}
.ticker a:hover {
    color: var(--secondary) !important;
}

/* ============================================ */
/* SEARCH STYLES */
/* ============================================ */
.search-wrapper .input-group {
    transition: all 0.3s ease;
}
.search-wrapper .input-group:focus-within {
    width: 280px !important;
}
.search-wrapper .input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(75,42,131,0.06);
}
.search-wrapper .input-group .btn:hover {
    background: var(--secondary) !important;
}

#mobileSearch {
    border-top: 1px solid rgba(75,42,131,0.06);
}
#mobileSearch .input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(75,42,131,0.06);
}
#mobileSearch .input-group .btn:hover {
    background: var(--secondary) !important;
}

.search-highlight {
    background: var(--accent);
    color: var(--text-dark);
    padding: 0 4px;
    border-radius: 3px;
    font-weight: 600;
}
