:root {
    --primary: #1a252f;
    --accent: #d4af37;
    --white: #ffffff;
    --light: #f4f7f6;
    --text: #333;
	--text-main: #333;
    --text-light: #666;
    --bg-light: #f9f9f9;
}

/* Global Fixes & Blank Space Reduction */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; color: var(--text); overflow-x: hidden; line-height: 1.4; background: #fff; }
.container { max-width: 1100px; margin: auto; padding: 0 20px; }

/* Sticky Social Sidebar */
.sticky-social { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 3000; display: flex; flex-direction: column; }
.sticky-icon { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; color: white; text-decoration: none; font-size: 18px; transition: 0.3s; margin-bottom: 2px; border-radius: 4px 0 0 4px; }
.sticky-icon.fb { background: #1877F2; }
.sticky-icon.ig { background: #E4405F; }
.sticky-icon.yt { background: #FF0000; }
.sticky-icon.tt { background: #010101; }
.sticky-icon:hover { width: 52px; padding-right: 10px; }
.sticky-icon i {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navigation */
.navbar {
	position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95); /* පිරිසිදු සුදු පෙනුම */
    backdrop-filter: blur(10px); /* Glassmorphism effect */
    border-bottom: 2px solid #d4af37; /* රන් පැහැති සියුම් ඉරක් */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    padding: 12px 0;}
.nav-container {
	display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;}
.logo img {
	width: auto; display: block; 
	height: 50px; /* ලාංඡනයේ ප්‍රමාණය */
    transition: transform 0.3s ease;
}
.logo img:hover {
    transform: scale(1.05);
}
.brand-name { font-size: 24px; font-weight: 800; color: var(--primary); text-decoration: none; }
.brand-name span { color: var(--accent); }

/* Login Button Styling */
.login-btn-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #003366; /* Your theme navy blue */
    color: white !important;
    padding: 8px 10px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    transition: 0.3s;
    border: 1px solid transparent;
}

.login-btn-nav:hover {
    background: #00509e;
    border-color: #fff;
}

/* --- Desktop Logic --- */
@media (min-width: 769px) {
    .nav-actions {
        order: 3; /* Moves it to the far right after nav-links */
        margin-left: 20px;
    }
    .nav-links {
        order: 2;
        margin-left: auto; /* Pushes links to the center/right */
    }
}

/* --- Mobile Logic --- */

/* --- Tablet & Mobile Logic (Up to 1024px) --- */
@media (max-width: 1024px) {
    .nav-container {
        display: flex;
        justify-content: space-between; 
        align-items: center;
        position: relative;
        height: 70px; /* Consistent height for centering */
    }

    /* Keep Logo on the left */
    .logo {
        flex: 0 0 auto;
        z-index: 5;
    }

    /* Center the Login Button */
    .nav-actions {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%); /* The 'Magic' centering fix */
        margin: 0 !important;
        z-index: 20; 
    }

    /* Push Toggle to the right */
    .menu-toggle {
        display: block;
        flex: 0 0 auto;
        z-index: 5;
        cursor: pointer;
    }

    /* Hide the text 'Login' on smaller screens to keep it compact */
    .login-btn-nav span {
        display: none; 
    }

    .login-btn-nav {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        justify-content: center;
        padding: 0;
        background: #003366;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    /* Ensure Nav Links are hidden on Tablets too */
    .nav-links {
        display: none; 
    }
}

/* --- True Desktop Logic (Laptops and Large Screens) --- */
@media (min-width: 1025px) {
    .menu-toggle {
        display: none;
    }
    
    .nav-actions {
        position: static;
        transform: none;
        order: 3;
        margin-left: 20px;
    }

    .nav-links {
        display: flex;
        order: 2;
        margin-left: auto;
    }
}

.nav-links {
	display: flex; list-style: none; 
	gap: 30px;
    margin: 0;
    padding: 0;
	}
.nav-links li a {
	margin-left: 20px; 
	text-decoration: none;
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 600;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
    letter-spacing: 0.5px;
	}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #d4af37, #f2d06b); /* Gold Gradient */
    transition: width 0.3s ease;
    border-radius: 2px;
}
.nav-links li a:hover { color: #b8860b; /* Dark Gold */}
.nav-links li a:hover::after {
    width: 100%;
}
.nav-links li a.active {
    color: #d4af37;
}

/* Mobile Responsive සැකසුම් (Optional) */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Mobile menu එක පසුව සකස් කළ හැක */
    }
}

/* Mobile Menu Toggle - Hidden on Desktop */
.menu-toggle { display: none; font-size: 24px; cursor: pointer; color: var(--primary); }

@media (max-width: 992px) {
    .menu-toggle { display: block; }
    .nav-links { position: absolute; top: 55px; right: 20px; background: var(--primary); flex-direction: column; width: 200px; border-radius: 8px; display: none; padding: 10px 0; }
    .nav-links.active { display: flex; }
    .nav-links li a { color: white; margin: 0; padding: 10px 20px; }
}

/* Hero Slider */
.hero { height: 55vh; position: relative; background: #000; margin-top: 55px; }
#slider-wrapper { height: 100%; }
.slide { position: absolute; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: 0.8s; display: flex; align-items: center; justify-content: center; }
.slide.active { opacity: 1; }
.slide-content h1 { font-size: 2.5rem; color: white; text-align: center; padding: 20px;font-weight: 800; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); }
.slide-content h1 span {
    color: var(--accent); /* ඔබ කලින් තෝරාගත් Gold/Amber පැහැය */
    display: inline-block; /* අවශ්‍ය නම් ස්ලයිඩර් එකේ animation එකක් දීමට */
}
@media (max-width: 768px) {
    .slide-content h1 {
        font-size: 2rem;
    }
}

/* --- Increase Hero Slider Height for Desktop --- */
@media (min-width: 992px) {
    .hero {
        height: 75vh; /* Desktop සඳහා උස 75% දක්වා වැඩි කරන ලදී */
        margin-top: 55px; /* Navbar එක සඳහා ඉඩ තැබීම */
    }

    .slide-content h1 {
        font-size: 3.5rem; /* උස වැඩි වන විට අකුරු ද මඳක් විශාල කිරීම වඩාත් සුදුසුයි */
    }
}

/* Mobile සහ Tablet සඳහා දැනට පවතින උස නොවෙනස්ව තබා ගැනීමට */
@media (max-width: 991px) {
    .hero {
        height: 50vh; 
    }
}


/* Compact Search Bar */
.filter-section { margin-top: -35px; position: relative; z-index: 100; }
.filter-wrapper { background: #fff; padding: 12px 20px; border-radius: 10px; box-shadow: 0 8px 25px rgba(0,0,0,0.1); display: flex; gap: 15px; border: 1px solid #eee; }
.search-box { flex: 3; position: relative; }
.search-box input { width: 100%; padding: 10px 10px 10px 40px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; outline: none; }
.search-box i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--accent); }
.category-filter select { padding: 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 13px; font-weight: 600; }

/* Grid & Section Spacing */
.section-padding { padding: 40px 0; }
.section-title.centered { text-align: center; margin-bottom: 25px; font-size: 1.7rem; }
.section-title.centered::after { content: ''; display: block; width: 40px; height: 3px; background: var(--accent); margin: 8px auto; }
.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }

