/* ============================================
   Quantarex Learning Solutions - Global Styles
   ============================================ */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* ============================================
   CSS Variables & Color System
   ============================================ */
:root {
    --primary-green: #2ecc71;
    --primary-green-hover: #27ae60;
    --dark-nav: #1a1a2e;
    --text-gray: #555555;
    --text-dark: #333333;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a2e;
    --border-color: #e0e0e0;
    --overlay-dark: rgba(0, 0, 0, 0.55);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* ============================================
   Global Reset & Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    color: var(--text-gray);
    background-color: var(--bg-white);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.35rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

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

ul {
    list-style: none;
}

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

section {
    padding: 80px 0;
}

/* ============================================
   Navigation Bar
   ============================================ */
.navbar {
    background-color: var(--dark-nav) !important;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bg-white) !important;
    transition: var(--transition);
}

.navbar-brand:hover {
    color: var(--primary-green) !important;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 400;
    padding: 0.5rem 1.2rem !important;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-green) !important;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background-color: var(--primary-green);
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--bg-white);
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-dark);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    color: var(--bg-white);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.95);
}

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

/* ============================================
   Buttons
   ============================================ */
.btn-primary-custom {
    background-color: var(--primary-green);
    color: var(--bg-white);
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid var(--primary-green);
    transition: var(--transition);
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary-custom:hover {
    background-color: var(--primary-green-hover);
    border-color: var(--primary-green-hover);
    color: var(--bg-white);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.3);
}

.btn-outline-custom {
    background-color: transparent;
    color: var(--bg-white);
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid var(--bg-white);
    transition: var(--transition);
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-outline-custom:hover {
    background-color: var(--bg-white);
    color: var(--dark-nav);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Section Titles
   ============================================ */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-green-hover));
    border-radius: 2px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-top: 25px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   Cards
   ============================================ */
.card-custom {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    height: 100%;
}

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

.card-icon {
    font-size: 3.5rem;
    color: var(--primary-green);
    margin-bottom: 20px;
    display: inline-block;
}

.card-custom h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.card-custom p {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.7;
}

/* ============================================
   Statistics Section
   ============================================ */
.statistics {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-hover));
    color: var(--bg-white);
    padding: 80px 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.stat-label {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.95;
}

/* ============================================
   Course Cards
   ============================================ */
