/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-text: #1a1a1a;
    --secondary-text: #4a4a4a;
    --light-text: #6a6a6a;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --border-color: #e5e7eb;
    --logo-primary: #1e6b7a;
    --logo-secondary: #2d8a9a;
    --logo-accent: #4fb3c1;
    --logo-light: #f0f7f8;
    --accent: #1e6b7a;
    --accent-hover: #155a68;
    --accent-light: #f0f7f8;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--primary-text);
    background: var(--white);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-text);
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-text);
    margin-bottom: 1.5rem;
    letter-spacing: -0.3px;
}

h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--primary-text);
    margin-bottom: 1rem;
}

h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--primary-text);
    margin-bottom: 0.75rem;
}

p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.75;
    color: var(--primary-text);
    margin-bottom: 1.5rem;
}

.lead {
    font-size: 20px;
    color: var(--secondary-text);
    margin-bottom: 2rem;
    font-weight: 400;
    line-height: 1.6;
}

small {
    font-size: 14px;
    color: var(--light-text);
}

em {
    font-style: italic;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header and Navigation */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo img {
    height: 45px;
    width: auto;
    transition: opacity 0.2s ease;
}

.logo img:hover {
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-menu a {
    text-decoration: none;
    color: var(--primary-text);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 0.625rem 1rem;
    border-radius: 6px;
    position: relative;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--logo-primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--logo-primary);
    background-color: var(--logo-light);
}

.nav-menu a.active {
    color: var(--logo-primary);
    font-weight: 600;
}

.nav-menu a.active::before {
    width: 80%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--primary-text);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--logo-light) 100%);
    border-bottom: 1px solid var(--border-color);
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.hero-subtitle {
    font-size: 22px;
    color: var(--secondary-text);
    margin-top: 1.5rem;
    font-weight: 400;
    line-height: 1.6;
}

/* Intro Section */
.intro-section {
    padding: 5rem 0;
    background: var(--white);
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 3.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.intro-text {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--primary-text);
}

.intro-text.emphasis {
    font-weight: 600;
    font-size: 22px;
    color: var(--logo-primary);
    text-transform: none;
    font-style: italic;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--logo-primary);
    background: var(--logo-light);
    border-radius: 8px;
    margin: 2rem 0;
}

/* Categories Section */
.categories-section {
    padding: 5rem 0;
    background: var(--light-bg);
}

.categories-section h2 {
    text-align: center;
    margin-bottom: 3.5rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.category-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--logo-primary);
}

.category-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.category-card h3 {
    margin-bottom: 1rem;
    font-size: 22px;
    color: var(--primary-text);
}

