/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #15803d;
    --primary-rgb: 21, 128, 61;
    --primary-light: #22c55e;
    --primary-light-rgb: 34, 197, 94;
    --primary-gradient: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
    --secondary: #0f766e;
    --secondary-gradient: linear-gradient(135deg, #0f766e 0%, #10b981 100%);
    --accent: #e11d48;
    
    /* Light Mode */
    --bg-light: #f8fafc;
    --card-light: #ffffff;
    --text-light-main: #0f172a;
    --text-light-muted: #475569;
    --border-light: rgba(226, 232, 240, 0.8);
    
    /* Dark Mode (Admin Default & Premium Landing Accents) */
    --bg-dark: #0f172a;
    --card-dark: #1e293b;
    --text-dark-main: #f8fafc;
    --text-dark-muted: #94a3b8;
    --border-dark: rgba(255, 255, 255, 0.06);
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-light-main);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* Glassmorphism Classes */
.glass-panel {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.dark .glass-panel, .glass-panel-dark {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-dark);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Navigation bar */
.navbar-custom {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-smooth);
}
.navbar-custom.scrolled {
    background: #ffffff !important;
    box-shadow: var(--shadow-md);
    padding-top: 8px;
    padding-bottom: 8px;
}
.nav-link-custom {
    color: var(--text-light-main) !important;
    font-weight: 500;
    margin: 0 8px;
    position: relative;
    white-space: nowrap;
}
.nav-link-custom::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition-smooth);
}
.nav-link-custom:hover::after {
    width: 100%;
}

/* Buttons */
.btn-primary-custom {
    background: var(--primary-gradient);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 600;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.3);
}
.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.5);
    background: linear-gradient(135deg, #14532d 0%, #166534 100%);
    color: #ffffff;
}

.btn-secondary-custom {
    background: var(--secondary-gradient);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 600;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
}
.btn-secondary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.5);
    background: linear-gradient(135deg, #0f766e 0%, #0891b2 100%);
    color: #ffffff;
}

.btn-whatsapp {
    background-color: #25d366;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 600;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    background-color: #20ba5a;
    color: #ffffff;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 140px 0 100px 0;
    background: radial-gradient(circle at 10% 20%, rgba(var(--primary-rgb), 0.08) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(13, 148, 136, 0.08) 0%, transparent 40%),
                var(--bg-light);
}

.hero-tagline {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #1e293b 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bullet-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 500;
}
.bullet-icon {
    width: 24px;
    height: 24px;
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

/* Form Styles */
.form-control-custom {
    border: 1px solid var(--border-light);
    padding: 12px;
    border-radius: 8px;
    transition: var(--transition-smooth);
    background-color: rgba(255, 255, 255, 0.8);
}
.form-control-custom:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(var(--primary-light-rgb), 0.2);
    background-color: #ffffff;
}

/* Service Cards */
.service-card {
    border: 1px solid var(--border-light);
    background-color: var(--card-light);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}
.service-icon-wrapper {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, rgba(var(--primary-light-rgb), 0.1) 100%);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    transition: var(--transition-smooth);
}
.service-card:hover .service-icon-wrapper {
    background: var(--primary-gradient);
    color: #ffffff;
}

/* Timeline */
.loan-timeline {
    position: relative;
    padding: 20px 0;
}
.loan-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary) 0%, var(--secondary) 100%);
    transform: translateX(-50%);
    border-radius: 2px;
}
.timeline-item {
    margin-bottom: 40px;
    position: relative;
    width: 50%;
    padding: 0 40px;
}
.timeline-item-left {
    left: 0;
    text-align: right;
}
.timeline-item-right {
    left: 50%;
    text-align: left;
}
.timeline-icon-container {
    width: 50px;
    height: 50px;
    background: #ffffff;
    border: 4px solid var(--primary);
    color: var(--primary);
    border-radius: 50%;
    position: absolute;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 10;
    box-shadow: var(--shadow-md);
}
.timeline-item-left .timeline-icon-container {
    right: -25px;
}
.timeline-item-right .timeline-icon-container {
    left: -25px;
    border-color: var(--secondary);
    color: var(--secondary);
}
.timeline-card {
    background-color: var(--card-light);
    border: 1px solid var(--border-light);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    display: inline-block;
    max-width: 100%;
}
.timeline-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Document Checklist Tabs */
.doc-tab-btn {
    border: 1px solid var(--border-light);
    background: #ffffff;
    color: var(--text-light-main);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    margin: 5px;
    transition: var(--transition-smooth);
}
.doc-tab-btn.active {
    background: var(--primary-gradient);
    color: #ffffff;
    border-color: transparent;
    box-shadow: var(--shadow-md);
}
.doc-item-row {
    background-color: var(--card-light);
    border: 1px solid var(--border-light);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-smooth);
}
.doc-item-row:hover {
    border-color: var(--primary-light);
    transform: translateX(4px);
}

