/* --- මූලික සැකසුම් --- */
:root {
    --primary-red: #E60000;
    --primary-black: #000000;
    --text-dark: #333;
    --white: #ffffff;
}

body {
    margin: 0;
    font-family: 'Noto Sans Sinhala', sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* --- Navigation Bar (Floating Pill) --- */
header {
    position: absolute; /* පින්තූරය උඩින් පාවෙන ලෙස */
    width: 100%;
    top: 30px;
    z-index: 1000;
    display: flex;
    justify-content: center;
}

.header-container {
    background: rgba(255, 255, 255, 0.95); /* අර්ධ විනිවිද පෙනෙන */
    width: 90%;
    max-width: 1200px;
    height: 70px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
}

.logo-img { height: 55px; width: auto; }
.logo-text { font-size: 24px; font-weight: 800; }

.nav-center a {
    text-decoration: none;
    color: var(--text-dark);
    margin: 0 15px;
    font-weight: 600;
    font-size: 15px;
    transition: 0.3s;
}
.nav-center a:hover { color: var(--primary-red); }

.header-right { display: flex; align-items: center; gap: 20px; }
/* --- භාෂා මාරුව (Language Switcher) Hover Effect --- */
.lang-switch a { 
    text-decoration: none; 
    color: #888; 
    transition: 0.3s ease; /* මෘදු ලෙස වර්ණය වෙනස් වීමට */
}

.lang-switch a:hover { 
    color: var(--primary-red); /* මවුස් එක ගෙන ගිය විට රතු වීම */
}

.lang-switch a.active-lang { 
    color: var(--primary-red); 
    font-weight: 800;
}

/* --- ඇතුල්වන්න බොත්තම (Login Outline Button) --- */
.btn-text { 
    text-decoration: none; 
    color: var(--text-dark); 
    font-weight: 700; 
    padding: 8px 22px; /* බොත්තමක හැඩය ලබා දීම සඳහා ඉඩ (Padding) */
    border: 2px solid #eaeaea; /* වටේට ලා අළු පැහැති ඉරක් */
    border-radius: 30px; /* දෙපැත්ත රවුම් කිරීම */
    transition: 0.3s ease;
}

.btn-text:hover { 
    color: var(--primary-red); /* අකුරු රතු වීම */
    border-color: var(--primary-red); /* වටේ ඇති ඉර රතු වීම */
    background-color: rgba(230, 0, 0, 0.03); /* ඉතා මෘදු රතු පසුබිමක් මතු වීම */
}

.btn-text { text-decoration: none; color: var(--primary-black); font-weight: 700; }
.btn-register {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(230, 0, 0, 0.3);
}

/* --- Hero Section (පින්තූරයේ පෙනුම) --- */
/* --- Hero Section (පින්තූරයේ පෙනුම මෘදු කිරීම) --- */
.hero-section {
    /* පින්තූරයට උඩින් කළු පැහැති මෘදු ආවරණයක් (Dark Gradient Overlay) යෙදීම */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)), url('Background.jpeg');
    background-size: cover;
    background-position: center top;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
}

.hero-content {
    z-index: 10;
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 80px;
}

.hero-text h1 {
    font-size: 56px;
    color: #ffffff; /* අකුරු සුදු පැහැ කිරීම මගින් ඇසට පහසුවක් ලබා දේ */
    line-height: 1.2;
    margin-bottom: 10px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5); /* මෘදු සෙවනැල්ලක් */
}

/* රතු වර්ණය වෙනුවට රන්වන් පැහැය (Gold) යෙදීමෙන් Premium පෙනුමක් ලැබේ */
.hero-text .highlight { 
    color: #FFD700; 
} 

