:root {
    /* Light theme color palette */
    --light-bg: #f8f9fa;
    --light-bg-soft: #edf2f7;
    --light-bg-alt: #e2e8f0;
    --light-fg: #2d3748;
    --light-fg-alt: #4a5568;
    --light-primary: #3182ce;
    --light-secondary: #4299e1;
    --light-accent1: #2b6cb0;
    --light-accent2: #38a169;
    --light-accent3: #805ad5;
    --light-accent4: #dd6b20;
    --light-border: #cbd5e0;
    --light-shadow: rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
    color: var(--light-fg);
    line-height: 1.6;
}

a {
    color: var(--light-primary);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--light-accent1);
}

.container {
    display: grid;
    grid-template-columns: 250px 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas:
        "header header"
        "sidebar main";
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 0 20px var(--light-shadow);
}

/* Header styles */
header {
    grid-area: header;
    background-color: var(--light-primary);
    padding: 1rem;
    box-shadow: 0 2px 4px var(--light-shadow);
}

/* Navigation Menu with Dropdowns */
.main-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    position: relative;
}

.main-menu > li {
    margin: 0 1.5rem;
    position: relative;
    padding: 0.5rem 0;
}

.main-menu li a {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    display: block;
    position: relative;
}

.main-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s;
}

.main-menu > li > a:hover::after {
    width: 100%;
}

.main-menu > li > a:hover {
    color: var(--light-bg-soft);
}

/* Make sure hover state is properly triggered */
.main-menu > li {
    margin: 0 1.5rem;
    position: relative;
    padding: 0.5rem 0;
}

/* Dropdown menu */
.dropdown, .submenu {
    position: absolute;
    background-color: white;
    border: 1px solid var(--light-border);
    min-width: 180px;
    box-shadow: 0 8px 16px var(--light-shadow);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    display: block;
    border-radius: 4px;
}

.dropdown {
    top: 100%;
    left: 0;
}

.has-dropdown:hover > .dropdown {
    opacity: 1;
    visibility: visible;
    display: block;
}

.dropdown > li, .submenu > li {
    padding: 0;
    position: relative;
}

.dropdown > li > a, .submenu > li > a {
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--light-bg-soft);
    color: var(--light-fg);
}

.dropdown > li:last-child > a, .submenu > li:last-child > a {
    border-bottom: none;
}

.dropdown > li > a:hover, .submenu > li > a:hover {
    background-color: var(--light-bg-soft);
    color: var(--light-primary);
}

/* Submenu (third level) */
.submenu {
    left: 100%;
    top: 0;
    display: block;
}

.has-submenu:hover > .submenu {
    opacity: 1;
    visibility: visible;
    display: block;
}

.has-submenu > a:after {
    content: '›';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* Sidebar styles */
.sidebar {
    grid-area: sidebar;
    background-color: var(--light-bg-soft);
    padding: 1.5rem;
    border-right: 1px solid var(--light-border);
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section h2 {
    color: var(--light-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--light-border);
}

.news-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--light-border);
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    font-size: 0.8rem;
    color: var(--light-accent2);
}

.news-title {
    font-weight: 600;
    margin: 0.3rem 0;
}

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

.important-links ul li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.important-links ul li::before {
    content: '»';
    position: absolute;
    left: 0;
    color: var(--light-accent4);
}

/* Main content styles */
main {
    grid-area: main;
    padding: 2rem;
    background-color: white;
}

.main-content h1 {
    color: var(--light-primary);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.main-content h2 {
    color: var(--light-accent1);
    margin: 1.5rem 0 1rem;
    font-size: 1.5rem;
}

.main-content h3 {
    color: var(--light-secondary);
    margin: 1.2rem 0 0.8rem;
    font-size: 1.2rem;
}

.main-content p {
    margin-bottom: 1rem;
}

.main-content ul, .main-content ol {
    margin-bottom: 1rem;
    margin-left: 1.5rem;
}

.main-content li {
    margin-bottom: 0.5rem;
}

.highlight {
    color: var(--light-accent1);
    font-weight: 600;
}

.cta-button {
    display: inline-block;
    background-color: var(--light-primary);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    margin-top: 1.5rem;
    font-weight: 600;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: var(--light-accent1);
    color: white;
}

.service-card {
    background-color: var(--light-bg-soft);
    border-radius: 4px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--light-primary);
    position: relative;
}