.category-card p {
    color: var(--secondary-text);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Page Header */
.page-header {
    padding: 5rem 0;
    background: var(--white);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.page-header-image {
    max-width: 100%;
    height: auto;
    max-height: 350px;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

/* Content Section */
.content-section {
    padding: 5rem 0;
    background: var(--white);
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

/* Categories List (About Page) */
.categories-list {
    margin-top: 2rem;
}

.category-item {
    margin-bottom: 2rem;
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.category-item:hover {
    box-shadow: var(--shadow);
    border-color: var(--logo-primary);
}

.category-item:last-child {
    border-bottom: none;
}

.category-item h4 {
    color: var(--logo-primary);
    margin-bottom: 0.75rem;
}

.category-item p {
    color: var(--secondary-text);
}

/* Simple Categories List (About Page - No Cards) */
.categories-list-simple {
    margin-top: 2rem;
}

.category-item-simple {
    margin-bottom: 2.5rem;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.category-item-simple:last-child {
    margin-bottom: 0;
}

.category-item-simple h4 {
    color: var(--logo-primary);
    margin-bottom: 0.75rem;
}

.category-item-simple p {
    color: var(--secondary-text);
}

/* Subcategories */
.subcategories {
    margin-top: 2rem;
}

.subcategory-item {
    padding: 1.75rem;
    background: var(--logo-light);
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.subcategory-item:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--logo-primary);
}

.subcategory-item h3 {
    margin-bottom: 0.5rem;
}

.subcategory-item p {
    margin-bottom: 0;
    color: var(--secondary-text);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: var(--logo-primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    background: var(--logo-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--logo-primary);
    color: var(--white);
    padding: 1rem 2.5rem;
    font-size: 16px;
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--logo-secondary);
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 2rem auto 0;
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.625rem;
    font-weight: 500;
    color: var(--primary-text);
    font-size: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--logo-primary);
    box-shadow: 0 0 0 3px rgba(30, 107, 122, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

/* Course Info */
.course-info {
    background: var(--logo-light);
    padding: 2.5rem;
    border-radius: 12px;
    margin-top: 2rem;
    border: 1px solid var(--border-color);
}

/* Blog List Section */
.blog-list-section {
    padding: 5rem 0;
    background: var(--white);
    border-top: 1px solid var(--border-color);
}

.blog-list-section h2 {
    text-align: center;
    margin-bottom: 3.5rem;
}

.blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.courses-grid {
    grid-template-columns: repeat(2, 1fr);
}

.blog-item {
    background: var(--white);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--logo-primary);
}

.blog-item h3 {
    margin-bottom: 1rem;
    font-size: 22px;
    line-height: 1.3;
}

.blog-item h3 a {
    color: var(--primary-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-item h3 a:hover {
    color: var(--logo-primary);
}

.blog-item p {
    color: var(--secondary-text);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
}

.blog-item .btn {
    margin-top: auto;
    align-self: flex-start;
}

.blog-date {
    font-size: 14px;
    color: var(--light-text);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

/* Latest Blog Section */
.latest-blog-section {
    padding: 5rem 0;
    background: var(--logo-light);
    border-top: 1px solid var(--border-color);
}

.latest-blog-section h2 {
    text-align: center;
    margin-bottom: 3.5rem;
}

.latest-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: stretch;
}

.latest-column {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.latest-column h2 {
    text-align: left;
    margin-bottom: 2rem;
    font-size: 32px;
}

.latest-blog-item {
    background: var(--white);
    border-radius: 12px;
    padding: 3.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.latest-news-item {
    background: var(--white);
    border-radius: 12px;
    padding: 3.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.latest-news-item h3 {
    font-size: 32px;
    margin-bottom: 1rem;
    color: var(--primary-text);
}

.latest-news-item .news-date {
    font-size: 16px;
    color: var(--light-text);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.latest-news-item p {
    color: var(--secondary-text);
    margin-bottom: 2rem;
    font-size: 18px;
    line-height: 1.75;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.latest-news-item .btn {
    margin-top: auto;
    align-self: flex-start;
}

.latest-blog-item h3 {
    font-size: 32px;
    margin-bottom: 1rem;
}

.latest-blog-item h3 a {
    color: var(--primary-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.latest-blog-item h3 a:hover {
    color: var(--logo-primary);
}

.latest-blog-item .blog-date {
    font-size: 16px;
    color: var(--light-text);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.latest-blog-item p {
    color: var(--secondary-text);
    margin-bottom: 2rem;
    font-size: 18px;
    line-height: 1.75;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.latest-blog-item .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* Blog Post Pages */
.blog-header {
    padding: 4rem 0 3rem;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.blog-header .container {
    max-width: 900px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--logo-primary);
    text-decoration: none;
    margin-bottom: 2rem;
    font-size: 15px;
    transition: all 0.2s ease;
    font-weight: 500;
    gap: 0.5rem;
}

.back-link:hover {
    color: var(--logo-secondary);
    gap: 0.75rem;
}

.blog-post-image {
    max-width: 100%;
    height: auto;
    max-height: 450px;
    margin: 2rem auto;
    display: block;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.blog-meta {
    font-size: 18px;
    color: var(--secondary-text);
    font-style: italic;
    margin-top: 1.5rem;
    font-weight: 400;
    line-height: 1.6;
}

.blog-content {
    padding: 4rem 0;
    background: var(--white);
}

.blog-content .content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 0;
}

.blog-content p {
    font-size: 18px;
    line-height: 1.85;
    margin-bottom: 1.75rem;
}

.blog-content ul {
    margin-left: 2rem;
    margin-bottom: 1.75rem;
}

.blog-content ul li {
    margin-bottom: 0.75rem;
    line-height: 1.75;
}

/* Footer */
.footer {
    background: var(--primary-text);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
    margin-top: 5rem;
    border-top: 1px solid var(--border-color);
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 22px;
    }

    .container {
        padding: 0 1.5rem;
    }

    .nav {
        padding: 1rem 1.5rem;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        box-shadow: var(--shadow-md);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        gap: 0.5rem;
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero {
        padding: 3rem 0;
    }

    .intro-section,
    .content-section,
    .categories-section {
        padding: 3rem 0;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .page-header {
        padding: 3rem 0;
    }

    .page-header-image {
        max-height: 250px;
    }

    .blog-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .blog-header {
        padding: 3rem 0 2rem;
    }

    .blog-content {
        padding: 3rem 0;
    }

    .latest-blog-item {
        padding: 2rem;
    }

    .latest-content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .latest-column h2 {
        text-align: center;
        font-size: 28px;
    }

    .latest-news-item {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 20px;
    }

    body {
        font-size: 15px;
    }

    .container {
        padding: 0 1rem;
    }

    .nav {
        padding: 1rem;
    }

    .logo img {
        height: 40px;
    }

    .nav-menu {
        gap: 0.25rem;
    }

    .nav-menu a {
        font-size: 14px;
        padding: 0.5rem 0.875rem;
    }

    .intro-content {
        padding: 2rem;
    }

    .category-card,
    .blog-item {
        padding: 2rem;
    }
}