/* Cards */
.card { background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.05); display: flex; flex-direction: column; transition: 0.3s; }
.card:hover { transform: translateY(-5px); }
.card img { height: 170px; object-fit: cover; width: 100%; }
.card-content { padding: 15px; flex-grow: 1; }
.card-content h3 { color: #2c3e50 !important; 
    
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    transition: color 0.3s ease;
    text-decoration: none;}
.card:hover .card-content h3 {
    color: var(--accent) !important; /* මෙය රන්වන් හෝ තැඹිලි පැහැයට හැරේ */
}	
@media (max-width: 768px) {
    .card-content h3 {
        text-align: center;
        font-size: 15px;
    }
}

/* සියලුම මාතෘකා සඳහා (Titles) */
.card h3, .res-title-h, .related-post-info h5, .card h4 {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* පේළි 2කට පසුව තිත් පෙන්වයි */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.8em; /* උස ඒකාකාරී කිරීමට */
}

/* සියලුම විස්තර සඳහා (Descriptions/Excerpts) */
.card p, .res-excerpt-h, .sidebar-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* පේළි 3කට පසුව තිත් පෙන්වයි */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 4.2em; /* උස ඒකාකාරී කිරීමට */
    margin-bottom: 10px;
}



/* Buttons */
.center-btn { text-align: center; margin-top: 25px; }
.btn-modern, .btn-outline { display: inline-block; padding: 9px 22px; border-radius: 5px; font-weight: 600; text-decoration: none; transition: 0.3s; font-size: 13px; }
.btn-modern { background: var(--accent); color: var(--primary) !important; }
.btn-outline { border: 1.5px solid var(--accent); color: var(--accent) !important; }