/* YouTube Shorts Cards */
.short-card {
    background: var(--card-light);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}
.short-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.short-thumbnail-wrapper {
    position: relative;
    padding-bottom: 177.77%; /* 9:16 aspect ratio for shorts */
    background-color: #000;
}
.short-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: var(--transition-smooth);
}
.short-card:hover .short-thumbnail {
    opacity: 0.7;
    transform: scale(1.03);
}
.short-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}
.short-play-btn {
    width: 60px;
    height: 60px;
    background-color: rgba(244, 63, 94, 0.9);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.4);
    transition: var(--transition-smooth);
}
.short-card:hover .short-play-btn {
    transform: scale(1.1);
    background-color: var(--accent);
}
.short-details {
    padding: 15px;
}
.short-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 5px;
}
.short-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-light-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* College Search Card */
.college-card {
    background-color: var(--card-light);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}
.college-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.college-logo-container {
    width: 64px;
    height: 64px;
    background-color: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    overflow: hidden;
    font-weight: 700;
}
.college-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Testimonial Carousel */
.testimonial-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    margin: 10px;
    position: relative;
}
.testimonial-rating {
    color: #fbbf24;
    font-size: 0.9rem;
    margin-bottom: 15px;
}
.testimonial-avatar {
    width: 48px;
    height: 48px;
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* FAQ Accordion */
.accordion-custom .accordion-item {
    border: 1px solid var(--border-light) !important;
    background-color: var(--card-light) !important;
    border-radius: 12px !important;
    margin-bottom: 12px !important;
    overflow: hidden !important;
    box-shadow: var(--shadow-sm);
}
.accordion-custom .accordion-button {
    background-color: var(--card-light) !important;
    color: var(--text-light-main) !important;
    font-weight: 600;
    padding: 20px;
    border: none !important;
}
.accordion-custom .accordion-button:not(.collapsed) {
    color: var(--primary) !important;
    box-shadow: none !important;
    background-color: rgba(var(--primary-rgb), 0.02) !important;
}
.accordion-custom .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230f172a'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}
.accordion-custom .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2315803d'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

/* Call-to-action */
.cta-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%),
                radial-gradient(circle at 10% 20%, rgba(var(--primary-rgb), 0.15) 0%, transparent 40%);
    border-radius: 24px;
    padding: 60px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Footer */
