/* ===== FIBONACCI INTERNATIONAL - MAIN STYLES ===== */
:root {
    --primary: #ce1437;
    --primary-dark: #a01030;
    --primary-light: #e0354f;
    --secondary: #1a1a2e;
    --secondary-light: #2d2d44;
    --accent: #ce1437;
    --accent-dark: #a01030;
    --bg-light: #f5f7fa;
    --bg-white: #ffffff;
    --text-dark: #1a1a2e;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --border: #e5e7eb;
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --shadow: 0 1px 3px rgba(0,0,0,.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,.12);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all .3s ease;
}

* { margin:0; padding:0; box-sizing:border-box; }

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

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--secondary); }

img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== HEADER / NAVBAR ===== */
.navbar {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar-logo img { height: 50px; max-width: 220px; object-fit: contain; }

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.navbar-menu a {
    padding: 8px 12px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 13px;
    border-radius: var(--radius);
    text-transform: uppercase;
    letter-spacing: .3px;
    transition: var(--transition);
    white-space: nowrap;
}

.navbar-menu a:hover {
    color: var(--primary);
    background: rgba(206,20,55,.08);
}

.navbar-menu a.active {
    color: var(--primary);
    font-weight: 700;
    border-bottom: 2px solid var(--primary);
    border-radius: 0;
    background: transparent;
}

.nav-auth-divider {
    width: 1px;
    height: 24px;
    background: var(--border);
    margin: 0 8px;
}

.nav-auth {
    display: flex;
    align-items: center;
}

.btn-auth {
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    border-radius: 50px;
    transition: var(--transition);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-auth:hover { color: var(--primary); }

.btn-auth-outline {
    border: 1px solid var(--border);
    padding: 7px 12px;
}

.btn-auth-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-apply {
    background: var(--primary);
    color: #fff !important;
    font-weight: 600;
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 13px;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-apply:hover {
    background: var(--primary-dark);
    color: #fff;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary);
}

/* ===== TOP BAR ===== */
.top-bar {
    background: var(--primary);
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-bar a { color: #fff; margin-left: 15px; }
.top-bar a:hover { color: var(--accent); }
.top-bar .social-links a { font-size: 15px; }

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,214,0,.1) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
}

.hero .subtitle {
    font-size: 20px;
    opacity: .9;
    margin-bottom: 12px;
    position: relative;
}

.hero .date-badge {
    display: inline-block;
    background: rgba(255,255,255,.2);
    color: #fff;
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    margin: 20px 0;
    position: relative;
    border: 1px solid rgba(255,255,255,.3);
}

.hero .btn-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 30px;
    position: relative;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { background: #b71c1c; color: #fff; }
.btn-accent { background: #fff; color: var(--primary); font-weight: 700; }
.btn-accent:hover { background: var(--bg-light); color: var(--primary-dark); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-white { background: #fff; color: var(--primary); font-weight: 700; }
.btn-white:hover { background: var(--bg-light); color: var(--primary); }
.btn-outline-white { background: transparent; border: 2px solid rgba(255,255,255,.8); color: #fff; font-weight: 600; }
.btn-outline-white:hover { background: #fff; color: var(--primary); border-color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 17px; }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-block { display: block; width: 100%; }

/* ===== SECTIONS ===== */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-light);
}

.section-dark {
    background: var(--secondary);
    color: #fff;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-dark .section-title h2 { color: #fff; }

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

.section-dark .section-title p { color: rgba(255,255,255,.8); }

/* ===== STATS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-item {
    padding: 30px 15px;
    background: rgba(255,255,255,.15);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,.15);
}

.stat-item .number {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
}

.stat-item .label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
    color: rgba(255,255,255,.85);
}

/* ===== CARDS ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-body {
    padding: 24px;
}

.card-body h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--primary);
}

.card-body p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.7;
}

.card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===== CATEGORY CARDS ===== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.category-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--secondary);
}

.category-card .icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #fff;
    font-size: 24px;
}

.category-card h3 { font-size: 18px; margin-bottom: 10px; color: var(--primary); }
.category-card p { font-size: 13px; color: var(--text-gray); }

/* ===== TESTIMONIALS ===== */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.testimonial {
    background: #fff;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial::before {
    content: '"';
    font-size: 80px;
    color: var(--primary);
    opacity: .1;
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: Georgia, serif;
}

.testimonial p { font-size: 14px; color: var(--text-gray); margin-bottom: 16px; font-style: italic; }

.testimonial .author { font-weight: 600; color: var(--primary); font-size: 14px; }
.testimonial .role { font-size: 12px; color: var(--text-light); }

/* ===== PARTNERS ===== */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    align-items: center;
}

.partner-logo {
    padding: 20px;
    background: #fff;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.partner-logo:hover { box-shadow: var(--shadow-md); }
.partner-logo img { max-height: 60px; filter: grayscale(100%); transition: var(--transition); }
.partner-logo:hover img { filter: grayscale(0); }

/* ===== GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: rgba(206,20,55,.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    color: #fff;
    font-size: 30px;
}

.gallery-item:hover .overlay { opacity: 1; }

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    transition: var(--transition);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,35,126,.1);
}

textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control { appearance: auto; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-check input { width: 18px; height: 18px; }

/* ===== AUTH PAGES ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    padding: 40px 20px;
}

.auth-card {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 480px;
}

.auth-card .logo { text-align: center; margin-bottom: 30px; }
.auth-card .logo img { height: 60px; }
.auth-card h2 { text-align: center; margin-bottom: 24px; color: var(--primary); }

/* ===== ALERTS ===== */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* ===== TABLE ===== */
.table-responsive { overflow-x: auto; }

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table th, .table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
}

.table tr:hover { background: var(--bg-light); }

/* ===== BADGES ===== */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.badge-success { background: #ecfdf5; color: #065f46; }
.badge-warning { background: #fffbeb; color: #92400e; }
.badge-danger { background: #fef2f2; color: #991b1b; }
.badge-info { background: #eff6ff; color: #1e40af; }
.badge-primary { background: #eef2ff; color: var(--primary); }

/* ===== FOOTER ===== */
.footer {
    background: var(--primary-dark);
    color: #fff;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer h4 {
    font-size: 16px;
    margin-bottom: 16px;
    color: #fff;
}

.footer p, .footer a { color: rgba(255,255,255,.7); font-size: 14px; }
.footer a:hover { color: #fff; }

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,.5);
}

.footer .social-links { display: flex; gap: 12px; margin-top: 16px; }
.footer .social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
}
.footer .social-links a:hover { background: var(--primary); color: #fff; }

/* ===== DASHBOARD ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dash-card {
    background: #fff;
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
}

.dash-card .value { font-size: 32px; font-weight: 800; color: var(--primary); }
.dash-card .label { font-size: 13px; color: var(--text-gray); margin-top: 4px; }

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 30px;
    list-style: none;
}

.pagination a, .pagination span {
    padding: 8px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-dark);
}

.pagination a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== VIDEO SECTION ===== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.video-item { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.video-item iframe { width: 100%; aspect-ratio: 16/9; border: none; }
.video-item .title { padding: 16px; font-weight: 600; background: #fff; }

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active { display: flex; }

.modal {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 30px;
    max-width: 600px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-gray);
}

/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.9);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.active { display: flex; }
.lightbox img { max-width: 90%; max-height: 90vh; border-radius: var(--radius); }
.lightbox .close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    background: none;
    border: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .navbar-menu { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 20px; box-shadow: var(--shadow-lg); z-index: 999; }
    .navbar-menu.active { display: flex; }
    .nav-auth-divider { width: 100%; height: 1px; margin: 8px 0; }
    .nav-auth { width: 100%; }
    .nav-auth a { width: 100%; justify-content: center; }
    .navbar-toggle { display: block; }
    .hero h1 { font-size: 32px; }
    .hero .btn-group { flex-direction: column; align-items: center; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .card-grid { grid-template-columns: 1fr; }
    .section { padding: 50px 0; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .auth-card { padding: 24px; }
}