/* Compact Read More Button */
.card-footer { padding: 15px;
    border-top: 1px solid #f5f5f5;
    margin-top: auto; }
.btn-compact-read { background: #1a252f; /* තද කළු/නිල් පැහැති පසුබිම */
    color: #ffffff !important; /* සුදු පැහැති අකුරු */
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none !important; /* යටින් ඉරි ඉවත් කිරීම */
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center; }
.btn-compact-read:hover {
    background: var(--accent); /* ඔබේ Accent පැහැයට (රන්වන්/තැඹිලි) හැරේ */
    color: var(--primary) !important; /* අකුරු වල වර්ණය තද පැහැයට හැරේ */
    transform: translateY(-2px); /* මඳක් ඉහළට එසවීම */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
@media (max-width: 768px) {
    .card-footer {
        text-align: center;
    }
    .btn-compact-read {
        width: 80%; /* Mobile වලදී බොත්තම මඳක් පළල් කිරීම */
    }
}
/* Scroller */
.stories-bg { background: var(--light); }
.stories-carousel { overflow-x: auto; /* මවුසයෙන් scroll කිරීමට ඉඩ ලබා දීම */
    white-space: nowrap;
    cursor: grab; /* මවුසය ගෙන ගිය විට අතක සලකුණ පෙන්වීමට */
    scrollbar-width: none; /* Firefox සඳහා scrollbar එක සැඟවීම */
    -ms-overflow-style: none; /* IE සඳහා scrollbar එක සැඟවීම */
    user-select: none; /* පින්තූර drag කරන විට text select වීම වැළැක්වීමට */
	pointer-events: auto;
	-webkit-overflow-scrolling: touch;
    touch-action: pan-y; /* Mobile scroll එකට බාධා නොවීමට */
	display: flex;
	scroll-behavior: smooth;
    width: 100%;
    overflow-x: auto; /* අනිවාර්යයි */	
	}
	
	
.stories-carousel::-webkit-scrollbar {
    display: none; /* Chrome/Safari සඳහා scrollbar එක සැඟවීම */
}
/* Scroller එකේ ඇති පින්තූර Drag වීම වැළැක්වීමට (Click එකට බාධාවක් විය හැක) */
.stories-carousel img {
    pointer-events: none;
	-webkit-user-drag: none; /* පින්තූර ඇදීම වැළැක්වීමට */
    user-select: none;
}
.stories-carousel:active {
    cursor: grabbing; /* මවුසයෙන් අල්ලාගෙන සිටින විට සලකුණ වෙනස් කිරීම */
}
.stories-inner {display: flex;
    display: flex;
	gap: 20px;
    width: max-content;
    padding: 20px 0;
    transition: transform 0.1s linear;}
.stories-inner .card {width: 300px;         /* පින්තූරය විශාල වන නිසා කාඩ් එකේ පළල මඳක් වැඩි කරන ලදී */
    flex-shrink: 0;
    text-align: center;
    padding: 10px;        /* Padding අඩු කිරීම මගින් පින්තූරයට වැඩි ඉඩක් ලබා දෙන ලදී */
    background: #fff;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;}
.card-img-wrapper {width: 180px;         /* පින්තූරයේ විෂ්කම්භය 180px දක්වා වැඩි කරන ලදී */
    height: 180px;
    border-radius: 50%;   /* සම්පූර්ණ රවුමක් ලෙස තබා ගැනීමට */
    margin: 10px auto;    /* ඉහළ සහ පහළ පරතරය අඩු කරන ලදී */
    border: 5px solid var(--accent); /* රන්වන් දාරය (Border) වඩාත් කැපී පෙනෙන සේ සකසන ලදී */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);}
.card-img-wrapper img {
	width: 100%;
    height: 100%;
    object-fit: cover;
}
.stories-inner h4 {
    margin-top: 10px;
    font-size: 16px;
    color: var(--post-title);
    font-weight: 700;
}
#storiesContainer {
    display: flex;
    flex-wrap: nowrap; /* Card යටට වැටීම වැළැක්වීමට */
    gap: 20px;
    padding: 10px;
}
#stories-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: auto !important; 
    white-space: nowrap; /* මෙහි nowrap වෙනුවට normal භාවිතා කළ හැකියි */
    gap: 20px;
    padding: 10px;	
	-ms-overflow-style: none;  /* IE/Edge සඳහා scrollbar සැඟවීම */
    scrollbar-width: none;     /* Firefox සඳහා scrollbar සැඟවීම */
}
/* Chrome/Safari සඳහා scrollbar සැඟවීම */
#stories-carousel::-webkit-scrollbar {
    display: none;
}



