/* =========================================
   Modern Premium White Theme CSS
   ========================================= */

:root {
    /* Fresh & Clean Colors */
    --primary: #111827;        /* Very dark gray for deep contrast */
    --secondary: #4b5563;      /* Softer text color */
    --accent: #4f46e5;         /* Vibrant Indigo */
    --accent-gradient: linear-gradient(135deg, #4f46e5 0%, #ec4899 100%); /* Purple to Pink */
    --accent-light: #e0e7ff;
    
    /* White Theme Backgrounds */
    --bg-page: #f4f7f6;        /* Off-white/gray background for contrast */
    --bg-card: #ffffff;        /* Pure white for cards */
    --border-color: rgba(226, 232, 240, 0.6);
    
    /* Status Colors */
    --warning-bg: #fffbeb;
    --warning-border: #f59e0b;
    --success-bg: #f0fdf4;
    --success-border: #22c55e;
    
    /* Modern Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px -10px rgba(79, 70, 229, 0.15);
}

/* Animations */
@keyframes popIn {
    0% { opacity: 0; transform: translateY(30px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(79, 70, 229, 0); }
    100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}

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

body {
    font-family: 'Noto Sans Sinhala', 'Segoe UI', sans-serif;
    background-color: var(--bg-page);
    background-image: 
        radial-gradient(at 0% 0%, hsla(253,16%,7%,0.03) 0, transparent 50%), 
        radial-gradient(at 50% 0%, hsla(225,39%,30%,0.03) 0, transparent 50%), 
        radial-gradient(at 100% 0%, hsla(339,49%,30%,0.03) 0, transparent 50%);
    color: var(--secondary);
    line-height: 1.8;
    overflow-x: hidden;
}

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

/* Hero Section - Redesigned to White/Light Theme */
.hero-section {
    position: relative;
    background: #ffffff;
    padding: 80px 20px;
    text-align: center;
    border-bottom: none;
    border-radius: 0 0 40px 40px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    z-index: 1;
}

/* Decorative background shapes for Hero */
.hero-section::before, .hero-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    filter: blur(60px);
    opacity: 0.4;
}
.hero-section::before {
    width: 300px;
    height: 300px;
    background: #4f46e5;
    top: -100px;
    left: -100px;
    animation: float 6s ease-in-out infinite;
}
.hero-section::after {
    width: 250px;
    height: 250px;
    background: #ec4899;
    bottom: -50px;
    right: -50px;
    animation: float 8s ease-in-out infinite reverse;
}

.hero-section .badge {
    background: var(--accent-gradient);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    animation: pulse-glow 2s infinite;
}

.hero-section h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    /* Gradient Text Effect */
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-section p {
    font-size: 1.15rem;
    color: var(--secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Main Content */
.main-content {
    padding: 60px 20px;
}

.intro-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-left: 6px solid var(--accent);
    padding: 25px 30px;
    border-radius: 12px;
    font-size: 1.15rem;
    margin-bottom: 50px;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    animation: popIn 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Content Sections */
.content-section {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    animation: popIn 1s cubic-bezier(0.25, 1, 0.5, 1) both;
}

.content-section:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 2px dashed var(--border-color);
    padding-bottom: 20px;
}

.step-num {
    background: var(--accent-gradient);
    color: white;
    font-size: 1.2rem;
    font-weight: 800;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px; /* Modern squircle shape */
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
}

.content-section:hover .step-num {
    transform: rotate(0deg) scale(1.1);
}

.section-header h2 {
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-body p {
    margin-bottom: 20px;
    color: var(--secondary);
    font-size: 1.1rem;
}

/* Grid Cards Layout */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy Pop effect */
    z-index: 1;
}

/* Hover Effect Line for Cards */
.card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: -1;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.card h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 700;
}

.card p {
    font-size: 1rem;
    color: var(--secondary);
    margin-bottom: 0;
}

/* Highlight & Warning Boxes */
.highlight-box, .warning-box {
    padding: 25px;
    border-radius: 12px;
    margin-top: 30px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.highlight-box:hover, .warning-box:hover {
    transform: scale(1.02); /* Pop up effect on hover */
}

.highlight-box {
    background-color: var(--success-bg);
    border-left: 5px solid var(--success-border);
}

.highlight-box h4 {
    color: #166534;
    font-size: 1.15rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.warning-box {
    background-color: var(--warning-bg);
    border-left: 5px solid var(--warning-border);
}

.warning-box h4 {
    color: #92400e;
    font-size: 1.15rem;
    margin-bottom: 10px;
    font-weight: 700;
}

/* Process Steps List */
.process-steps {
    list-style: none;
    margin-top: 25px;
}

.process-steps li {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 20px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.process-steps li:hover {
    transform: translateX(10px); /* Slides slightly to the right */
    border-color: var(--accent-light);
    box-shadow: var(--shadow-md);
}

.step-icon {
    background: var(--accent-light);
    color: var(--accent);
    font-weight: 800;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 1rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.process-steps li:hover .step-icon {
    background: var(--accent);
    color: #ffffff;
}

.step-text {
    font-size: 1.05rem;
}

.step-text strong {
    color: var(--primary);
    display: block;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

/* Placeholder Box */
.placeholder-box {
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.placeholder-box:hover {
    border-color: var(--accent);
    background-color: rgba(244, 247, 252, 0.8);
}

.placeholder-box p {
    color: var(--secondary);
    font-style: italic;
    margin-bottom: 0;
    font-size: 1.1rem;
}

/* =========================================
   5. Footer & Extras
   ========================================= */
.placeholder-box {
    background: transparent;
    border: 1px dashed rgba(71, 85, 105, 0.3);
    border-radius: 20px;
    padding: 48px;
    text-align: center;
    transition: all 0.3s ease;
}

.placeholder-box:hover {
    border-color: var(--accent);
    background: var(--bg-page);
}

footer {
    text-align: center;
    padding: 60px 0 40px;
    margin-top: 40px;
    color: #94a3b8;
    font-size: 0.95rem;
    border-top: 1px solid var(--border-subtle);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .content-section { padding: 32px 24px; }
    .hero-section { padding: 80px 0 40px; }
}



/* =========================================
   Ultra-Premium Modern White Theme CSS 
   Inspired by Apple & Stripe UI
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Noto+Sans+Sinhala:wght@400;500;600;700&display=swap');

:root {
    /* Premium Minimalist Colors */
    --primary: #0f172a;        /* Deep rich black-blue for headings */
    --secondary: #475569;      /* Elegant slate gray for text */
    --accent: #2563eb;         /* Clean royal blue */
    --accent-glow: rgba(37, 99, 235, 0.15);
    
    /* Backgrounds & Glass Effects */
    --bg-page: #fafcff;        /* Ultra-light cool white */
    --bg-card: #ffffff;        /* Pure white */
    --bg-glass: rgba(255, 255, 255, 0.7);
    
    /* Borders */
    --border-subtle: rgba(226, 232, 240, 0.8);
    
    /* Alerts */
    --warning-bg: #fefce8;
    --warning-text: #a16207;
    --success-bg: #f0fdf4;
    --success-text: #15803d;

    /* High-End Soft Shadows (Not harsh) */
    --shadow-float: 0 4px 24px -8px rgba(2, 6, 23, 0.04), 0 2px 8px -2px rgba(2, 6, 23, 0.02);
    --shadow-hover: 0 20px 40px -12px rgba(2, 6, 23, 0.08), 0 0 0 1px rgba(37, 99, 235, 0.1);
    
    /* Premium Smooth Easing */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: 'Plus Jakarta Sans', 'Noto Sans Sinhala', sans-serif;
    background-color: var(--bg-page);
    color: var(--secondary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Animations */
@keyframes fadeUpReveal {
    0% { opacity: 0; transform: translateY(20px); filter: blur(4px); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes meshGlow {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(2%, 2%) scale(1.05); }
    100% { transform: translate(0, 0) scale(1); }
}

/* =========================================
   1. Hero Section (Clean & Impactful)
   ========================================= */
.hero-section {
    position: relative;
    background: transparent;
    padding: 100px 0 80px;
    text-align: center;
    overflow: hidden;
}

/* Premium Mesh Gradient Background */
.hero-section::before {
    content: '';
    position: absolute;
    top: -20%; left: 10%; right: 10%; bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.08) 0%, rgba(236, 72, 153, 0.03) 40%, transparent 70%);
    z-index: -1;
    filter: blur(40px);
    animation: meshGlow 10s ease-in-out infinite;
}

.hero-section .badge {
    background: #ffffff;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 100px;
    display: inline-block;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-float);
    animation: fadeUpReveal 1s var(--ease-out-expo) forwards;
}

.hero-section h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
    letter-spacing: -0.03em; /* Tight spacing for premium look */
    line-height: 1.1;
    animation: fadeUpReveal 1s var(--ease-out-expo) 0.1s forwards;
    opacity: 0;
}

.hero-section p {
    font-size: 1.25rem;
    color: var(--secondary);
    max-width: 650px;
    margin: 0 auto;
    font-weight: 400;
    animation: fadeUpReveal 1s var(--ease-out-expo) 0.2s forwards;
    opacity: 0;
}

/* =========================================
   2. Main Content & Cards
   ========================================= */
.main-content {
    padding: 20px 20px 80px;
}

.intro-card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    padding: 32px 40px;
    border-radius: 24px;
    font-size: 1.15rem;
    margin-bottom: 60px;
    color: var(--primary);
    box-shadow: var(--shadow-float);
    position: relative;
    overflow: hidden;
}

/* Subtle accent line inside the intro card */
.intro-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--accent);
    border-radius: 4px 0 0 4px;
}

/* Content Sections */
.content-section {
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 48px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-float);
    transition: all 0.5s var(--ease-out-expo);
}

.content-section:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
}

.step-num {
    background: var(--bg-page);
    color: var(--accent);
    font-size: 1.25rem;
    font-weight: 800;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    flex-shrink: 0;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 4px 12px var(--accent-glow);
    transition: all 0.4s var(--ease-out-expo);
}

.content-section:hover .step-num {
    background: var(--accent);
    color: #ffffff;
    transform: scale(1.05);
}

.section-header h2 {
    font-size: 1.75rem;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* =========================================
   3. Grid Layout (Interactive Elements)
   ========================================= */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.5s var(--ease-out-expo);
    position: relative;
    z-index: 1;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(37, 99, 235, 0.2);
}

.card h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* ==========================================================================
   TOPIC 04 SPECIFIC EXPANDABLE CARD STYLES
   ========================================================================== */

.section-subtitle {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-intro {
    font-size: 1.05rem;
    color: #64748B;
    margin-bottom: 30px;
}

/* Sub-topics Accordion Wrapper */
.sub-topics-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Sub-topic Expandable Card */
.sub-topic-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.02);
}

