/* ප්‍රධාන බහාලුම */
.flh-container {
    max-width: 1100px;
    margin: 40px auto;
    font-family: system-ui, -apple-system, sans-serif;
    color: #2D3748;
}

/* ---------------------------------
   MODERN GATEWAY FORM (🔒)
--------------------------------- */
.flh-lock-box {
    background: #ffffff;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    text-align: center;
    border-top: 6px solid #5A43EC; /* Elegant Violet */
    max-width: 500px;
    margin: 0 auto;
}
.flh-lock-icon {
    font-size: 50px;
    margin-bottom: 20px;
}
.flh-lock-box h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1A202C;
    margin-bottom: 12px;
}
.flh-lock-box p {
    color: #718096;
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 14px;
}
.flh-form-group {
    text-align: left;
    margin-bottom: 20px;
}
.flh-form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: #4A5568;
}
.flh-form-group input {
    width: 100%;
    padding: 14px;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s;
    background-color: #F8FAFC;
    box-sizing: border-box;
}
.flh-form-group input:focus {
    border-color: #5A43EC;
    background-color: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(90, 67, 236, 0.15);
}
#flh-submit-btn {
    background: #5A43EC;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(90, 67, 236, 0.3);
}
#flh-submit-btn:hover {
    background: #432ec4;
    transform: translateY(-2px);
}

/* ---------------------------------
   MAIN HUB STYLE (ඇතුළත පිටුව)
--------------------------------- */
.flh-hub-header {
    text-align: center;
    margin-bottom: 50px;
}
.flh-hub-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: #1A202C;
    margin-bottom: 10px;
}
.flh-hub-header p {
    font-size: 16px;
    color: #718096;
}

/* Section Header */
.flh-section-wrapper {
    margin-bottom: 60px;
}
.flh-section-header {
    border-bottom: 1px solid #E2E8F0;
    padding-bottom: 12px;
    margin-bottom: 30px;
}
.flh-section-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: #2D3748;
    position: relative;
    margin: 0;
}
.flh-section-header h3::after {
    content: '';
    position: absolute;
    bottom: -13px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #5A43EC;
    border-radius: 2px;
}

/* ---------------------------------
   1. LATEST ARTICLES (GRID)
--------------------------------- */
.flh-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}
.flh-article-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid #EDF2F7;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}
.flh-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.flh-article-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.placeholder-img {
    height: 200px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}
.flh-article-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.flh-article-body h4 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: #1A202C;
    margin: 0 0 12px 0;
}
.flh-article-excerpt {
    font-size: 14px;
    color: #718096;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}
.flh-read-more-btn {
    background: #5A43EC;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.3s;
    width: 100%;
}
.flh-read-more-btn:hover { background: #432ec4; }

/* ---------------------------------
   2. FREE VIDEO LIBRARY (GRID)
--------------------------------- */
.flh-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
}
.flh-video-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    border: 1px solid #EDF2F7;
    transition: transform 0.3s;
}
.flh-video-card:hover {
    transform: translateY(-4px);
}
.flh-video-link {
    text-decoration: none;
    color: inherit;
}
.flh-video-thumbnail {
    position: relative;
    height: 150px;
    background: #000;
    overflow: hidden;
}
.flh-video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: opacity 0.3s;
}
.flh-video-card:hover .flh-video-thumbnail img {
    opacity: 0.7;
}
.flh-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 0, 0, 0.9); /* YouTube Red Play Button */
    color: #fff;
    width: 50px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.flh-video-info {
    padding: 15px;
}
.flh-video-info h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #2D3748;
    line-height: 1.4;
}

/* ---------------------------------
   3. FACEBOOK COMMUNITY (GRID)
--------------------------------- */
.flh-fb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}
.flh-fb-card {
    background: #f0f4fc;
    border-radius: 16px;
    padding: 30px 24px;
    border: 1px solid #D2E3FC;
    text-align: center;
}
.flh-fb-icon-box {
    font-size: 32px;
    margin-bottom: 15px;
}
.flh-fb-card h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #185ABC;
    font-weight: 700;
}
.flh-fb-card p {
    font-size: 13px;
    color: #5f6368;
    margin-bottom: 20px;
}
.flh-btn-fb-style {
    display: inline-block;
    background: #1877F2;
    color: #fff;
    text-decoration: none;
    padding: 11px 24px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    transition: background 0.3s;
}
.flh-btn-fb-style:hover {
    background: #155cb4;
    color: #fff;
}