#stories-carousel .card {
    white-space: normal; /* පෝස්ට් එක ඇතුළත අකුරු පේළි කැඩීමට ඉඩ දෙයි */	
	flex: 0 0 280px; /* කාඩ්පතේ පළල ස්ථාවරව තබන්න */
    display: inline-block;
    vertical-align: top;
}


/* Stories Carousel Title Adjustment */
#stories-carousel .card h4 {
    display: -webkit-box;
    -webkit-line-clamp: 2;         /* පේළි 2කට සීමා කරයි */
    -webkit-box-orient: vertical;
    overflow: hidden;              /* පිටතට ගලා යාම වළක්වයි */
    text-overflow: ellipsis;       /* අගට තිත් 3ක් පෙන්වයි (...) */
    width: 100%;                   /* කාඩ්පතේ සම්පූර්ණ පළල ගනී */
    margin: 10px 0;
    line-height: 1.4;              /* පේළි අතර පරතරය */
    min-height: 2.8em;             /* පේළි දෙකක උස ඒකාකාරීව පවත්වා ගැනීමට */
    word-wrap: break-word;         /* දිගු වචන තිබේ නම් කැඩීමට */
    text-align: center;            /* අවශ්‍ය නම් මැදට පෙළගැස්වීමට */
    font-size: 14px;
}

/* කාඩ්පත ඇතුළත ඇති රූපයේ පළල තහවුරු කිරීමට */
#stories-carousel .card-img-wrapper img {
    width: 100%;
    display: block;
}

/* Scroller Wrapper - ඊතල ස්ථානගත කිරීමට */
.scroller-wrapper {
    position: relative;
    display: flex;
    align-items: center;
	z-index: 10;
	overflow: visible;
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
}

.carousel-btn {
    position: absolute;
    z-index: 10; /* අනෙක් දේවල් වලට වඩා ඉහළින් තැබීමට */
    cursor: pointer;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}

.left-btn { left: -20px; }
.right-btn { right: -20px; }

/* Mobile වලදී බොත්තම් පෙනුම */
@media (max-width: 768px) {
    .left-btn { left: 5px; }
    .right-btn { right: 5px; }
}






/* ඊතල වල පොදු පෙනුම */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent); /* Gold/Amber */
    color: var(--primary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
	pointer-events: auto !important;
}

.nav-arrow:hover {
    background: var(--primary);
    color: var(--accent);
    transform: translateY(-50%) scale(1.1);
}

/* ඊතල දෙපසට ස්ථානගත කිරීම */
.nav-arrow.left { left: -20px; }
.nav-arrow.right { right: -20px; }

/* Mobile වලදී ඊතල මඳක් කුඩා කිරීම */
@media (max-width: 768px) {
    .nav-arrow { width: 35px; height: 35px; font-size: 14px; }
    .nav-arrow.left { left: -10px; }
    .nav-arrow.right { right: -10px; }
}



@media (max-width: 768px) {
    .card-img-wrapper {
        width: 140px;
        height: 140px;
    }
    .stories-inner .card {
        width: 260px;
    }
}


