/* 
   Theme: Modern Academic / German Gold
   Colors: Midnight Blue, Soft Gold, White/Cream
*/

:root {
    --primary-color: #0f172a;
    /* Midnight Blue */
    --accent-color: #f59e0b;
    /* Amber/Gold */
    --accent-hover: #d97706;
    --bg-light: #f8fafc;
    --text-main: #334155;
    --text-light: #64748b;
    --white: #ffffff;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.center {
    text-align: center;
}

/* Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--accent-color), #fcd34d);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    margin-left: 10px;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Navbar */
.navbar {
    padding: 20px 0;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo .highlight {
    color: var(--accent-color);
}

.nav-links a {
    margin-left: 30px;
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.btn-nav {
    background-color: var(--accent-color);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 20px;
}

.btn-nav:hover {
    background-color: var(--accent-hover);
    color: var(--white) !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 2px 0;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.eyebrow {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 15px;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-image-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-img {
    width: 100%;
    max-width: 450px;
    border-radius: 20px;
    /* Fancy shape mask or border radius */
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    box-shadow: var(--shadow-lg);
    background: #e2e8f0;
    /* Fallback */
    height: 500px;
    object-fit: cover;
}

.floating-card {
    position: absolute;
    background: var(--white);
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    display: flex;
    gap: 15px;
    align-items: center;
    z-index: 2;
    animation: float 4s ease-in-out infinite;
}

.card-1 {
    top: 10%;
    left: 0;
}

.card-2 {
    bottom: 15%;
    right: 5%;
    animation-delay: 2s;
}

.floating-card .emoji {
    font-size: 1.5rem;
    background: #fef3c7;
    padding: 10px;
    border-radius: 50%;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Stats Section */
.stats-section {
    background-color: var(--white);
    padding: 60px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.stat-item p {
    font-weight: 500;
    color: var(--text-main);
}

/* About Section */
.about-section {
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-visual .visual-box {
    width: 100%;
    height: 400px;
    background-color: var(--primary-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    position: relative;
    overflow: hidden;
}

.about-visual .visual-box::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 60%);
    opacity: 0.1;
    top: -25%;
    left: -25%;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-list {
    margin-top: 30px;
}

.about-list li {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

/* Course Section */
.course-section {
    padding: 100px 0;
    background-color: #f1f5f9;
}

.section-subtitle {
    color: var(--text-light);
    margin-top: -10px;
    margin-bottom: 40px;
}

.course-card-featured {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: flex;
    max-width: 900px;
    margin: 0 auto;
}

.course-image {
    flex: 1;
    background: #cbd5e1;
    position: relative;
    min-height: 300px;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #fcd34d;
    color: #78350f;
    padding: 5px 12px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.course-details {
    flex: 1.2;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.course-details h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.rating {
    color: #f59e0b;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.rating span {
    color: var(--text-light);
    margin-left: 5px;
}

.course-features {
    margin: 20px 0 30px;
}

.course-features li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    padding-left: 20px;
    position: relative;
    color: var(--text-main);
}

.course-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.btn-course {
    background-color: var(--accent-color);
    color: white;
    text-align: center;
    border-radius: 4px;
    font-weight: bold;
}

.btn-course:hover {
    background-color: var(--accent-hover);
}

/* Resources Section */
.resources-section {
    padding: 100px 0;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 30px;
    padding-top: 40px;
}

.resource-card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    padding: 30px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.resource-card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.resource-card .icon {
    font-size: 2rem;
    margin-bottom: 20px;
}

.resource-card h4 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.resource-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.link-arrow {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.link-arrow:hover {
    text-decoration: underline;
}

/* Newsletter Section */
.newsletter-section {
    padding: 60px 0 100px;
}

.newsletter-box {
    background: var(--primary-color);
    color: var(--white);
    border-radius: 20px;
    padding: 60px;
    text-align: center;
    background-image: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    color: var(--white);
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border-radius: 50px;
    border: none;
    outline: none;
    font-family: inherit;
}

.newsletter-form .btn {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
}

.newsletter-form .btn:hover {
    background-color: var(--accent-hover);
    color: var(--white);
}

.privacy-note {
    margin-top: 15px;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Footer */
.footer {
    background-color: #0f172a;
    color: #cbd5e1;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-brand h3 {
    color: var(--white);
    margin-bottom: 10px;
}

.footer-links a {
    margin-left: 20px;
    color: #cbd5e1;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    font-size: 0.85rem;
    opacity: 0.5;
}

/* Response */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 20px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-btns {
        justify-content: center;
        display: flex;
    }

    .about-grid,
    .course-card-featured {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .course-image {
        min-height: 250px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .footer-links a {
        margin: 0 10px;
    }
}