/* =========================================
   VARIABLES & RESET
   ========================================= */
:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #0f172a;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --light: #f8fafc;
    --dark: #1e293b;
    --text-main: #334155;
    --text-light: #64748b;
    --white: #ffffff;
    --border: #e2e8f0;
    --font-main: 'Inter', sans-serif;
    --container-width: min(92vw, 1500px);
    --header-height: 70px;
    --radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--light);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   UTILITIES
   ========================================= */
.container {
    width: min(92%, 1500px);
    /* автоматски се скалира според екран */
    margin-inline: auto;
    /* центрирање */
    padding-inline: 20px;
    /* убав spacing лево/десно */
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.text-center {
    text-align: center;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   FLASH MESSAGES
   ========================================= */
.flash-messages-container {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    z-index: 9999;
}

.flash-message {
    padding: 16px 24px;
    border-radius: 12px;
    margin-bottom: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.4s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.flash-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.flash-error,
.flash-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.flash-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.flash-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   HEADER & NAV
   ========================================= */
.site-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: min(92%, 1500px);
    margin: 0 auto;
    padding-inline: 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== FIX BOOTSTRAP GRID INSIDE MAIN ===== */
.main-content {
    display: block;
    width: 100%;
}

.main-content .container {
    display: block;
}

.main-content .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.main-content [class^="col-"] {
    display: block;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: clamp(60px, 10vw, 120px) 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::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="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.hero-inner {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: #cbd5e1;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-btn {
    background-color: var(--accent);
    color: var(--secondary);
    padding: clamp(12px, 2vw, 18px) clamp(30px, 5vw, 45px);
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    font-weight: 700;
    border-radius: 50px;
    border: none;
    display: inline-block;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-btn:hover {
    background-color: #d97706;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(245, 158, 11, 0.4);
}

/* =========================================
   STATS SECTION
   ========================================= */
.stats {
    background-color: var(--white);
    padding: clamp(30px, 5vw, 60px) clamp(20px, 4vw, 40px);
    margin-top: -50px;
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 60px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: clamp(20px, 3vw, 40px);
    text-align: center;
}

.stat-item {
    position: relative;
}

.stat-item h3 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 10px;
}

.stat-item p {
    color: var(--text-light);
    font-weight: 500;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
}

/* =========================================
   FEATURES SECTION
   ========================================= */
.features-section {
    padding: clamp(60px, 10vw, 100px) 20px;
    background: linear-gradient(180deg, var(--light) 0%, var(--white) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(30px, 5vw, 40px);
    margin-top: 60px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: var(--white);
}

.feature-card h3 {
    font-size: clamp(1.2rem, 2vw, 1.4rem);
    color: var(--secondary);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

/* =========================================
   COURSES SECTION
   ========================================= */
.courses-section {
    padding: clamp(60px, 10vw, 100px) 20px;
    background: var(--light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
    color: var(--secondary);
    margin-bottom: 15px;
    font-weight: 800;
}

.section-subtitle {
    color: var(--text-light);
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(25px, 4vw, 35px);
}

.course-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

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

.course-img {
    height: 220px;
    width: 100%;
    object-fit: cover;
}

.course-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-title {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--secondary);
}

.course-desc {
    color: var(--text-light);
    font-size: clamp(0.9rem, 1.5vw, 0.95rem);
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.6;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.price {
    font-weight: 700;
    color: var(--primary);
    font-size: clamp(1.2rem, 2vw, 1.4rem);
}

.details-btn {
    color: var(--primary);
    font-weight: 600;
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    transition: text-decoration 0.3s ease;
}

.details-btn:hover {
    text-decoration: underline;
}

/* =========================================
   FAQ SECTION
   ========================================= */
.faq-section {
    padding: clamp(60px, 10vw, 100px) 20px;
    background: var(--white);
}

.faq-container {
    max-width: 900px;
    margin: 60px auto 0;
}

.faq-item {
    background: var(--light);
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--secondary);
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #e2e8f0;
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--primary);
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 30px;
    color: var(--text-light);
    line-height: 1.7;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 30px 25px;
}

/* =========================================
   NEWSLETTER SECTION
   ========================================= */
.newsletter-section {
    padding: clamp(60px, 10vw, 80px) 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    text-align: center;
}

.newsletter-section h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 15px;
}

.newsletter-section p {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: #cbd5e1;
    margin-bottom: 40px;
}

.newsletter-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-input {
    flex: 1;
    min-width: 200px;
    padding: 16px 25px;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
    outline: none;
}

.newsletter-btn {
    padding: 16px 40px;
    background: var(--accent);
    color: var(--secondary);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background: #d97706;
    transform: translateY(-2px);
}

/* =========================================
   PARTNERS SECTION
   ========================================= */
.partners-section {
    padding: clamp(60px, 10vw, 80px) 20px;
    background: var(--light);
    text-align: center;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: clamp(30px, 5vw, 40px);
    margin-top: 50px;
    align-items: center;
}

.partner-logo {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    transition: transform 0.3s ease;
}

.partner-logo:hover {
    transform: scale(1.05);
}

.partner-logo i {
    font-size: 3rem;
    color: var(--text-light);
}

/* =========================================
   CTA SECTION
   ========================================= */
.cta-section {
    background: linear-gradient(135deg, var(--secondary), var(--dark));
    color: var(--white);
    padding: clamp(60px, 10vw, 100px) 20px;
    text-align: center;
}

.cta-section h2 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    margin-bottom: 20px;
    font-weight: 800;
}

.cta-section p {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: #cbd5e1;
    margin-bottom: 40px;
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    background-color: var(--secondary);
    color: var(--white);
    padding: 60px 20px 20px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(30px, 5vw, 40px);
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    margin-bottom: 20px;
    color: var(--accent);
}

.footer-col p,
.footer-col a {
    color: #94a3b8;
    margin-bottom: 10px;
    display: block;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--white);
}

.social-links a {
    margin-right: 15px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #64748b;
    font-size: clamp(0.8rem, 1.2vw, 0.9rem);
}

/* =========================================
   RESPONSIVE ADJUSTMENTS
   ========================================= */

@media (max-width: 1024px) {
    .nav-links {
        gap: 20px;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .site-header {
        height: auto;
        padding: 15px 0;
    }

    .nav-wrapper {
        justify-content: space-between;
    }

    .mobile-toggle {
        display: block !important;
        color: var(--secondary);
    }

    .nav-links {
        display: none !important;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: #ffffff;
        padding: 20px;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        border-top: 1px solid #f1f5f9;
        gap: 15px;
    }

    .nav-links.active {
        display: flex !important;
        animation: slideDownMenu 0.3s ease-out;
    }

    @keyframes slideDownMenu {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-input,
    .newsletter-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 10px;
        font-size: 0.8rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .stats {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .course-img {
        height: 150px;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.legal-page {
    max-width: 900px;
    margin: 80px auto;
    color: #1e293b;
    /* темен текст */
}

.legal-page h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #0a0f1f;
}

.legal-page h2 {
    margin-top: 22px;
    font-size: 1.35rem;
    font-weight: 700;
    color: #2563eb;
}

.legal-page ul {
    margin-left: 20px;
    line-height: 1.65;
}

.legal-page p {
    line-height: 1.8;
    margin-top: 8px;
    color: #334155;
}
/* ===== DASHBOARD CARD FIX (FINAL) ===== */
.dashboard-wrapper .card {
    display: block !important;
}

.dashboard-wrapper .card-body {
    display: block !important;
    text-align: center;
}

.dashboard-wrapper .card h2,
.dashboard-wrapper .card h6,
.dashboard-wrapper .card small {
    display: block;
}