.hero-text p { 
    font-size: 18px; 
    color: #f1f1f1; 
    font-weight: 400; 
    margin-bottom: 40px; 
    background: rgba(0, 0, 0, 0.3); /* කළු පැහැති අර්ධ විනිවිද පෙනෙන පසුබිමක් */
    padding: 8px 25px; 
    border-radius: 30px; 
    display: inline-block; 
    backdrop-filter: blur(5px);
    letter-spacing: 0.5px;
}
/* --- Horizontal Glass Search Bar --- */
.search-bar-glass {
    background: rgba(255, 255, 255, 0.7); /* Glass Effect */
    backdrop-filter: blur(15px); /* බොඳ කිරීම */
    border-radius: 50px;
    padding: 10px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    width: 100%;
    border: 1px solid rgba(255,255,255,0.5);
}

.glass-form {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.input-group {
    flex: 1;
    padding: 10px 20px;
    text-align: left;
}

.input-group.border-right {
    border-right: 1px solid rgba(0,0,0,0.1); /* මැද ඉරි */
}

.input-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #666;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group select {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    font-family: 'Noto Sans Sinhala', sans-serif;
}
.input-group select:focus { outline: none; }

.btn-search-round {
    background-color: var(--primary-red);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-right: 5px;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(230, 0, 0, 0.4);
}
.btn-search-round:hover { transform: scale(1.05); background-color: #c00000; }

/* --- App Buttons --- */
.app-buttons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.app-btn {
    background: rgba(0,0,0,0.8);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: 0.3s;
}
.app-btn:hover { background: var(--primary-red); }
.app-btn i { font-size: 20px; }
.app-btn span { font-weight: bold; font-size: 16px; display: block; }

/* --- Promo Strip --- */
/* --- Promo Strip (රතු පැහැති බොඳවීම ඉවත් කර මෘදු කිරීම) --- */
.promo-strip {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.15); /* සුදු පැහැති වීදුරු පෙනුම (Glassmorphism) */
    backdrop-filter: blur(10px); /* පිටුපස බොඳ කිරීම */
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 25px;
    border-radius: 30px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

/* --- Bottom Fade Effect --- */
.bottom-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, #ffffff, transparent);
    pointer-events: none;
}

/* =========================================
   ජංගම දුරකථන සඳහා සැකසුම (Mobile Responsiveness) 
   ========================================= */
@media screen and (max-width: 768px) {
    
    /* 1. Header එකේ මෙනුව හැදීම */
    .header-container {
        padding: 0 15px;
        height: auto;
        min-height: 60px;
    }
    
    /* ෆෝන් එකේ ඉඩ මදි නිසා දැනට මැද මෙනුව සහ භාෂා මාරුව සඟවමු (පසුව Hamburger Menu එකක් දාමු) */
    .nav-center, .lang-switch {
        display: none; 
    }
    
    .logo-img { height: 35px; }
    
    .btn-text { font-size: 13px; }
    
    .btn-register {
        padding: 8px 15px;
        font-size: 12px;
    }

    /* 2. ප්‍රධාන අකුරු (Hero Text) කුඩා කිරීම */
    .hero-content {
        padding-top: 100px;
    }
    .hero-text h1 {
        font-size: 38px; /* ෆෝන් එකට ගැලපෙන සයිස් එක */
    }
    .hero-text p {
        font-size: 14px;
        padding: 8px 15px;
    }

    /* 3. Search Bar එක සිරස් අතට (Vertical) හැරවීම */
    .search-bar-glass {
        border-radius: 20px; /* ෆෝන් එකේදි රවුම ටිකක් අඩු කිරීම */
        padding: 15px;
        width: 90%;
    }
    .glass-form {
        flex-direction: column; /* කොටස් පහළට පහළට පෙළගැස්වීම */
        gap: 10px;
    }
    .input-group {
        width: 100%;
        padding: 10px 0;
    }
    .input-group.border-right {
        border-right: none; /* තිරස් ඉරි අයින් කිරීම */
        border-bottom: 1px solid rgba(0,0,0,0.1); /* ඒ වෙනුවට යටින් ඉරක් දැමීම */
    }
    .btn-search-round {
        width: 100%; /* බොත්තම ෆෝන් එකේ පළලටම හැදීම */
        margin-top: 10px;
        margin-right: 0;
    }

    /* 4. App Download බොත්තම් සැකසීම */
    .app-buttons {
        flex-direction: column; /* එක යට එක වැටෙන්න හැදීම */
        width: 90%;
        gap: 10px;
    }
    .app-btn {
        justify-content: center;
        width: 100%;
    }

    /* 5. පහළ ඇති Promo Strip එක */
    .promo-strip {
        font-size: 12px;
        width: 85%;
        margin: 20px auto;
    }
}

