/* Template 8 - Education/Course Informative Structured Style */

:root {
    /* Neutral defaults - user colors will override via generator */
    --primary-color: #000000;
    --secondary-color: #666666;
    --primary-rgb: 0, 0, 0;
    --text-default: #000000;
    --text-on-primary: #ffffff;
    --header-bg: #ffffff;
    --footer-bg: #1a1a1a;
    --footer-text-color: #ffffff;
    --section-bg: #f5f7fa;
    --card-bg: #ffffff;
    --border-color: #e1e8ed;
    --shadow: 0 3px 20px rgba(74,144,226,0.1);
    --shadow-hover: 0 10px 40px rgba(74,144,226,0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-default);
    overflow-x: hidden;
    background: var(--section-bg);
}

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

/* Header - Education Style */
.site-header {
    background: var(--header-bg);
    padding: 1.3rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border-bottom: 3px solid var(--primary-color);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    max-height: 50px;
    width: auto;
}

.site-name {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.main-nav {
    display: flex;
    gap: 35px;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-default);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    font-weight: 400;
}

/* Sections */
section {
    padding: 5rem 0;
    position: relative;
}

section:nth-child(even) {
    background: #ffffff;
}

/* About Section */
.about {
    background: var(--section-bg);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content .lead {
    font-size: 1.2rem;
    line-height: 1.9;
    color: #555;
}

/* Services/Courses Grid - Structured Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-item {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow);
    position: relative;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-item:hover::before {
    transform: scaleX(1);
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.service-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 700;
}

.service-item p {
    color: #666;
    line-height: 1.8;
}

/* Testimonials */
.testimonials {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-on-primary);
}

.testimonials .section-title,
.testimonials .section-subtitle {
    color: var(--text-on-primary);
}

/* Contact */
.contact {
    background: var(--section-bg);
}

.contact-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 10px;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
}

.contact-icon {
    font-size: 2.2rem;
    flex-shrink: 0;
    color: var(--primary-color);
}

.contact-details strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
}

.contact-details a,
.contact-details p {
    color: var(--text-default);
    text-decoration: none;
    font-size: 1rem;
}

.contact-details a:hover {
    color: var(--primary-color);
}

.social-section {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 2px solid var(--border-color);
}

.social-section h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

/* Map Container */
.map-container {
    margin-top: 3rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 2px solid var(--border-color);
}

#awg-embedded-map {
    width: 100%;
    height: 450px;
    border: none;
}

/* Footer */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text-color);
    padding: 3rem 0;
    border-top: 3px solid var(--primary-color);
}

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

.footer-content p,
.footer-content a {
    color: var(--footer-text-color);
    text-decoration: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 5px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .header-wrapper {
        flex-wrap: wrap;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 1.5rem;
        gap: 0;
        padding: 1.5rem 0;
        border-top: 2px solid var(--border-color);
        background: var(--header-bg);
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .main-nav a {
        padding: 1.2rem;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 4rem 0;
    }
}

@media (min-width: 769px) {
    .main-nav {
        display: flex !important;
    }
    
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* ===== COMPREHENSIVE COLOR SYSTEM ===== */
button[type="submit"], 
.btn-primary, 
.cta-button {
    background: var(--primary-color) !important;
    color: var(--text-on-primary) !important;
    border: none !important;
    padding: 14px 32px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

button[type="submit"]:hover, 
.btn-primary:hover {
    background: var(--secondary-color) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4) !important;
}

.main-nav a.active,
.main-nav a:hover {
    color: var(--primary-color) !important;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15) !important;
}

a:not(.main-nav a):not(.site-header a):not(.site-footer a) {
    color: var(--primary-color) !important;
}

.service-item:hover {
    border-color: var(--primary-color) !important;
    box-shadow: 0 10px 40px rgba(var(--primary-rgb), 0.25) !important;
}

/* Dark Mode */
[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-default: #e0e0e0;
    --header-bg: #2d2d2d;
    --card-bg: #2d2d2d;
    --border-color: #404040;
    --section-bg: #252525;
}

[data-theme="dark"] body {
    background-color: var(--bg-color);
    color: var(--text-default);
}

[data-theme="dark"] .site-header {
    background-color: var(--header-bg);
}

[data-theme="dark"] .service-item,
[data-theme="dark"] .contact-item {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] section:nth-child(even) {
    background: #2a2a2a;
}
