/* Premium UI Enhancements for Ordhangini */

:root {
    --primary-color: #5E2797;
    /* Strict Primary Color */
    --secondary-color: #5E2797;
    /* Enforcing same color palette */
    --accent-color: #ffffff;
    --dark-bg: #2D3436;
    --light-bg: #F9F9F9;
    --text-main: #2D3436;
    --text-muted: #636E72;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: 1px solid rgba(94, 39, 151, 0.1);
    --shadow-soft: 0 4px 12px rgba(94, 39, 151, 0.08);
    --shadow-hover: 0 8px 16px rgba(94, 39, 151, 0.15);
    --radius-lg: 10px;
    /* Standardized Radius */
    --radius-md: 8px;
    /* Standardized Radius */
}

body {
    background-color: var(--light-bg);
    color: var(--text-main);
}

h1,
h2,
h3,
h4,
h5,
h6,
.tiro_bangla {
    font-family: 'Tiro Bangla', 'Inter', serif !important;
    font-weight: 700;
}

/* Hero Section */
.hero-section {
    /* Removed background override to let original image show */
    background-color: transparent;
    padding: 80px 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    margin-bottom: 40px;
    position: relative;
}

/* Ensure text readability over hero image */
.hero-content {
    background: rgba(255, 255, 255, 0.5);
    /* Increased Transparency from 0.9 to 0.5 */
    backdrop-filter: blur(5px);
    /* Added blur for legibility */
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

/* Header Transparency Override */
header {
    background: rgba(255, 255, 255, 0.9) !important;
    /* Make header semi-transparent white */
    backdrop-filter: blur(10px);
}

.hero-content h1 {
    color: var(--primary-color);
    text-shadow: none;
    margin-bottom: 20px;
}

.hero-content h1 span b {
    color: var(--primary-color) !important;
}

.hero-title h2 span {
    color: var(--primary-color);
    background: none;
    -webkit-text-fill-color: initial;
    font-weight: bold;
}

.btn-group-hero .btn {
    border-radius: var(--radius-md);
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(94, 39, 151, 0.2);
}

.btn-group-hero .btn-primary {
    background: var(--primary-color);
}

.btn-group-hero .btn-primary:hover {
    background: #4a1f7a;
    /* Darker shade for hover state */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(94, 39, 151, 0.3);
}

/* Cards */
.biodata-card,
.recent-item,
.data-filter,
.achivement-content,
.how_to_work_section_card,
.review_card {
    background: white !important;
    border: 1px solid rgba(94, 39, 151, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft) !important;
    transition: all 0.3s ease;
    overflow: hidden;
}

.biodata-card:hover,
.recent-item:hover,
.how_to_work_section_card:hover,
.review_card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover) !important;
    border-color: var(--primary-color);
}

/* Filter Section */
.data-filter {
    padding: 30px;
    background: var(--primary-color) !important;
    /* Keep filter section standout if needed, or white? User asked for white & #5E2797. Keeping it white or primary. standard style is usually colored filter. */
}

/* User said "we have only 2 color white and this #5E2797"
   But Filter section usually needs to be distinct. 
   Let's check style.css .data-filter was var(--ha-primary) which is #5e2797.
   So I will respect that.
*/

.data-filter label,
.data-filter h3 {
    color: white;
}

.form-control,
.nice-select {
    border-radius: var(--radius-md);
    border: 1px solid #E0E0E0;
    padding: 10px 15px;
    height: auto;
    background-color: #fff;
}

.form-control:focus {
    border-color: var(--primary-color);
}

.submit-form {
    display: flex;
    justify-content: flex-end;
    /* Align right */
    gap: 15px;
    /* Space between buttons */
    padding-top: 15px !important;
}

.submit-form button,
.submit-form .btn-info {
    background: white;
    color: var(--primary-color);
    border: none;
    border-radius: var(--radius-md);
    padding: 10px 10px;
    /* Reduced side padding */
    font-weight: 600;
    width: 200px;
    /* Fixed identical width */
    text-align: center;
    display: inline-flex;
    /* Use flex to center text/icon if needed */
    justify-content: center;
    align-items: center;
    font-size: 15px !important;
    /* Enforce same text size */
}

.submit-form button:hover,
.submit-form .btn-info:hover {
    background: #f0f0f0;
}

/* Achievement Content Alignment */
.achivement-content h3 {
    text-align: center;
    margin-top: 20px;
    /* Little space above */
    margin-bottom: 25px !important;
}