/* =========================================
   නවතම මංගල යෝජනා (Latest Proposals) 
   ========================================= */
.proposals-section {
    padding: 80px 5%;
    background-color: #fcfcfc;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--primary-black);
    margin-bottom: 10px;
}

.section-header p {
    color: #666;
    font-size: 16px;
}

/* Cards ග්‍රිඩ් එක සැකසීම (Responsive) */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* තනි Card එකක හැඩය */
.profile-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

.profile-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* පින්තූර කොටස */
.card-image-wrapper {
    position: relative;
    height: 280px;
    width: 100%;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-photo-bg {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #e0e0e0, #f5f5f5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #999;
}
.no-photo-bg i { font-size: 40px; margin-bottom: 10px; }

/* ලාංඡන (Badges) */
.badge-verified {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: #00a859; /* තහවුරු කළ බව පෙන්වන කොළ පැහැය */
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.match-score {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--primary-red);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(230, 0, 0, 0.3);
}

/* විස්තර කොටස */
.card-content {
    padding: 25px;
}

.card-content h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
}

.online-dot {
    width: 10px;
    height: 10px;
    background-color: #00e676;
    border-radius: 50%;
    margin-left: 10px;
    display: inline-block;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.info-list li {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.info-list li i {
    width: 20px;
    color: #aaa;
    margin-right: 10px;
}

/* බොත්තම් */
.btn-connect {
    width: 100%;
    padding: 12px;
    background: #f8f8f8;
    color: var(--primary-black);
    border: 1px solid #ddd;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    font-size: 14px;
}

.btn-connect:hover {
    background: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
}

.view-all-container {
    text-align: center;
    margin-top: 50px;
}

.btn-view-all {
    background: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-view-all:hover {
    background: var(--primary-red);
    color: white;
}

/* =========================================
   Footer (පහළම තීරුව) 
   ========================================= */
.site-footer {
    background-color: #111111; /* තද කළු පැහැති පසුබිම */
    color: #cccccc; /* ලා අළු පැහැති අකුරු */
    padding: 70px 0 0 0;
    font-family: 'Noto Sans Sinhala', sans-serif;
    margin-top: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr; /* තීරු 4කට බෙදීම */
    gap: 40px;
    margin-bottom: 50px;
}

/* Logo සහ විස්තරය */
.footer-logo {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 15px;
}

.brand-col p {
    line-height: 1.6;
    font-size: 14px;
    margin-bottom: 25px;
}

/* Social Media Icons */
.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 50%;
    text-decoration: none;
    transition: 0.3s;
}

.social-links a:hover {
    background-color: var(--primary-red);
    transform: translateY(-3px);
}

/* මාතෘකා සහ ලින්ක් */
.footer-col h3 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-red);
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #cccccc;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary-red);
    padding-left: 5px; /* Hover කරන විට මඳක් ඉදිරියට ඒම */
}

/* අපව අමතන්න කොටස */
.contact-info li {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #cccccc;
}

