/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    color: #2c3e50;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Header Section */
.section:first-child {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.section:first-child::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.section:first-child .container {
    position: relative;
    z-index: 2;
}

.header-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow:
        0 3px 6px rgba(0, 0, 0, 0.8),
        0 6px 12px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(0, 0, 0, 0.3),
        0 1px 0px rgba(255, 255, 255, 0.1);
    animation: fadeInUp 1s ease-out;
    background: rgba(0, 0, 0, 0.35);
    padding: 20px 35px;
    border-radius: 18px;
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Content Section */
.section:not(:first-child) {
    background: #f8fafc;
    padding: 60px 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

/* Blog Cards */
.blog-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.blog-card-body {
    padding: 40px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
}

h4 {
    font-size: 1.8rem;
    color: #667eea;
    border-left: 4px solid #667eea;
    padding-left: 20px;
    margin-bottom: 30px;
    margin-top: 40px;
}

h4:first-child {
    margin-top: 0;
}

h2 {
    font-size: 2.2rem;
    color: #667eea;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #4a5568;
    text-align: justify;
}

/* Lists */
ul {
    margin: 20px 0;
    padding-left: 0;
}

li {
    list-style: none;
    position: relative;
    margin-bottom: 15px;
    padding-left: 30px;
    font-size: 1.1rem;
    color: #4a5568;
}

li::before {
    content: '•';
    color: #667eea;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -2px;
}

/* hr divider */
hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 30px 0;
}

/* Header paragraph text styling */
.section:first-child p {
    color: #f8fafc;
    font-weight: 500;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 4px 8px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(3px);
    margin: 10px auto;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Navigation section */
.navigation-section {
    background: #f8fafc;
    padding: 40px 20px;
    border-top: 1px solid #e2e8f0;
}

.navigation-card {
    text-align: center;
    padding: 20px;
}

.home-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.home-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8 0%, #6b4190 100%);
    text-decoration: none;
    color: white;
}

.home-link:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.home-icon {
    font-size: 1.3rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.home-link:hover .home-icon {
    transform: translateX(-3px);
}

.home-text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .header-title {
        font-size: 2rem;
        padding: 16px 28px;
        border-radius: 15px;
    }

    .section:first-child {
        padding: 60px 20px;
    }

    .blog-card-body {
        padding: 25px;
    }

    .container {
        width: 95%;
    }

    h4 {
        font-size: 1.4rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .home-link {
        padding: 12px 24px;
        font-size: 1rem;
        gap: 10px;
    }

    .home-icon {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .header-title {
        font-size: 1.6rem;
        padding: 14px 24px;
        border-radius: 12px;
    }

    .blog-card-body {
        padding: 20px;
    }

    .home-link {
        padding: 10px 20px;
        font-size: 0.95rem;
        gap: 8px;
    }

    .home-icon {
        font-size: 1.2rem;
    }
}