.footer-section {
    background-color: #090d16;
    color: var(--text-dark-muted);
    padding: 80px 0 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-section .text-muted {
    color: var(--text-dark-muted) !important;
}
.footer-section i.text-primary {
    color: var(--primary-light) !important;
}
.footer-logo {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 800;
}
.footer-link {
    color: var(--text-dark-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-block;
    margin-bottom: 10px;
}
.footer-link:hover {
    color: var(--primary-light);
    transform: translateX(3px);
}
.social-icon-btn {
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    transition: var(--transition-smooth);
}
.social-icon-btn:hover {
    background-color: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Admin Sidebar Layout */
.admin-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}
.admin-sidebar {
    width: 260px;
    background-color: #0f172a;
    color: #94a3b8;
    flex-shrink: 0;
    transition: var(--transition-smooth);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}
.admin-sidebar-header {
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.admin-sidebar-menu {
    padding: 20px 0;
    list-style: none;
    margin: 0;
}
.admin-menu-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
    border-left: 3px solid transparent;
}
.admin-menu-item a:hover, .admin-menu-item.active a {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.03);
}
.admin-menu-item.active a {
    border-left-color: var(--primary);
    background-color: rgba(var(--primary-rgb), 0.08);
}
.admin-content-area {
    flex-grow: 1;
    background-color: #f8fafc;
    overflow-y: auto;
}
.admin-navbar {
    height: 70px;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
}
.admin-card {
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.stats-card {
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-smooth);
}
.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.stats-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

/* Modal YouTube Shorts Player Wrapper */
.ratio-shorts {
    --bs-aspect-ratio: 177.77%; /* 9:16 aspect ratio for shorts */
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.75rem;
    }
    .loan-timeline::before {
        left: 40px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 80px;
        padding-right: 15px;
        text-align: left !important;
    }
    .timeline-item-left, .timeline-item-right {
        left: 0;
    }
    .timeline-item-left .timeline-icon-container, .timeline-item-right .timeline-icon-container {
        left: 15px;
        right: auto;
        border-color: var(--primary);
        color: var(--primary);
    }
    .timeline-card {
        display: block;
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 2.25rem;
    }
    .cta-banner {
        padding: 30px;
    }
    .doc-item-row {
        flex-direction: column;
        align-items: start !important;
        gap: 10px;
    }
    .doc-item-row .badge {
        align-self: flex-start;
    }
    .testimonial-card {
        padding: 20px;
    }
    .short-play-btn {
        width: 46px;
        height: 46px;
        font-size: 1.15rem;
    }
}

/* Admin panel mobile responsiveness */
@media (max-width: 767.98px) {
    .admin-wrapper {
        flex-direction: column;
    }
    .admin-sidebar {
        width: 100%;
        min-height: auto;
    }
    .admin-sidebar-menu {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 10px 15px;
        gap: 5px;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    .admin-sidebar-menu::-webkit-scrollbar {
        height: 4px;
    }
    .admin-sidebar-menu::-webkit-scrollbar-thumb {
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
    }
    .admin-menu-item {
        flex: 0 0 auto;
        margin-bottom: 0 !important;
    }
    .admin-menu-item a {
        padding: 8px 15px;
        border-left: none !important;
        border-bottom: 2px solid transparent;
        border-radius: 6px;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    .admin-menu-item.active a {
        border-bottom-color: var(--primary);
        background-color: rgba(var(--primary-rgb), 0.08);
    }
    .admin-sidebar-header {
        height: auto;
        padding: 15px 20px;
        justify-content: center;
    }
    .admin-sidebar-divider {
        display: none !important;
    }
    .admin-navbar {
        padding: 0 15px;
        height: 60px;
    }
    .admin-navbar h4 {
        font-size: 1.1rem;
    }
    #leadDetailModal .border-end {
        border-right: none !important;
        border-bottom: 1px solid var(--border-light);
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
}

/* Styling for mobile collapse navbar menu at the new xl breakpoint */
@media (max-width: 1199.98px) {
    .navbar-collapse {
        background-color: #ffffff;
        padding: 20px;
        border-radius: 12px;
        box-shadow: var(--shadow-lg);
        margin-top: 15px;
        border: 1px solid var(--border-light);
    }
}

/* Nav links styling adjustments for standard laptop screens */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .nav-link-custom {
        margin: 0 4px !important;
        font-size: 0.9rem !important;
    }
    .navbar-custom .btn {
        padding: 8px 16px !important;
        font-size: 0.9rem !important;
    }
}

/* Theme Color Overrides for Indigo/Purple Classes */
.text-indigo {
    color: var(--primary) !important;
}
.bg-indigo {
    background-color: var(--primary) !important;
}
.bg-indigo-subtle {
    background-color: rgba(var(--primary-rgb), 0.08) !important;
}
.border-indigo-subtle {
    border-color: rgba(var(--primary-rgb), 0.15) !important;
}
.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}
.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #ffffff !important;
}