.sub-topic-card[open] {
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 6px 20px -4px rgba(37, 99, 235, 0.08);
}

.sub-topic-header {
    padding: 18px 24px;
    background: #FFFFFF;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    transition: background-color 0.2s ease;
}

.sub-topic-header::-webkit-details-marker {
    display: none;
}

.sub-topic-header:hover {
    background-color: var(--bg-page);
}

.sub-topic-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sub-badge {
    background-color: var(--accent-light);
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.sub-topic-title h3 {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 700;
    margin: 0;
}

/* Toggle arrow icon using pure CSS */
.toggle-icon {
    width: 10px;
    height: 10px;
    border-right: 2px solid #64748B;
    border-bottom: 2px solid #64748B;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.sub-topic-card[open] .toggle-icon {
    transform: rotate(-135deg);
    border-color: var(--accent);
}

/* Body Content inside Sub-topic */
.sub-topic-body {
    padding: 0 24px 24px 24px;
    border-top: 1px solid var(--border-subtle);
    background-color: #FFFFFF;
    margin-top: 5px;
}

.sub-topic-body > p {
    margin-top: 15px;
    margin-bottom: 15px;
    color: #475569;
    font-size: 0.98rem;
}

/* Inner Nested Cards Layout */
.nested-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 15px;
}