/* Achievement Cards */
.card-bg-1,
.card-bg-2,
.card-bg-3,
.card-bg-4 {
    background: white;
    border: none;
    border-radius: var(--radius-md);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.card-title {
    font-size: 2rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif !important;
    /* Poppins for English numbers */
    color: var(--primary-color);
}

/* Biodata Cards */
.biodata-card {
    padding: 20px;
    margin-bottom: 30px;
}

.biodata-header .biodata-img img,
.recent-register-img img {
    border: 3px solid white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.biodata-footer .btn {
    border-radius: var(--radius-md);
}

.biodata-footer .btn-primary {
    background: var(--primary-color);
    border: none;
}

.btn-favorite {
    background: white;
    border: 2px solid #e74c3c;
    color: #e74c3c;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 5px 10px;
    font-size: 13px;
    line-height: 1;
}

.btn-favorite:hover {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
    transform: scale(1.05);
}

.btn-favorite.favorited {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
    pointer-events: none;
    opacity: 0.9;
}

/* How It Works */
.how_to_work_section_card {
    text-align: center;
    padding: 20px;
    height: 100%;
    /* Ensure equal height */
}

.how_to_work_section_card img {
    height: 60px;
    margin-bottom: 15px;
}

/* Reviews */
.review_card {
    padding: 30px !important;
    height: 100% !important;
    /* Fix height issue */
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.review_card img {
    width: 80px !important;
    height: 80px !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Footer & About */
.about-section {
    background: white;
    padding: 60px 0;
    border-radius: var(--radius-lg);
    margin: 40px 0;
    box-shadow: var(--shadow-soft);
}

.about-section-content h3 {
    color: var(--primary-color) !important;
}

.about-section-content p {
    color: var(--text-main) !important;
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .hero-content {
        padding: 20px;
    }

    .btn-group-hero .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0 !important;
    }


    .how_to_work_section_card,
    .review_card {
        margin-bottom: 20px;
        height: auto !important;
    }
}

/* Biodata Sidebar Text Visibility */
.biodata-body label,
.biodata-body p {
    color: var(--text-main) !important;
}

.biodata-header,
.biodata-header h4,
.biodata-header p {
    color: white !important;
}

.biodata-header p {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Bootstrap Overrides & Utilities */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-primary:hover {
    background-color: #4a1f7a !important;
    /* Darker shade */
    border-color: #4a1f7a !important;
}

/* Custom Filter Button for Search Page */
.btn-filter-custom {
    background: var(--primary-color);
    color: white !important;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(94, 39, 151, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    width: auto;
}

.btn-filter-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(94, 39, 151, 0.3);
    background-color: #4a1f7a;
    color: white !important;
}

.btn-filter-custom i {
    margin-right: 10px;
    font-size: 18px;
}

/* Table Responsiveness for Biodata Details */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Single Blog Details Styles */
@import url('https://fonts.googleapis.com/css2?family=Anek+Bangla:wght@400;500;600;700&display=swap');

.blog-details-section {
    padding: 80px 0;
    background-color: #fcfcfc;
}

.blog-details-card {
    background: white;
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Soft, deep shadow */
    padding: 50px;
    /* Generous padding */
}

/* User requested ~25px previously, but now 'redesign yourself' & 'font is little small'. 
   Increased size & impact. */
.blog-details-title {
    font-family: 'Anek Bangla', sans-serif;
    font-size: 2.0rem;
    /* ~30px */
    font-weight: 700;
    color: #2D3436;
    line-height: 1.3;
    margin-bottom: 25px;
}

/* Featured Image - 16:9 Aspect Ratio */
.blog-details-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    margin-bottom: 40px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Content Body */
.blog-details-content {
    font-family: 'Anek Bangla', sans-serif;
    font-size: 18px;
    /* Increased for professional readability */
    line-height: 1.8;
    color: #2c3e50;
    text-align: justify;
}

.blog-details-content p {
    margin-bottom: 25px;
}

/* Add clear styles for content headers if they exist in valid HTML */
.blog-details-content h2 {
    font-size: 2rem;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.blog-details-content h3 {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.blog-details-content ul,
.blog-details-content ol {
    margin-bottom: 25px;
    padding-left: 25px;
}

.blog-details-content li {
    margin-bottom: 10px;
}

/* Sidebar Styles */
.sidebar-widget {
    background: white;
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.sidebar-title {
    font-family: 'Anek Bangla', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(94, 39, 151, 0.1);
}

.recent-post-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.recent-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-post-img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
}

.recent-post-info h5 {
    font-size: 15px;
    font-family: 'Anek Bangla', sans-serif;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0;
}

.recent-post-info a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.recent-post-info a:hover {
    color: var(--primary-color);
}

.ad-placeholder {
    background: #f8f9fa;
    border: 1px dashed #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
    padding: 10px;
    margin-bottom: 25px;
    border-radius: var(--radius-md);
    min-height: 250px;
    /* Standard ad height */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-details-card {
        padding: 20px;
    }

    .blog-details-title {
        font-size: 22px;
    }
}

/* Blog Page Styles */
.blog-hero {
    background: linear-gradient(135deg, rgba(94, 39, 151, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
    padding: 60px 0 40px;
    text-align: center;
    margin-bottom: 30px;
}

.blog-hero h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.blog-card {
    background: white;
    border: none;
    /* Removed border for cleaner look like reference */
    border-radius: 4px;
    /* Sharper corners like reference */
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    /* Soft shadow */
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(94, 39, 151, 0.1);
}

.blog-img-wrapper {
    height: 220px;
    /* Taller image */
    overflow: hidden;
    position: relative;
    border-bottom: none;
}

.blog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-img {
    transform: scale(1.05);
}

.blog-body {
    padding: 25px;
    /* Generous padding */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Align top */
}

.blog-content-wrapper {
    margin-bottom: 15px;
}

.blog-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.5;
    color: #1a1a1a;
    margin-bottom: 12px;
    font-family: 'Tiro Bangla', serif;
    min-height: 3.2em;
    /* Ensure uniform height for titles (~2 lines) */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-title a:hover {
    color: var(--primary-color);
}

.blog-excerpt {
    font-size: 1rem;
    color: #414141;
    /* Slightly darker for better readability */
    line-height: 1.4;
    font-style: normal;
    /* Removed italic */
    margin-bottom: 20px;
    font-family: 'SolaimanLipi', 'Inter', sans-serif;
}

.read-more-btn {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    /* Push to bottom */
    width: fit-content;
    background: transparent;
    /* Reset */
    border: none;
    /* Reset */
    padding: 0;
    /* Reset */
}

.read-more-btn:hover {
    color: #4a1f7a;
    text-decoration: underline;
    background: transparent;
    transform: none;
}

.read-more-btn i {
    margin-left: 5px;
    font-size: 0.9rem;
}