.contact-info li i {
    color: var(--primary-red);
    margin-right: 15px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Copyright කොටස */
.footer-bottom {
    background-color: #080808;
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
    color: #888888;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* === ජංගම දුරකථන සඳහා (Mobile Responsiveness) === */
@media screen and (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr; /* ෆෝන් එකේදී තීරු එක යට එක වැටීම */
        text-align: center; /* අකුරු මැදට කිරීම */
        gap: 30px;
    }
    
    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%); /* ඉර මැදට ගැනීම */
    }

    .social-links {
        justify-content: center;
    }

    .contact-info li {
        justify-content: center;
    }
}

/* =========================================
   නවීන Auth Popup Modal (Premium UI)
   ========================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px); /* පිටුපස හොඳින් බොඳ කිරීම */
}

/* Modal එකේ ප්‍රධාන රාමුව */
.modern-modal {
    display: flex;
    background-color: #fff;
    margin: 5vh auto;
    padding: 0;
    border-radius: 24px;
    width: 90%;
    max-width: 850px; /* පළල වැඩි කිරීම */
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    animation: zoomIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Close බොත්තම */
.close-btn {
    position: absolute;
    top: 15px; right: 20px;
    color: #333; font-size: 26px; font-weight: bold;
    cursor: pointer; z-index: 10; transition: 0.3s;
    background: #f1f1f1; width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
}
.close-btn:hover { background: var(--primary-red); color: white; transform: rotate(90deg); }

/* === වම් පස (Branding & Image) === */
.modal-left {
    width: 45%;
    /* අලංකාර පසුබිම් රූපයක් සහ රතු පැහැති gradient එකක් */
    background: linear-gradient(135deg, rgba(230,0,0,0.85) 0%, rgba(20,0,0,0.9) 100%), url('https://images.unsplash.com/photo-1519225421980-715cb0215aed?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=80');
    background-size: cover; background-position: center;
    color: white; padding: 50px 40px;
    display: flex; align-items: center; text-align: left;
}
.modal-left h2 { font-size: 34px; margin-bottom: 15px; line-height: 1.3; font-weight: 800; }
.modal-left p { font-size: 15px; opacity: 0.9; line-height: 1.6; }

/* === දකුණු පස (Form Area) === */
.modal-right {
    width: 55%; padding: 50px 40px; background: #ffffff;
}

.auth-tabs { display: flex; gap: 25px; margin-bottom: 30px; border-bottom: 2px solid #eee; }
.auth-tab {
    background: none; border: none; padding: 10px 0; font-size: 18px; font-weight: 800; color: #aaa; cursor: pointer; position: relative; font-family: 'Noto Sans Sinhala', sans-serif;
}
.auth-tab.active { color: var(--primary-red); }
.auth-tab.active::after {
    content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 3px; background: var(--primary-red); border-radius: 3px;
}

/* Input Fields නවීන කිරීම */
.modern-input { position: relative; margin-bottom: 20px; }
.modern-input i { position: absolute; top: 50%; left: 16px; transform: translateY(-50%); color: #999; font-size: 16px; }
.modern-input input, .modern-input select {
    width: 100%; padding: 16px 16px 16px 45px; border: 1.5px solid #eef0f2; border-radius: 12px; font-size: 14px; background: #f8f9fa; box-sizing: border-box; transition: 0.3s; color: #333; font-weight: 600; font-family: 'Noto Sans Sinhala', sans-serif;
}
.modern-input input:focus, .modern-input select:focus {
    border-color: var(--primary-red); background: #fff; outline: none; box-shadow: 0 0 0 4px rgba(230,0,0,0.1);
}

.form-row-modern { display: flex; gap: 15px; }
.modern-input.half { width: 50%; }

/* Buttons */
.btn-auth-modern {
    width: 100%; padding: 16px; background: linear-gradient(to right, #E60000, #b30000); color: white; border: none; border-radius: 12px; font-size: 16px; font-weight: bold; cursor: pointer; transition: 0.3s; box-shadow: 0 10px 20px rgba(230,0,0,0.2); margin-top: 10px; display: flex; justify-content: center; align-items: center; gap: 10px;
}
.btn-auth-modern:hover { transform: translateY(-3px); box-shadow: 0 15px 25px rgba(230,0,0,0.3); }

.forgot-pass { text-align: right; margin-top: -10px; margin-bottom: 20px; }
.forgot-pass a { color: #777; font-size: 13px; text-decoration: none; font-weight: 700; }
.forgot-pass a:hover { color: var(--primary-red); }

/* Divider ("හෝ") */
.divider { text-align: center; margin: 25px 0; position: relative; }
.divider::before { content: ''; position: absolute; top: 50%; left: 0; width: 100%; height: 1px; background: #eee; }
.divider span { background: #fff; padding: 0 15px; color: #999; font-size: 13px; position: relative; z-index: 1; font-weight: bold; }

.btn-social-modern {
    width: 100%; padding: 15px; background: #fff; color: #333; border: 1.5px solid #eaeaea; border-radius: 12px; font-size: 15px; font-weight: bold; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 10px; transition: 0.3s;
}
.btn-social-modern:hover { background: #f9f9f9; border-color: #ccc; }
.btn-social-modern img { width: 22px; }

.secure-text { text-align: center; color: #00a859; font-size: 13px; font-weight: 700; margin-top: 20px; }

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .modern-modal { flex-direction: column; max-height: 95vh; overflow-y: auto; }
    .modal-left { width: 100%; padding: 40px 20px; text-align: center; display: block; }
    .modal-left img { margin: 0 auto 15px; }
    .modal-right { width: 100%; padding: 30px 20px; }
    .close-btn { top: 10px; right: 10px; background: rgba(0,0,0,0.5); color: white; }
    .form-row-modern { flex-direction: column; gap: 0; }
    .modern-input.half { width: 100%; }
}

/* Social Buttons Layout */
.social-buttons {
    display: flex;
    gap: 15px;
}

.btn-social-modern {
    flex: 1; /* කොටුව දෙකට බෙදීම */
    padding: 12px;
    background: #fff;
    color: #333;
    border: 1.5px solid #eaeaea;
    border-radius: 12px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.btn-social-modern:hover { background: #f9f9f9; border-color: #ccc; }
.btn-social-modern img { width: 20px; }

/* Facebook Button Special Color */
.fb-btn i {
    color: #1877F2; /* Facebook Blue */
    font-size: 18px;
}

/* Animations for Forms */
.auth-form {
    animation: fadeInForm 0.4s ease-in-out;
}

@keyframes fadeInForm {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   නවීන තාක්ෂණික පෙනුම: අපව තෝරාගැනීමට හේතු (Zig-Zag Layout)
   ========================================= */
.premium-features-section {
    padding: 100px 5%;
    background-color: #ffffff;
}

.feature-zigzag-container {
    max-width: 1200px;
    margin: 60px auto 0;
    display: flex;
    flex-direction: column;
    gap: 80px; /* පේළි අතර ලොකු පරතරයක් */
}

.feature-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

/* Reverse පේළිය සඳහා (Text වමට, Image දකුණට) */
.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-visual {
    flex: 1;
    position: relative;
    border-radius: 20px;
}

.feature-visual img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    transition: 0.5s ease;
}

.feature-visual:hover img {
    transform: scale(1.02); /* මෘදු ලෙස ලොකු වීම */
}

.floating-icon {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary-red);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 10px 20px rgba(230,0,0,0.3);
    border: 5px solid white;
}

.feature-row.reverse .floating-icon {
    right: auto;
    left: -20px;
}

.feature-text {
    flex: 1;
    position: relative;
    padding: 20px;
}

.watermark-num {
    position: absolute;
    top: -50px;
    left: 0;
    font-size: 120px;
    font-weight: 900;
    color: rgba(0,0,0,0.03); /* අතිශය මෘදු අංකය */
    z-index: 0;
}

.feature-text h3 {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.feature-text p {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* =========================================
   Magazine Style: සාර්ථක කතා
   ========================================= */
/* =========================================
   Magazine Style: සාර්ථක කතා (වර්ණ වෙනස් කිරීම)
   ========================================= */
.premium-stories-section {
    padding: 100px 5%;
    /* පසුබිම සුදු සහ ලා අළු මිශ්‍රණයකට (Gradient) වෙනස් කිරීම */
    background: linear-gradient(to bottom, #ffffff, #f4f6f8); 
    position: relative;
}

/* ප්‍රධාන මාතෘකාවට අඳුරු වර්ණයක් දීම (පසුබිම සුදු නිසා) */
.premium-stories-section > h2 {
    color: var(--primary-black) !important; 
}

.story-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    background: #141414; /* ඇතුළත කාඩ්පත පමණක් අඳුරු කිරීම (Dark Card) */
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,0.15); /* කාඩ්පත කැපී පෙනීමට ලොකු සෙවනැල්ලක් */
    border: 1px solid rgba(0,0,0,0.05);
}

.story-image-side {
    flex: 1;
    position: relative;
    height: 100%;
    min-height: 500px;
}

.main-story-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-badge-story {
    position: absolute;
    top: 30px;
    left: 30px;
    background: rgba(255,255,255,0.9);
    color: #333;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 14px;
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.floating-badge-story i { color: var(--primary-red); margin-right: 5px; }

.story-text-side {
    flex: 1;
    padding: 60px;
    position: relative;
}

.story-text-side h2 { font-size: 36px; margin-bottom: 30px; line-height: 1.2; }

.premium-quote-mark {
    font-size: 50px;
    color: var(--primary-red);
    opacity: 0.5;
    margin-bottom: 20px;
}

.the-quote {
    font-size: 20px;
    line-height: 1.8;
    font-style: italic;
    color: #e0e0e0;
    margin-bottom: 30px;
}

.story-author-info h4 { font-size: 22px; margin: 0 0 5px 0; color: #fff; }
.story-author-info span { color: #888; font-size: 14px; }

.story-controls {
    margin-top: 40px;
    display: flex;
    gap: 15px;
}

.ctrl-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #444;
    background: transparent;
    color: white;
    cursor: pointer;
    font-size: 18px;
    transition: 0.3s;
}

.ctrl-btn:hover, .ctrl-btn.active-ctrl {
    background: var(--primary-red);
    border-color: var(--primary-red);
}

/* === Mobile View Update === */
@media screen and (max-width: 900px) {
    .feature-row, .feature-row.reverse {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .watermark-num {
        left: 50%;
        transform: translateX(-50%);
    }
    .floating-icon {
        right: 50%;
        transform: translateX(50%);
        bottom: -30px;
    }
    
    .story-wrapper { flex-direction: column; }
    .story-image-side { min-height: 300px; width: 100%; }
    .story-text-side { padding: 40px 20px; text-align: center; }
    .story-controls { justify-content: center; }
}

/* Slider Animation Styles */
.story-wrapper {
    position: relative;
    padding-bottom: 80px; /* බොත්තම් සඳහා පහළින් ඉඩ */
}

.story-slide {
    display: none; /* සියලුම කතා සඟවයි */
    width: 100%;
    align-items: center;
    animation: fadeEffect 0.6s;
}

.story-slide.active {
    display: flex; /* Active කතාව පමණක් පෙන්වයි */
}

@keyframes fadeEffect {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.slider-controls-container {
    position: absolute;
    bottom: 30px;
    right: 60px;
    display: flex;
    gap: 15px;
    z-index: 10;
}

/* Mobile View for Slider */
@media screen and (max-width: 900px) {
    .story-slide.active { flex-direction: column; }
    .slider-controls-container {
        position: relative;
        right: auto;
        bottom: auto;
        justify-content: center;
        margin-top: -20px;
        padding-bottom: 30px;
    }
}

