/* ============================================
   MODERN PREMIUM UI OVERHAUL
   Contemporary Design for Cricket Scholarship
   ============================================ */

/* Modern Color System */
:root {
    /* Primary Brand Colors */
    --primary-gradient: linear-gradient(135deg, #e63543 0%, #b31b27 100%);
    --primary-red: #e63543;
    --primary-red-dark: #b31b27;
    --primary-red-light: #ff6b6b;

    /* Modern Accent Colors */
    --accent-purple: #e63543;
    /* Replaced with brand red for consistency */
    --accent-blue: #1c3ab6;
    --accent-green: #13d527;
    --accent-orange: #f59e0b;

    /* Neutral Colors */
    --dark: #1a1a2e;
    --dark-light: #16213e;
    --gray-dark: #2d3748;
    --gray: #718096;
    --gray-light: #e2e8f0;
    --white: #ffffff;
    --off-white: #f7fafc;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #e63543 0%, #b31b27 100%);
    --gradient-red: linear-gradient(135deg, #e63543 0%, #b31b27 100%);
    --gradient-blue: linear-gradient(135deg, #1c3ab6 0%, #155bd5 100%);
    --gradient-green: linear-gradient(135deg, #13d527 0%, #00ae11 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(230, 53, 67, 0.9) 0%, rgba(179, 27, 39, 0.9) 100%);

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.2);
    --shadow-colored: 0 10px 30px rgba(102, 126, 234, 0.3);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
}

/* Utility Classes */
.text-white-opacity-90 {
    color: rgba(255, 255, 255, 0.9) !important;
}

.text-white {
    color: #ffffff !important;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--dark);
    background: var(--off-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

/* Modern Navbar */
/* Modern Navbar */
.navbar-area.navbar-nine {
    background: var(--primary-gradient) !important;
    /* Changed to Red for visibility */
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 1rem 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-area.navbar-nine.scrolled {
    background: var(--primary-red-dark) !important;
    /* Keep Red when scrolled */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    padding: 0.75rem 0;
}

.navbar-area.navbar-nine .navbar-nav .nav-item a {
    color: white;
    /* White text for contrast */
    font-weight: 600;
    font-size: 15px;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.navbar-area.navbar-nine .navbar-nav .nav-item a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: white;
    /* White underline */
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.navbar-area.navbar-nine .navbar-nav .nav-item a:hover::before,
.navbar-area.navbar-nine .navbar-nav .nav-item a.active::before {
    width: 80%;
}

.navbar-area.navbar-nine .navbar-nav .nav-item a:hover,
.navbar-area.navbar-nine .navbar-nav .nav-item a.active {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    /* Semi-transparent white hover */
}

/* Navbar Toggler Fix for Red Background */
.navbar-toggler .toggler-icon {
    background-color: white !important;
}

/* Modern Hero Section */
.header-area.header-eight {
    background: linear-gradient(135deg, #e63543 0%, #b31b27 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.header-area.header-eight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></svg>');
    opacity: 0.3;
}

.header-area.header-eight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--off-white);
    clip-path: polygon(0 50%, 100% 0, 100% 100%, 0 100%);
}

.header-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
}

.header-content p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Modern Buttons */
.btn {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn.primary-btn {
    background: white;
    color: var(--accent-purple);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.btn.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.4);
    color: var(--accent-purple);
}

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

.btn.primary-btn-outline:hover {
    background: white;
    color: var(--accent-purple);
    transform: translateY(-3px);
}

/* Modern Section Styling */
.section {
    padding: 100px 0;
}

.section-title-five {
    margin-bottom: 4rem;
}

.section-title-five h6 {
    color: var(--accent-purple);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50px;
    border: none;
}

.section-title-five h2 {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-title-five p {
    font-size: 1.125rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Modern Cards */
.single-services {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(102, 126, 234, 0.1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.single-services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.single-services:hover::before {
    transform: scaleX(1);
}

.single-services:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--accent-purple);
}

/* Force Service Icon Visibility and Style */
.services-eight .single-services .service-icon,
.service-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient) !important;
    /* Force Red Background */
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-colored);
    transition: all 0.3s ease;
    border: none !important;
    /* Remove style.css border */
    position: relative;
    z-index: 2;
}

.services-eight .single-services .service-icon img,
.service-icon img {
    width: 60% !important;
    height: 60% !important;
    object-fit: contain;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative;
    z-index: 10;
}

.services-eight .single-services .service-icon::before,
.service-icon::before,
.services-eight .single-services .service-icon::after,
.service-icon::after {
    display: none !important;
    content: none !important;
}

/* Hide the pseudo-element from style.css that might overlay content */
.services-eight .single-services .service-icon::after {
    display: none !important;
}

.single-services:hover .service-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.service-content h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.service-content p {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.7;
}

/* Modern Review Cards */
.review-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-light);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.review-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 120px;
    color: rgba(102, 126, 234, 0.05);
    font-family: Georgia, serif;
    line-height: 1;
}

.review-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--accent-purple);
}

.review-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 4px solid var(--accent-purple);
    box-shadow: var(--shadow-colored);
}

.review-rating {
    color: #fbbf24;
    font-size: 1.25rem;
    margin: 1rem 0;
}

.review-text {
    color: var(--gray-dark);
    font-size: 1rem;
    line-height: 1.8;
    font-style: italic;
}

/* Modern FAQ */
.faq-item {
    background: white;
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-item:hover {
    border-color: var(--accent-purple);
    box-shadow: var(--shadow-lg);
}

.faq-item.active {
    border-color: var(--accent-purple);
    box-shadow: var(--shadow-colored);
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    background: white;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(102, 126, 234, 0.03);
}

.faq-question h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

.faq-icon {
    font-size: 1.25rem;
    color: var(--accent-purple);
    transition: transform 0.3s ease;
    font-weight: bold;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer-content {
    padding: 1.5rem 2rem;
    color: var(--gray-dark);
    line-height: 1.8;
    background: rgba(102, 126, 234, 0.02);
}

/* Modern Statistics */
.stats-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
}

.stat-card {
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: 4rem;
    font-weight: 800;
    color: white;
    display: block;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Modern Gallery */
.single-news {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.single-news::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.single-news:hover::after {
    opacity: 1;
}

.single-news:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-2xl);
}

.single-news img {
    transition: transform 0.5s ease;
}

.single-news:hover img {
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 991px) {
    .header-content h1 {
        font-size: 2.5rem;
    }

    .section-title-five h2 {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 3rem;
    }
}

@media (max-width: 767px) {
    .header-content h1 {
        font-size: 2rem;
    }

    .section-title-five h2 {
        font-size: 1.75rem;
    }

    .section {
        padding: 60px 0;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}