/* Sidebar Entrepreneur Links */
.entrepreneur-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ent-link {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.ent-link i {
    margin-right: 12px;
    font-size: 18px;
}

/* විවිධ සමාජ මාධ්‍ය සඳහා වර්ණ */
.ent-link.web { background: #f8f9fa; color: #333; }
.ent-link.fb { background: #e7f3ff; color: #1877f2; }
.ent-link.ig { background: #fff0f5; color: #e1306c; }
.ent-link.li { background: #e8f3f7; color: #0077b5; }
.ent-link.wa { background: #eafaf1; color: #25d366; }

/* Hover Effects */
.ent-link:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.ent-link.web:hover { border-color: #333; }
.ent-link.fb:hover { border-color: #1877f2; }
.ent-link.ig:hover { border-color: #e1306c; }
.ent-link.li:hover { border-color: #0077b5; }
.ent-link.wa:hover { border-color: #25d366; }




/* Footer */
/* --- Professional Footer Styling --- */
.main-footer {
    background: var(--primary);
    color: #e0e0e0;
    padding: 50px 0 0 0; /* Top padding only */
    margin-top: 40px;
    font-size: 13px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr; /* columns distribution */
    gap: 40px;
    padding-bottom: 40px;
}

.footer-about p {
    line-height: 1.6;
    opacity: 0.8;
}

.main-footer h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.main-footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
}

.footer-contact ul, .footer-links ul {
    list-style: none;
}

.footer-contact li {
    list-style: none;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
}

.footer-contact i {
    color: var(--accent);
    font-size: 16px; 
    min-width: 20px;
    text-align: center;
}

.footer-contact a {
    color: #bdc3c7; /* ආරම්භක වර්ණය (Subtle Grey) */
    text-decoration: none !important; /* යටින් ඉරි ඉවත් කිරීම */
    font-weight: 500;
    transition: all 0.3s ease-in-out;
    display: inline-block;
}

/* මවුසය සබැඳිය මතට ගෙන ගිය විට (Hover) */
.footer-contact a:hover {
    color: var(--accent) !important; /* ඔබේ තැඹිලි හෝ රන්වන් පැහැයට හැරීම */
    transform: translateX(5px); /* මඳක් දකුණට චලනය වීම (Attractive Effect) */
    text-shadow: 0px 0px 8px rgba(230, 126, 34, 0.3); /* සියුම් ආලෝකයක් එක් කිරීම */
}


.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
    margin-bottom: 8px;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

/* --- Copyright Bar --- */
.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.bottom-links a {
    color: #888;
    text-decoration: none;
    margin-left: 20px;
    font-size: 11px;
}

.bottom-links a:hover {
    color: var(--white);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .bottom-flex {
        flex-direction: column;
        text-align: center;
    }
    .bottom-links a {
        margin: 0 10px;
    }
}

#backToTop { position: fixed; bottom: 20px; right: 15px; background: var(--accent); color: white; border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: none; z-index: 2500; }

/* Sub-header for other pages */
.sub-header {
    height: 35vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin-top: 55px;
}

.sub-header h1 {
    font-size: 2.2rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

/* Updated Post Title Color in Grid */
.card-content h3 {
    color: var(--accent); /* වෙනස් කරන ලද වර්ණය */
    margin-bottom: 8px;
    font-weight: 600;
}

/* Content Excerpt Styling */
.card-content p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 12px;
}

/* --- Single Post Styles --- */

/* ==========================================================================
   SINGLE POST PAGE STYLES (Match with Index Design)
   ========================================================================== */



.post-detail-section {
    padding: 120px 0 60px; /* Navbar එකට යට නොවීමට */
    background-color: #ffffff;
}

/* Breadcrumb Styling */
.breadcrumb {
    font-size: 14px;
    margin-bottom: 30px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumb a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Header & Meta */
.post-full-header {
    margin-bottom: 40px;
}

.post-full-header .badge {
    background: var(--accent);
    color: #fff;
    padding: 6px 15px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 15px;
}

.post-full-title {
    font-size: 3rem;
    color: var(--primary);
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 20px;
}

.post-full-meta {
    display: flex;
    gap: 25px;
    color: var(--text-light);
    font-size: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.post-full-meta i {
    color: var(--accent);
    margin-right: 8px;
}

/* Image Container */
.post-featured-image {
    width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    margin: 40px 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content Layout */
.post-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
}

.post-main-content {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-main);
}

.intro-text {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 35px;
    border-left: 6px solid var(--accent);
    padding-left: 25px;
}

.post-main-content h2, 
.post-main-content h3 {
    color: var(--primary);
    margin: 45px 0 20px;
    font-weight: 700;
}

.post-main-content p {
    margin-bottom: 25px;
}

.post-main-content blockquote {
    background: #fff9e6; /* ලා රන්වන් පැහැය */
    padding: 40px;
    border-radius: 15px;
    font-style: italic;
    font-size: 1.3rem;
    color: var(--primary);
    border-right: 5px solid var(--accent);
    margin: 40px 0;
    text-align: center;
    position: relative;
}

.post-main-content ul, 
.post-main-content ol {
    margin-bottom: 30px;
    padding-left: 25px;
}

.post-main-content li {
    margin-bottom: 12px;
}

.category-badge {
    display: inline-block;
    background: #ffffff;
    color: #b8860b; /* Dark Goldenrod */
    padding: 5px 12px;
    border-radius: 2px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    
    /* වම් පැත්තේ රන් පැහැති ඝන ඉරක් (Trendy Style) */
    border-left: 3px solid #d4af37;
    border-top: 1px solid #f2f2f2;
    border-right: 1px solid #f2f2f2;
    border-bottom: 1px solid #f2f2f2;
    
    box-shadow: 2px 2px 5px rgba(0,0,0,0.05);
}



#loadMoreContainer, #loadMoreStoryContainer {
    text-align: center;
    margin: 40px 0;
}

#loadMoreBtn {
    background: var(--accent); /* ඔබේ accent color එක */
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

#loadMoreBtn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}
/* Sidebar Styles */
.post-sidebar .sidebar-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 20px;
    position: sticky;
    top: 120px; /* Navbar එකට පහළින් රැඳී තිබීමට */
    border: 1px solid #eee;
}

.post-sidebar h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--primary);
    position: relative;
    padding-bottom: 10px;
}

.post-sidebar h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);
}

/* Mobile Responsive Adjustments */
@media (max-width: 992px) {
    .post-grid {
        grid-template-columns: 1fr;
    }
    
    .post-full-title {
        font-size: 2.2rem;
    }
    
    .post-featured-image {
        height: 300px;
    }
    
    .post-detail-section {
        padding-top: 100px;
    }

    .post-sidebar .sidebar-card {
        position: static;
        margin-top: 40px;
    }
}

.related-posts-list {
    display: flex;
    flex-direction: column;
}

.related-post-card {
    display: flex;
    align-items: flex-start; /* Better for long titles */
    justify-content: space-between;
    text-decoration: none;
    color: #333;
    gap: 12px;
    padding: 12px 0;
    transition: all 0.3s ease;
	margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.related-post-card:last-child {
    border-bottom: none;
}

.related-post-card:hover h5 {
    color: #007bff; /* Highlight title on hover */
}

.related-post-info h5 {
    font-size: 0.9rem;
    margin: 0 0 4px 0;
    font-weight: 600;
    line-height: 1.4;
    color: #1f2937;
}
.related-post-info {
    flex: 1;
}
.related-date {
    font-size: 0.75rem;
    color: #999;
}

.related-post-img {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
	background-color: #f3f4f6; /* රූපය එනතෙක් අළු පැහැති පසුබිමක් */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}
/* Category Badge Style */
.sidebar-badge {
    display: inline-block;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: 5px;
}
.sidebar-excerpt {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}


/* Mobile: Stack vertically */
@media (max-width: 768px) {
    .related-post-card {
        flex-direction: column-reverse;
        gap: 8px;
    }
    .related-post-img {
        width: 100%;
        height: 160px;
    }
}
/* Resources සඳහා පමණක් අදාළ වන Horizontal Grid එක */
/* --- Resources Grid Layout --- */
.resources-grid-container {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    width: 100%;
}
.resources-horizontal-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}
/* ඩෙස්ක්ටොප් එකේදී සමානව බෙදී යන ආකාරය */
.res-card {
    flex: 1; 
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    text-decoration: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: 0.3s;
}
.res-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.res-content { padding: 15px; }

.res-badge {
    background: #fdf6e3;
    color: #d4af37;
    font-size: 10px;
    font-weight: bold;
    padding: 3px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 8px;
}

/* --- Responsive (Mobile) පෙනුම වෙනස් කිරීම --- */
@media screen and (max-width: 768px) {
    .resources-grid-container {
        flex-direction: column; /* මොබයිල් වලදී එක යට එක (Vertical) */
    }
    
    .res-card {
        width: 100%; /* මොබයිල් වලදී සම්පූර්ණ පළල */
    }
    
    .res-img img {
        height: 200px; /* මොබයිල් වලදී රූපය මදක් විශාල කිරීමට */
    }
}

.res-related-h {
    flex: 1;
    min-width: 260px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    text-decoration: none;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Image > Category > Title > Excerpt order */
    transition: 0.3s;
}

.res-related-h:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

.res-img-h img { width: 100%; height: 160px; object-fit: cover; }

.res-body-h { padding: 15px; display: flex; flex-direction: column; gap: 8px; }

.res-badge-h { 
    background: #fdf6e3; color: #d4af37; font-size: 10px; 
    font-weight: bold; padding: 2px 8px; border-radius: 4px; align-self: flex-start;
}

.res-title-h { font-size: 16px; color: #1a1a1a; margin: 0; line-height: 1.4; }

.res-excerpt-h { font-size: 13px; color: #666; margin: 0; line-height: 1.5; }

/* Mobile වලදී එක යට එක පෙන්වීමට */
@media (max-width: 768px) {
    .resources-horizontal-grid { flex-direction: column; }
}

/* Desktop සහ පොදු මෝස්තර */
    .resource-container {
        font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
        max-width: 850px;
        margin: 0 auto;
        padding: 40px 20px;
        color: #333;
        line-height: 1.6;
    }
    .sme-grid {
        display: grid;
        grid-template-columns: 1fr 1fr; /* තීරු දෙකක් */
        gap: 20px;
        margin-bottom: 30px;
    }
    .grid-item {
        border: 1px solid #e2e8f0;
        padding: 20px;
        border-radius: 8px;
        transition: transform 0.3s ease;
    }
    .grid-item:hover {
        border-color: #2563eb;
        background-color: #f8fafc;
    }
    .professional-header {
        border-bottom: 2px solid #eee;
        padding-bottom: 20px;
        margin-bottom: 30px;
    }

    /* Mobile (ජංගම දුරකථන) සඳහා වෙනස් කිරීම් */
    @media (max-width: 600px) {
        .sme-grid {
            grid-template-columns: 1fr; /* තනි තීරුවක් බවට පත් වේ */
        }
        .professional-header h1 {
            font-size: 1.8rem; /* මාතෘකාව කුඩා කිරීම */
        }
        .resource-container {
            padding: 20px 15px;
        }
    }
	
	/* CTA Section Styles */
    .cta-wrapper {
        margin: 10px 0;
        padding: 40px;
        background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
        border-radius: 15px;
        text-align: center;
        border: 1px solid #cbd5e1;
    }

    .cta-title {
        color: #1a2a6c;
        font-size: 1.5rem;
        margin-bottom: 15px;
        font-weight: 600;
    }

    .cta-button {
        display: inline-block;
        padding: 15px 35px;
        background-color: #2563eb;
        color: #ffffff !important;
        text-decoration: none;
        border-radius: 50px;
        font-weight: bold;
        font-size: 1.1rem;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
        border: none;
        cursor: pointer;
    }

    .cta-button:hover {
        background-color: #1e40af;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
        color: #fff;
    }

    /* Mobile adjustments for CTA */
    @media (max-width: 600px) {
        .cta-wrapper {
            padding: 30px 20px;
        }
        .cta-title {
            font-size: 1.3rem;
        }
        .cta-button {
            width: 100%; /* ජංගම දුරකථන වලදී බොත්තම පළලට දිස්වේ */
            padding: 12px 20px;
        }
    }