.nested-card {
    background-color: #FAFBFD;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 16px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.nested-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.nested-card h4 {
    font-size: 0.98rem;
    color: var(--primary);
    margin-bottom: 6px;
    font-weight: 700;
}

.nested-card p {
    font-size: 0.88rem;
    color: #64748B;
    margin: 0;
    line-height: 1.6;
}

/* Resource Link List */
.link-resource-box {
    margin-top: 15px;
}

.resource-links {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.resource-links li {
    margin-bottom: 8px;
}

.resource-links a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.resource-links a:hover {
    text-decoration: underline;
}

/* =========================================
   5. Footer & Extras
   ========================================= */
.placeholder-box {
    background: transparent;
    border: 1px dashed rgba(71, 85, 105, 0.3);
    border-radius: 20px;
    padding: 48px;
    text-align: center;
    transition: all 0.3s ease;
}

.placeholder-box:hover {
    border-color: var(--accent);
    background: var(--bg-page);
}

footer {
    text-align: center;
    padding: 60px 0 40px;
    margin-top: 40px;
    color: #94a3b8;
    font-size: 0.95rem;
    border-top: 1px solid var(--border-subtle);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .content-section { padding: 32px 24px; }
    .hero-section { padding: 80px 0 40px; }
}


/* Clickable Nested Link Cards */
.nested-card-link {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #FAFBFD;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.nested-card-link:hover {
    background-color: #FFFFFF;
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.12);
}