.course-card {
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

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

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

.course-card h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.course-card p {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 20px;
}

.course-card .btn-primary-custom {
    padding: 12px 28px;
    font-size: 0.95rem;
    align-self: flex-start;
}

/* ============================================
   Blog Cards
   ============================================ */
.blog-card {
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.blog-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.blog-card-body {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-date {
    color: var(--primary-green);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
}

.blog-card h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.blog-card p {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 20px;
}

.blog-card .btn-primary-custom {
    padding: 10px 25px;
    font-size: 0.9rem;
    align-self: flex-start;
}

/* ============================================
   Blog Article
   ============================================ */
.blog-article {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.blog-article-header {
    margin-bottom: 40px;
}

.blog-article-header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.blog-article-meta {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.blog-article-meta .blog-date {
    color: var(--primary-green);
    font-weight: 600;
}

.blog-article-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.blog-article-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-gray);
}

.blog-article-content h2 {
    font-size: 2rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.blog-article-content h3 {
    font-size: 1.6rem;
    margin-top: 35px;
    margin-bottom: 18px;
    color: var(--text-dark);
}

.blog-article-content ul {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
}

.blog-article-content li {
    margin-bottom: 10px;
}

.recommended-articles {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 2px solid var(--border-color);
}

/* ============================================
   Contact Form
   ============================================ */
.contact-form {
    background: var(--bg-white);
    padding: 50px 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 25px;
}

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

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.contact-info-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    height: 100%;
    border: 1px solid var(--border-color);
}

.contact-info-card i {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.contact-info-card h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.contact-info-card p {
    color: var(--text-gray);
    font-size: 1rem;
    margin: 0;
}

.map-container {
    margin-top: 60px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* ============================================
   Team Section
   ============================================ */
.team-member {
    text-align: center;
    margin-bottom: 40px;
}

.team-member img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 25px;
    box-shadow: var(--shadow);
    border: 5px solid var(--bg-white);
}

.team-member h5 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.team-member .position {
    color: var(--primary-green);
    font-size: 1rem;
    font-weight: 600;
}

/* ============================================
   Values Section
   ============================================ */
.value-item {
    text-align: center;
    padding: 30px 20px;
}

.value-item i {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.value-item h5 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.value-item p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* ============================================
   FAQ Accordion
   ============================================ */
.accordion-item {
    border: 1px solid var(--border-color);
    margin-bottom: 15px;
    border-radius: 10px !important;
    overflow: hidden;
}

.accordion-button {
    font-weight: 600;
    color: var(--text-dark);
    background-color: var(--bg-light);
    padding: 20px 25px;
    font-size: 1.1rem;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-green);
    color: var(--bg-white);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--border-color);
}

.accordion-body {
    padding: 25px;
    background-color: var(--bg-white);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-gray);
}

/* ============================================
   Legal Pages
   ============================================ */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.legal-content h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.legal-content h3 {
    font-size: 1.4rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.legal-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.legal-content ul {
    list-style: disc;
    margin-left: 30px;
    margin-bottom: 20px;
}

.legal-content li {
    margin-bottom: 10px;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-hover));
    color: var(--bg-white);
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--bg-white);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-section .btn-outline-custom {
    background-color: var(--bg-white);
    color: var(--primary-green);
    border-color: var(--bg-white);
}

.cta-section .btn-outline-custom:hover {
    background-color: transparent;
    color: var(--bg-white);
    border-color: var(--bg-white);
}

/* ============================================
   Footer
   ============================================ */
footer {
    background-color: var(--bg-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 60px 0 30px;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bg-white);
    margin-bottom: 15px;
}

.footer-tagline {
    font-size: 1rem;
    color: var(--primary-green);
    margin-bottom: 25px;
    font-weight: 600;
}

.footer-section {
    margin-bottom: 40px;
}

.footer-section h5 {
    color: var(--bg-white);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-section p {
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.85);
    display: block;
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-green);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--bg-white);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary-green);
    color: var(--bg-white);
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 40px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   Cookie Banner
   ============================================ */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    padding: 25px 0;
    z-index: 10000;
    display: none;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

#cookie-banner.show {
    display: block;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
    font-size: 0.95rem;
    color: var(--text-gray);
}

.cookie-text a {
    color: var(--primary-green);
    font-weight: 600;
}

.cookie-text a:hover {
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-cookie-accept {
    background-color: var(--primary-green);
    color: var(--bg-white);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

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

.btn-cookie-decline {
    background-color: transparent;
    color: var(--text-gray);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.btn-cookie-decline:hover {
    background-color: var(--bg-light);
    border-color: var(--text-gray);
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablets */
@media (max-width: 991px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.9rem; }
    h3 { font-size: 1.5rem; }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero p {
        font-size: 1.15rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2.8rem;
    }
}

/* Mobile */
@media (max-width: 767px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }
    
    .hero {
        height: auto;
        min-height: 500px;
        padding: 100px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-primary-custom,
    .btn-outline-custom {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
    
    section {
        padding: 50px 0;
    }
    
    .section-title {
        margin-bottom: 40px;
    }
    
    .section-title h2 {
        font-size: 1.7rem;
    }
    
    .section-title p {
        font-size: 1rem;
    }
    
    .card-custom {
        padding: 30px 20px;
        margin-bottom: 20px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    .course-card img,
    .blog-card img {
        height: 200px;
    }
    
    .blog-article-header h1 {
        font-size: 2rem;
    }
    
    .blog-article-image {
        height: 300px;
    }
    
    .blog-article-content {
        font-size: 1rem;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .btn-cookie-accept,
    .btn-cookie-decline {
        width: 100%;
        text-align: center;
    }
    
    .team-member img {
        width: 180px;
        height: 180px;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .hero h1 {
        font-size: 1.7rem;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.bg-light-custom {
    background-color: var(--bg-light);
}

.text-green {
    color: var(--primary-green);
}

.mt-60 {
    margin-top: 60px;
}

.mb-60 {
    margin-bottom: 60px;
}

.py-80 {
    padding-top: 80px;
    padding-bottom: 80px;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .navbar,
    footer,
    #cookie-banner {
        display: none;
    }
}