.service-card h3 {
    color: var(--light-accent2);
    margin-top: 0;
}

.learn-more-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--light-primary);
    font-weight: 600;
    text-decoration: none;
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--light-primary);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.learn-more-link:hover {
    background-color: var(--light-primary);
    color: white;
}

/* Contact page styles */
.contact-info-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--light-bg-soft);
    border-radius: 5px;
    border-left: 4px solid var(--light-primary);
}

.contact-form-container {
    margin-top: 2rem;
}

.contact-form {
    max-width: 700px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--light-fg-alt);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--light-border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    background-color: white;
    color: var(--light-fg);
}

.form-group textarea {
    resize: vertical;
}

.submit-button {
    padding: 0.75rem 1.5rem;
    background-color: var(--light-primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: var(--light-accent1);
}

.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
}

.form-status.sending {
    background-color: var(--light-bg-soft);
    color: var(--light-primary);
    border-left: 4px solid var(--light-primary);
}

.form-status.success {
    background-color: var(--light-bg-soft);
    color: var(--light-accent2);
    border-left: 4px solid var(--light-accent2);
}

.form-status.error {
    background-color: var(--light-bg-soft);
    color: #e53e3e;
    border-left: 4px solid #e53e3e;
}

/* Service page specific styles */
.service-intro {
    font-size: 1.2rem;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background-color: var(--light-bg-soft);
    border-radius: 5px;
    border-left: 4px solid var(--light-primary);
}

.service-description {
    margin: 2rem 0;
}

.service-feature {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background-color: var(--light-bg-soft);
    border-radius: 5px;
    box-shadow: 0 2px 4px var(--light-shadow);
}

.service-feature h3 {
    color: var(--light-accent2);
    margin-top: 0;
}

.service-cta {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: var(--light-bg-soft);
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 2px 4px var(--light-shadow);
}

.service-cta .cta-button {
    margin-top: 1rem;
}

/* Home page specific styles */
.intro-section, .mission-section, .services-highlight {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--light-bg-soft);
    border-radius: 5px;
    box-shadow: 0 2px 4px var(--light-shadow);
}

.intro-section {
    border-left: 4px solid var(--light-primary);
}

.mission-section {
    border-left: 4px solid var(--light-accent3);
}

.services-highlight {
    border-left: 4px solid var(--light-accent2);
}

.cta-container {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.cta-button.secondary {
    background-color: var(--light-secondary);
}

.cta-button.secondary:hover {
    background-color: var(--light-accent1);
}

/* About page specific styles */
.vision-mission-section, .privacy-section, .concepts-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: var(--light-bg-soft);
    border-radius: 5px;
    box-shadow: 0 2px 4px var(--light-shadow);
}

.vision-mission-section {
    border-left: 4px solid var(--light-accent4);
}

.privacy-section {
    border-left: 4px solid var(--light-accent3);
}

.concepts-section {
    border-left: 4px solid var(--light-primary);
}

.concept-card {
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px var(--light-shadow);
}

.concept-card h3 {
    color: var(--light-accent2);
    margin-top: 0;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--light-primary);
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: none;
    font-size: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px var(--light-shadow);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--light-accent1);
    transform: translateY(-3px);
}
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "main"
            "sidebar";
    }

    .sidebar {
        border-right: none;
        border-top: 1px solid var(--light-border);
    }
    
    /* Mobile menu adjustments */
    .main-menu {
        flex-direction: column;
        align-items: center;
    }
    
    .main-menu > li {
        margin: 0.5rem 0;
        width: 100%;
        text-align: center;
    }
    
    .dropdown {
        position: static;
        width: 100%;
        display: none;
        opacity: 1;
        visibility: visible;
    }
    
    .has-dropdown:hover > .dropdown {
        display: block;
    }
    
    .submenu {
        position: static;
        width: 100%;
        display: none;
        box-shadow: none;
        border-left: 2px solid var(--light-accent2);
        opacity: 1;
        visibility: visible;
    }
    
    .has-submenu:hover > .submenu {
        display: block;
    }
    
    .cta-container {
        flex-direction: column;
    }
}