.card-link-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.card-link-header h4 {
    font-size: 1.05rem;
    color: var(--primary);
    font-weight: 700;
    margin: 0;
}

.link-arrow {
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: bold;
    transition: transform 0.2s ease;
}

.nested-card-link:hover .link-arrow {
    transform: translate(3px, -3px);
}

.nested-card-link p {
    font-size: 0.9rem;
    color: #64748B;
    margin-bottom: 16px;
    line-height: 1.6;
}

.read-more-btn {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    margin-top: auto;
}


/* Clickable Nested Link Cards Styling */
.nested-card-link {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #FAFBFD;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.nested-card-link:hover {
    background-color: #FFFFFF;
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.12);
}

.card-link-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.card-link-header h4 {
    font-size: 1.05rem;
    color: var(--primary);
    font-weight: 700;
    margin: 0;
}

.link-arrow {
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: bold;
    transition: transform 0.2s ease;
}

.nested-card-link:hover .link-arrow {
    transform: translate(3px, -3px);
}

.nested-card-link p {
    font-size: 0.9rem;
    color: #64748B;
    margin-bottom: 16px;
    line-height: 1.6;
}

.read-more-btn {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    margin-top: auto;
}


/* Playlist Card Link Wrapper */
.playlist-card-link {
    display: block;
    text-decoration: none;
    width: 100%;
    max-width: 100%;
    margin-top: 12px;
}

/* 16:9 Aspect Ratio Thumbnail Container */
.playlist-thumbnail-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* 16:9 size ratio එක තබා ගනියි */
    border-radius: 12px;
    overflow: hidden;
    background-color: #1a1a1a;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Effect */
.playlist-thumbnail-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

/* Thumbnail Image Styling */
.playlist-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Image එක stretch නොවී 16:9 ට fit වෙයි */
    display: block;
}

/* Play Overlay Styling */
.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.playlist-thumbnail-container:hover .play-overlay {
    background: rgba(0, 0, 0, 0.1);
}

/* Red YouTube Play Button Icon */
.play-icon {
    font-size: 24px;
    color: #ffffff;
    background-color: #ff0000;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 3px; /* Center align Play Arrow */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.playlist-thumbnail-container:hover .play-icon {
    transform: scale(1.1);
}

/* Next Page Button Styling */
.next-page-container {
    text-align: center;
    margin: 60px 0 20px 0;
}

.next-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    color: #ffffff;
    padding: 16px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.35);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.next-page-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: 0.5s;
}

.next-page-btn:hover::before {
    left: 100%;
}

.next-page-btn:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 15px 35px rgba(236, 72, 153, 0.45);
}

.btn-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.next-page-btn:hover .btn-arrow {
    transform: translateX(6px);
}