/* Analyven.com - Main Stylesheet */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #F8F5EF;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333333;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

a {
    color: #8B0000;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #A02C2C;
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.section-dark {
    background-color: #2F4F4F;
    color: #FFFFFF;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
    color: #FFFFFF;
}

.section-dark p {
    color: #FFFFFF;
}

/* Header Styles */
.header {
    background-color: #F8F5EF;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #333333;
}

.logo-icon {
    width: 30px;
    height: 30px;
    background-color: #8B0000;
    border-radius: 50%;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 0.8rem;
    opacity: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: #333333;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: #8B0000;
    color: #FFFFFF;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #8B0000;
    color: #FFFFFF;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    background-color: #A02C2C;
    color: #FFFFFF;
}

.btn-secondary {
    background-color: #8B0000;
    color: #FFFFFF;
    border: 2px solid #8B0000;
}

.btn-secondary:hover {
    background-color: #A02C2C;
    color: #FFFFFF;
    border-color: #A02C2C;
}

/* Hero Section */
.hero {
    background-color: #F8F5EF;
    padding: 80px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #333333;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Cards and Blocks */
.card {
    background-color: #2F4F4F;
    color: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.card h3,
.card h4 {
    color: #FFFFFF;
    margin-bottom: 15px;
}

.card p {
    color: #FFFFFF;
    margin-bottom: 15px;
}

.card-light {
    background-color: #FFFFFF;
    color: #333333;
    border: 1px solid #E0E0E0;
}

.card-light h3,
.card-light h4 {
    color: #333333;
}

.card-light p {
    color: #333333;
}

/* Image Styles */
.image-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 3px solid #8B0000;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.image-placeholder {
    width: 100%;
    height: 200px;
    background-color: #E0E0E0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666666;
    font-style: italic;
    border: 3px solid #8B0000;
    border-radius: 10px;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Course Cards */
.course-card {
    background-color: #2F4F4F;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    padding: 15px;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-card-image {
    height: 200px;
    background-color: #E0E0E0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666666;
    font-style: italic;
}

.course-card-content {
    padding: 20px;
    color: #FFFFFF;
}

.course-card h3 {
    color: #FFFFFF;
    margin-bottom: 10px;
}

.course-card p {
    color: #FFFFFF;
    margin-bottom: 15px;
}

.course-card .btn {
    width: 100%;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333333;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #E0E0E0;
    border-radius: 5px;
    font-size: 1rem;
    background-color: #FFFFFF;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #8B0000;
}

.form-control::placeholder {
    color: #999999;
}

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

/* Contact Information */
.contact-info {
    background-color: #F8F5EF;
    padding: 30px;
    border-radius: 10px;
    margin-top: 20px;
}

.contact-info .contact-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E0E0E0;
}

.contact-info .contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-info .contact-icon {
    width: 35px;
    height: 35px;
    background-color: #8B0000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    margin-right: 15px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-info .contact-item > div {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-info strong {
    color: #333333;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.contact-info a {
    color: #8B0000;
    text-decoration: none;
    font-weight: 500;
}

.contact-info a:hover {
    color: #A02C2C;
    text-decoration: underline;
}

.contact-info .contact-item > div:last-child {
    color: #8B0000;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E0E0E0;
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: #8B0000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    margin-right: 15px;
    font-size: 1.2rem;
}

/* FAQ Styles */
.faq-item {
    padding: 20px 0;
    border-bottom: 1px solid #E0E0E0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background-color: #F5F5F5;
    padding-left: 10px;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: #333333;
}

.faq-arrow {
    color: #8B0000;
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background-color: #2F4F4F;
    color: #FFFFFF;
    padding: 60px 0 20px;
}

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

.footer-brand h3 {
    color: #FFFFFF;
    margin-bottom: 15px;
}

.footer-brand p {
    color: #FFFFFF;
    margin-bottom: 20px;
}

.footer-links h4 {
    color: #FFFFFF;
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    color: #FFFFFF;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #8B0000;
}

.footer-bottom {
    border-top: 1px solid #3A5C50;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #FFFFFF;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

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

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

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: #F8F5EF;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        transition: left 0.3s ease;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu a {
        padding: 15px 20px;
        margin: 10px 0;
        font-size: 1.1rem;
        width: 80%;
        text-align: center;
        border-radius: 5px;
    }
    
    .header-actions {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .section {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 0;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .card {
        padding: 20px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .card {
        padding: 15px;
    }
    
    .section {
        padding: 30px 0;
    }
}

/* Cookie Banner Styles */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #2F4F4F;
    color: #FFFFFF;
    padding: 20px;
    z-index: 10000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    transition: opacity 0.3s ease;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-banner-text h3 {
    color: #FFFFFF;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.cookie-banner-text p {
    color: #FFFFFF;
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.cookie-banner-text a {
    color: #8B0000;
    text-decoration: underline;
}

.cookie-banner-text a:hover {
    color: #A02C2C;
}

.cookie-banner-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-banner-buttons .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Cookie Settings Modal */
#cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.7);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: opacity 0.3s ease;
}

.cookie-settings-overlay {
    background-color: #FFFFFF;
    border-radius: 10px;
    padding: 30px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.cookie-settings-content h2 {
    color: #333333;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.cookie-settings-content > p {
    color: #666666;
    margin-bottom: 30px;
}

.cookie-category {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E0E0E0;
}

.cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.cookie-category h3 {
    color: #333333;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.cookie-category p {
    color: #666666;
    margin-bottom: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Cookie Toggle Switch */
.cookie-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.cookie-toggle.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-toggle input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 50px;
    height: 24px;
    background-color: #E0E0E0;
    border-radius: 12px;
    transition: background-color 0.3s ease;
}

.toggle-slider:before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: #FFFFFF;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.cookie-toggle input[type="checkbox"]:checked + .toggle-slider {
    background-color: #8B0000;
}

.cookie-toggle input[type="checkbox"]:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.cookie-toggle.disabled input[type="checkbox"]:checked + .toggle-slider {
    background-color: #8B0000;
}

.toggle-text {
    font-weight: 500;
    color: #333333;
}

.cookie-settings-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: flex-end;
}

.cookie-settings-buttons .btn {
    padding: 12px 24px;
}

/* Responsive Cookie Banner */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cookie-banner-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-banner-buttons .btn {
        width: 100%;
    }
    
    .cookie-settings-overlay {
        padding: 20px;
        margin: 10px;
    }
    
    .cookie-settings-buttons {
        flex-direction: column;
    }
    
    .cookie-settings-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    #cookie-banner {
        padding: 15px;
    }
    
    .cookie-banner-text h3 {
        font-size: 1.1rem;
    }
    
    .cookie-banner-text p {
        font-size: 0.85rem;
    }
    
    .cookie-banner-buttons .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* Footer Contact Info Fix */
.footer .contact-info .contact-item > div:last-child {
    color: #8B0000 !important;
}

/* Fix bullet points alignment */
ul {
    padding-left: 20px;
}

ul li {
    margin-bottom: 8px;
    list-style-position: outside;
}
