





/* ===================================================
                  HEADER START
   =================================================== */
/* ==========================================
   1. BRANDING AREA (WHITE & GREEN)
   ========================================== */
.header-main {
    background-color: #ffffff !important;
    border-top: 6px solid #006633; /* Pakistan Green Top Border */
    border-bottom: 1px solid #e0e0e0;
}

.main-title {
    color: #006633 !important; /* Pakistan Green */
    font-weight: 900 !important;
    font-size: 2.2rem !important;
    letter-spacing: -1px;
}

.brand-highlight {
    color: #00008b !important; /* Gold Highlight */
    text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
}

.slogan {
    color: #444 !important;
    font-weight: 700;
    font-size: 1rem;
    margin-top: 5px;
    letter-spacing: 0.5px;
}

.pro-icon-main {
    color: #006633 !important;
    font-size: 1.8rem;
}

/* ==========================================
   2. STICKY NAV BAR (SOLID GREEN)
   ========================================== */
.main-nav {
    background-color: #006633 !important; /* Solid Pakistan Green */
    padding: 12px 0 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.app-logo {
    color: #ffffff !important;
    font-size: 1.5rem !important;
    letter-spacing: 1px;
}

.app-logo span {
    color: #00008b !important; /* Gold Hire */
}

.nav-link {
    color: #ffffff !important; /* Pure White text on Green background */
    font-weight: 800 !important;
    text-transform: uppercase;
    font-size: 14px !important;
    margin: 0 10px;
}

.nav-link:hover {
    color: #fbbf24 !important;
}

/* --- Buttons in Nav --- */
.login-link-custom {
    border: 2px solid #ffffff !important;
    border-radius: 5px;
    padding: 5px 15px !important;
}

.btn-join-pro-custom {
    background-color: #00008b !important; /* Bold Gold */
    color: #006633 !important; /* Green text */
    font-weight: 900 !important;
    border-radius: 5px;
    padding: 7px 20px !important;
    border: none;
}

.btn-logout-custom {
    background-color: #ff4d4d !important;
    color: white !important;
    font-weight: 800 !important;
    border-radius: 5px;
}

/* ==========================================
   3. MOBILE APP BAR (DARK GREEN)
   ========================================== */
@media (max-width: 768px) {
    body { padding-bottom: 80px; } /* Prevent content hiding */

    .mobile-app-bar {
        position: fixed;
        bottom: 0; left: 0; right: 0;
        background-color: #004d26 !important; /* Darker Forest Green */
        height: 75px;
        display: flex;
        align-items: center;
        border-top: 3px solid #00008b; /* Gold top border */
        z-index: 1000;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.4);
    }

    .app-bar-item {
        color: #ffffff !important;
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        font-weight: 700;
        font-size: 11px;
    }

    .app-bar-item i {
        font-size: 1.4rem;
        margin-bottom: 3px;
    }

    .app-bar-item.active {
        color: #00008b !important; /* Active icon turns gold */
    }
}
/* =========================
   3. SEARCH SECTION
   ========================= */
/* --- Search Wrapper --- */
.search-bar-wrapper {
    background: #fdfdfd;
    padding: 25px 0;
    border-bottom: 1px solid #eee;
}

/* --- The Main Floating Card --- */
.search-glass-card {
    background: #ffffff;
    border: 1px solid #006633;
    border-radius: 50px; /* Modern pill shape */
    padding: 8px 12px 8px 25px;
    box-shadow: 0 10px 30px rgba(0, 102, 51, 0.1);
    transition: transform 0.3s ease;
}

.search-glass-card:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 102, 51, 0.15);
}

/* --- Flexbox Layout --- */
.search-flex-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* --- Input Styling --- */
.search-field {
    display: flex;
    align-items: center;
    flex: 2;
}

.search-field i {
    color: #006633;
    font-size: 1.1rem;
    margin-right: 12px;
}

.clean-input {
    border: none !important;
    outline: none !important;
    width: 100%;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
}

/* --- Dropdowns Styling --- */
.search-dropdown-group {
    display: flex;
    gap: 10px;
    flex: 3;
    border-left: 1px solid #ddd;
    padding-left: 15px;
}

.clean-select {
    border: none !important;
    outline: none !important;
    background: #f8fbf9;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #006633;
    cursor: pointer;
    transition: background 0.2s;
}

.clean-select:hover {
    background: #eef5f0;
}

/* --- Premium Search Button --- */
.premium-search-btn {
    background: #006633; /* Pakistan Green */
    color: white;
    border: none;
    border-radius: 40px;
    padding: 12px 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.premium-search-btn:hover {
    background: #00008b; /* Gold/Yellow on Hover */
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .search-glass-card {
        border-radius: 15px;
        padding: 20px;
    }
    .search-flex-container {
        flex-direction: column;
        align-items: stretch;
    }
    .search-dropdown-group {
        border-left: none;
        padding-left: 0;
        flex-direction: column;
    }
    .premium-search-btn {
        justify-content: center;
    }
}

    /* ============================================================
   INDEX PAGE -START INDEX
   ============================================================ */

/* 1. Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 33, 71, 0.9), rgba(0, 33, 71, 0.9)), url('assets/justice-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 60px 20px;
    color: white;
    text-align: center;
    border-bottom: 4px solid #c5a059;
}
.hero-content h1 { font-size: 38px; font-weight: 800; margin-bottom: 15px; }
.hero-content h1 span { color: #c5a059; }
.hero-content p { font-size: 18px; margin-bottom: 30px; opacity: 0.9; }
.hero-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.hero-join-btn { background: #c5a059; color: #002147; padding: 10px 25px; border-radius: 5px; text-decoration: none; font-weight: 800; }
.hero-search-info { background: rgba(255,255,255,0.1); padding: 10px 20px; border-radius: 5px; font-size: 14px; border: 1px solid rgba(255,255,255,0.2); }

/* 2. Legal Aid Banner (Urdu) */
.legal-aid-banner {
    position: relative;
    background: url('https://images.unsplash.com/photo-1505664194779-8beaceb93744?auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    padding: 80px 0; color: white; margin: 10px; overflow: hidden; border-radius: 15px;
}
.banner-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, rgba(1, 65, 28, 0.9) 0%, rgba(0, 42, 18, 0.7) 100%); z-index: 1; }
.banner-content { position: relative; z-index: 2; }
.banner-title { font-family: 'Jameel Noori Nastaleeq', serif; font-size: 3.5rem; font-weight: bold; }
.banner-subtitle { font-size: 1.4rem; line-height: 1.8; opacity: 0.9; direction: rtl; }
.btn-banner-main { background-color: #ffffff; color: #01411C !important; padding: 15px 35px; border-radius: 50px; font-weight: bold; text-decoration: none !important; display: inline-block; transition: 0.3s; }
.btn-banner-main:hover { background-color: #ffcc00; transform: scale(1.05); }
.banner-badge { font-size: 8rem; color: rgba(255, 255, 255, 0.2); }
.banner-tagline { display: block; margin-top: 15px; font-style: italic; opacity: 0.8; }

/* 3. Advocate Suggestion Banner */
.advocate-banner-wrapper { width: 100%; margin: 20px 0 40px 0; }
.advocate-banner { background: linear-gradient(135deg, #002147 0%, #001025 100%); border-radius: 20px; position: relative; overflow: hidden; border: 1px solid rgba(197, 160, 89, 0.3); }
.legal-icon-circle { width: 70px; height: 70px; background: #002147; border: 2px solid #c5a059; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.pulse-icon { color: #c5a059; font-size: 1.8rem; animation: advocate-pulse 2s infinite; }
@keyframes advocate-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.btn-advocate-action { background: #c5a059; color: #002147; font-weight: 700; padding: 12px 35px; border-radius: 50px; border: 2px solid #c5a059; transition: 0.4s; }
.btn-advocate-action:hover { background: transparent; color: #c5a059; }
.banner-pattern { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: url('https://www.transparenttextures.com/patterns/carbon-fibre.png'); opacity: 0.1; }
.badge-feedback { background: rgba(197, 160, 89, 0.2); color: #c5a059; border: 1px solid #c5a059; padding: 5px 10px; border-radius: 4px; font-size: 11px; }
/* =========================================
   4. NEWS SECTION (Modern & Clean)
   ========================================= */

/* Main Section Wrapper */
.home-news-section-compact {
    background: #ffffff;
    padding: 40px 0;
}

.section-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Header (Left-border style) */
.compact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-left: 15px;
    border-left: 5px solid #c5a059; /* Gold accent border */
}

.compact-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: #002147;
}

.compact-header span {
    font-size: 12px;
    font-weight: 700;
    color: #c5a059;
    text-transform: uppercase;
}

/* "View All" Button */
.view-all-btn {
    font-size: 13px;
    font-weight: 700;
    color: #002147;
    text-decoration: none;
    padding: 8px 15px;
    border: 1px solid #eeeeee;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: #f8f8f8;
    border-color: #c5a059;
}

/* News Grid Layout (Responsive) --------------------------------------*/
.news-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 15px;
}

/* News Item Box */
.news-box-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-strip-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* Hover Effect for individual news box */
.news-box-link:hover .news-strip-item {
    background: #ffffff;
    border-color: #c5a059;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Date Box (Left Side) */
.news-date-box {
    background: #002147;
    color: #ffffff;
    min-width: 55px;
    padding: 8px;
    text-align: center;
    border-radius: 6px;
    margin-right: 15px;
}

.news-date-box .d-day {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: #c5a059; /* Gold day text */
}

.news-date-box .d-mon {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
}

/* Content Box (Right Side) */
.news-strip-title {
    font-size: 16px;
    font-weight: 700;
    color: #002147;
    margin-bottom: 5px;
}

.news-strip-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 10px;
}

/* Meta Footer (Author & District) */
.news-strip-meta {
    display: flex;
    gap: 15px;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
}

.news-strip-meta i {
    color: #c5a059;
    margin-right: 5px;
}


/* News Meta Icon - Blue Color for Location */
.news-strip-meta .fa-map-marker-alt, 
.news-strip-meta .fa-map-marker {
    color: #1e90ff !important; /* Professional Blue */
}

/* Optional: If you want all icons in the news meta to be blue */
/*
.news-strip-meta i {
    color: #1e90ff !important;
}
*/









/* --- MOBILE RESPONSIVE FOR NEWS --- */
@media (max-width: 768px) {
    /* 1. Force the grid to 1 column and 100% width */
    .news-list-container {
        grid-template-columns: 1fr !important; 
        width: 100% !important;
        padding: 0 10px; /* Adds small breathing room on edges */
    }

    /* 2. Change from horizontal (flex) to vertical so date stays on top */
    .news-strip-item {
        flex-direction: column; /* Stacks date box on top of content */
        width: 100% !important;
        padding: 12px;
    }

    /* 3. Adjust Date Box for mobile */
    .news-date-box {
        display: flex; /* Makes day and month sit side-by-side on mobile */
        align-items: center;
        gap: 8px;
        min-width: auto;
        width: fit-content;
        margin-bottom: 10px; /* Space before title */
        padding: 4px 12px;
    }

    .news-date-box .d-day {
        font-size: 16px;
    }

    /* 4. Ensure title and desc use full width */
    .news-strip-title {
        font-size: 15px;
        line-height: 1.3;
    }

    .news-strip-desc {
        font-size: 12px;
        margin-bottom: 8px;
    }

    /* 5. Make meta footer full width */
    .news-strip-meta {
        justify-content: space-between;
        width: 100%;
    }
}





/* ==========================================================================
   CLEAN professional GRID CSS (Updated for 270x370 & No Underlines)
   ========================================================================== */

.professionals-flex-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, 270px); 
    gap: 25px; 
    justify-content: center;
    padding: 20px;
    width: 100%;
}

.professional-card-link { 
    text-decoration: none !important; /* Removes underline from the link */
    color: inherit; 
    display: block; 
}

.mini-professional-card { 
    width: 250px; 
    height: 380px; 
    background: #fff; 
    border: 1px solid #f0f0f0; 
    padding: 20px; 
    border-radius: 12px; 
    text-align: center; 
    box-sizing: border-box; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}

.professional-card-link:hover .mini-professional-card { 
    border-color: #c5a059; 
    transform: translateY(-4px); 
    box-shadow: 0 6px 15px rgba(255, 153, 51, 0.15); 
}

/* Passport Photo */
.mini-img-wrap { 
    width: 120px; /* Increased for the 270px card */
    height: 150px; /* Increased for the 370px card */
    margin: 0 auto 10px; 
    border: 2px solid #c5a059; 
    border-radius: 4px; 
    overflow: hidden; 
    background: #f2f7b7;
}

.mini-img-wrap img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

/* Name and Title */
.mini-professional-card h5 { 
    font-size: 16px; 
    color: #002147; 
    margin-bottom: 5px; 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 700;
    text-decoration: none; /* Extra insurance against underlines */
}

/* Bio Section - No Underline */
.mini-bio {
    font-size: 12px;
    line-height: 1.4;
    color: #555;
    height: 90px; /* Adjusted for taller card */
    display: -webkit-box;
    -webkit-line-clamp: 5; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
    text-decoration: none !important; /* Removes the underline from bio text */
}

/* Location Style */
.mini-location {
    font-size: 11px;
    color: #777;
    margin-top: auto;
    padding-bottom: 5px;
    text-decoration: none;
}

.mini-location i {
    color: #007bff; 
    margin-right: 3px;
}

/* Button */
.mini-btn { 
    font-size: 11px; 
    background: #c5a059; 
    color: #fff; 
    padding: 10px 0; 
    border-radius: 6px; 
    font-weight: 700;
    width: 100%;
    border: none;
    text-transform: uppercase;
}



/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    .professionals-flex-grid {
        grid-template-columns: 1fr 1fr !important; 
        gap: 10px !important; 
        padding: 10px !important;
    }

    .mini-professional-card {
        width: auto !important; 
        /* Reduced height slightly to 360px to close the gap */
        height: 350px !important; 
        padding: 15px 10px !important;
        display: flex !important;
        flex-direction: column !important;
        /* Keeps everything centered rather than pushed to extremes */
        justify-content: flex-start !important; 
    }

    .mini-img-wrap {
        width: 100px !important; /* Slightly larger image fills the "empty" space */
        height: 125px !important;
        margin-bottom: 8px !important;
    }

    .mini-bio {
        font-size: 11px !important;
        line-height: 1.4 !important; 
        height: 78px !important; /* Exactly 5 lines */
        -webkit-line-clamp: 5 !important; 
        margin-bottom: 10px !important; /* Small controlled gap */
        text-align: center;
    }

    .mini-location {
        margin-top: auto !important; /* Pushes ONLY the location and button to the bottom */
        padding-bottom: 8px !important;
        font-size: 11px !important;
    }

    .mini-btn {
        padding: 8px 0 !important;
    }
}
     /* ============================================================
   INDEX PAGE - END
   ============================================================ */ 
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   /* ==============================================
         REGISTER PAGE START
   ====================================================== */
/* Register Button Styling */
.register-btn {
    width: 100%;
    padding: 14px;
    background-color: #c5a059;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.register-btn:hover {
    background-color: #0d1245;
    transform: translateY(-2px);
}

.register-btn:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(33, 136, 56, 0.5);
}

/* Form Control Styling used in your inline styles */
.form-control {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}


   /* ==============================================
         REGISTER  END
   ====================================================== */
   
   
   
   
   /* ====================================================================
                   LOGIN PAGE START
   ============================================================================ */
 

/* ===========================
       Login Form Container
    =========================== */
    .login-container {
        max-width: 450px;
        margin: 60px auto;
        padding: 40px;
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        border: 1px solid #eee;
    }

    .login-container h2 {
        text-align: center;
        color: #333;
        margin-bottom: 30px;
        font-family: 'Montserrat', sans-serif;
        font-weight: 700;
        font-size: 24px;
    }

    /* ===========================
       Form Groups & Inputs
    =========================== */
    .form-group {
        margin-bottom: 20px;
    }

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: #555;
        font-size: 14px;
    }

    .form-control {
        width: 100%;
        padding: 12px;
        border: 1px solid #ddd;
        border-radius: 5px;
        box-sizing: border-box;
        font-size: 14px;
        transition: border-color 0.3s, box-shadow 0.3s;
    }

    .form-control:focus {
        border-color: #c5a059;
        outline: none;
        box-shadow: 0 0 5px rgba(197, 160, 89, 0.5);
    }


    /* ===========================
       Messages
    =========================== */
    .error-msg, .success-msg {
        padding: 12px;
        border-radius: 5px;
        margin-bottom: 20px;
        text-align: center;
        font-size: 14px;
    }

    .error-msg {
        background: #f8d7da;
        color: #721c24;
        border: 1px solid #f5c6cb;
    }

    .success-msg {
        background: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
    }

    /* ===========================
       Register Link
    =========================== */
    .register-link {
        display: block;
        text-align: center;
        margin-top: 15px;
        color: #666;
        text-decoration: none;
        font-size: 14px;
        transition: color 0.3s;
    }

    .register-link:hover {
        color: #c5a059;
    }

    .register-link span {
        color: #c5a059;
        font-weight: 700;
    }
    

/* Login Button Styling */
.register-btn {
    width: 100%;
    padding: 14px;
    background-color: #c5a059; /* green color for register */
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.register-btn:hover {
    background-color: #0d1245; /* darker green on hover */
    transform: translateY(-2px);
}

/* Optional: if you want to add focus outline */
.register-btn:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(33, 136, 56, 0.5);
}


   
    /* ====================================================================
                    LOGIN PAGE END
   ============================================================================
   
   
       /* ====================================================================
                    EDIT PROFILE PAGE START
   ============================================================================
   
   
    /* Scoping Wrapper to prevent Header conflicts */
    #professional-dashboard { background-color: #f4f7f6; font-family: 'Segoe UI', sans-serif; padding-bottom: 50px; }
    #professional-dashboard .main-container { padding: 30px 15px; max-width: 1200px; margin: 0 auto; }
    #professional-dashboard .dashboard-card { border: none; border-radius: 15px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05); background: #ffffff; padding: 30px; }
    #professional-dashboard .card-title { color: #002147; font-weight: 700; margin-bottom: 1.5rem; text-align: center; }
    
    /* Profile Image */
    #professional-dashboard .current-profile-img { width: 140px; height: 180px; object-fit: cover; border-radius: 8px; border: 4px solid #ffffff; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); background-color: #e9ecef; }
    
    /* Action Bar Navigation */
    #professional-dashboard .top-action-bar { background: #ffffff; padding: 15px 20px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); margin-bottom: 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }
    #professional-dashboard .btn-action { padding: 10px 25px; border-radius: 50px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; transition: all 0.3s ease; font-size: 15px; border: none; }

    #professional-dashboard .btn-custom-navy { background-color: #0d1245 !important; color: #ffffff !important; }
    #professional-dashboard .btn-custom-navy:hover { background-color: #c5a059 !important; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.2); }

    #professional-dashboard .btn-custom-orange { background-color: #c5a059 !important; color: #ffffff !important; }
    #professional-dashboard .btn-custom-orange:hover { background-color: #0d1245 !important; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.2); }

    /* Category selection grid */
    #professional-dashboard .category-grid { 
        display: grid; 
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); 
        gap: 10px; 
        background: #f8f9fa; 
        padding: 20px; 
        border-radius: 8px; 
        border: 1px solid #eee; 
    }
    #professional-dashboard .cat-box { display: flex; align-items: center; gap: 10px; background: #fff; padding: 10px; border: 1px solid #ddd; border-radius: 5px; }
    #professional-dashboard .cat-label { cursor: pointer; margin: 0; width: 100%; }

    /* Submit Button */
    #professional-dashboard .register-btn { width: 100%; padding: 14px; background-color: #c5a059; color: #ffffff; border: none; border-radius: 6px; font-size: 16px; font-weight: 600; cursor: pointer; transition: 0.3s; }
    #professional-dashboard .register-btn:hover { background-color: #0d1245; transform: translateY(-2px); }   
 
 
 
        /* ====================================================================
                    EDIT PROFILE PAGE END
   ============================================================================
   
  
   
        /* ====================================================================
                 MANAGE NEWS START
   ============================================================================
  
  
  
   
   
 body { background-color: #f4f7f6; font-family: 'Segoe UI', sans-serif; }
    .main-container { padding: 30px 15px; max-width: 1200px; margin: 0 auto; }

    /* Action Bar Navigation */
    .top-action-bar {
        background: #ffffff;
        padding: 15px 20px;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        margin-bottom: 30px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .btn-action {
        padding: 10px 25px;
        border-radius: 50px;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 8px;
        text-decoration: none;
        transition: all 0.3s ease;
        font-size: 15px;
        border: none;
    }

    .btn-custom-navy { background-color: #0d1245; color: #ffffff !important; }
    .btn-custom-navy:hover { background-color: #c5a059; transform: translateY(-2px); }
    

    .btn-custom-orange { background-color: #c5a059; color: #ffffff !important; }
    .btn-custom-orange:hover { background-color: #0d1245; transform: translateY(-2px); }

    /* Dashboard Rows */
    .dashboard-row {
        background: #ffffff;
        border-radius: 12px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
        padding: 25px;
        margin-bottom: 25px;
        border: 1px solid #eee;
    }

    .row-title {
        font-weight: 700;
        color: #002147;
        border-bottom: 3px solid #c5a059;
        display: inline-block;
        margin-bottom: 20px;
        padding-bottom: 5px;
        text-transform: uppercase;
        font-size: 0.85rem;
        letter-spacing: 1px;
    }

    /* Form Elements */
    .news-content-box {
        min-height: 88px;
        resize: vertical;
    }

    .register-btn {
        width: 100%;
        padding: 14px;
        background-color: #c5a059;
        color: #ffffff;
        border: none;
        border-radius: 6px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: 0.3s;
    }

    .register-btn:hover { background-color: #0d1245; transform: translateY(-2px); }

    @media (max-width: 768px) {
        .top-action-bar { flex-direction: column; }
        .btn-action { width: 100%; justify-content: center; }
    }
    
    


        /* ====================================================================
                 MANAGE NEWS END
   ============================================================================


/* ======================================================================
                    CONTACT PAGE START
   ====================================================================== */

/* Main Wrapper Box */
.contact-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Title Styling */
.contact-title {
    text-align: center; 
    color: #0d1245;
    margin-bottom: 25px;
}

/* Form Group Spacing */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

/* Input & Textarea Styling */
.form-group input, 
.form-group textarea {
    width: 100%; 
    padding: 10px; 
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; /* Ensures padding doesn't break width */
}

.form-group textarea {
    height: 120px;
}

/* Success/Error Messages */
.msg-error {
    color: red; 
    text-align: center;
    font-weight: 600;
}

.msg-success {
    color: green; 
    text-align: center;
    font-weight: 600;
}

/* Register/Submit Button Styling */
.register-btn {
    width: 100%;
    padding: 14px;
    background-color: #c5a059; 
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.register-btn:hover {
    background-color: #0d1245; 
    transform: translateY(-2px);
}

.register-btn:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(13, 18, 69, 0.5);
}


/* ======================================================================
                    CONTACT PAGE END
   ====================================================================== */
   
   
   
   
   /* ======================================================================
                   BAR NEWS PAGE START
   ====================================================================== */
   
   

.news-container { max-width: 1000px; margin: 40px auto; padding: 0 20px; font-family: Arial, sans-serif; }
.news-card { background: #fff; padding: 20px; margin-bottom: 20px; border-radius: 8px; border: 1px solid #ddd; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.news-title-link { font-size: 22px; font-weight: bold; color: #002147; text-decoration: none; display: inline-block; margin-bottom: 8px; }
.news-title-link:hover { color: #c5a059; text-decoration: underline; }
.meta { font-size: 13px; color: #666; margin-bottom: 12px; }
.excerpt { font-size: 15px; color: #333; line-height: 1.6; }
.read-more { display: inline-block; margin-top: 10px; font-weight: bold; color: #c5a059; text-decoration: none; }
.read-more:hover { text-decoration: underline; }

/* ======================================================================
                    BAR NEWS PAGE END
   ====================================================================== */
   
   
   
   
   
   /* ======================================================================
                    NEWS DETAIL START
   ====================================================================== */
   
/* ============================================================
   NEWS DETAILS PAGE STYLES
   ============================================================ */

.news-detail-container {
    max-width: 900px;
    margin: 40px auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 0 20px;
}

/* Header & Titles */
.news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.news-title-area h1 {
    color: #002147;
    margin: 0;
    font-size: 28px;
}

.news-meta {
    color: #64748b;
    font-size: 14px;
    margin: 10px 0 0;
}

.meta-divider {
    margin: 0 10px;
}

/* Admin Edit/Delete Buttons */
.admin-actions {
    display: flex;
    gap: 8px;
    margin-left: 20px;
}

.btn-edit, .btn-delete {
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.3s;
}

.btn-edit { background: #002147; color: #c5a059; }
.btn-delete { background: #ef4444; color: white; }
.btn-edit:hover, .btn-delete:hover { opacity: 0.8; transform: translateY(-1px); }

/* Main Content Body */
.news-content {
    font-size: 17px;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 40px;
}

/* Social Share Box */
.share-box {
    background: #f8fafc;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.share-label { font-weight: bold; color: #002147; }

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: white !important;
    text-decoration: none;
    margin-right: 8px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.share-btn:hover { transform: translateY(-3px); opacity: 0.9; }
.bg-facebook { background-color: #3b5998; }
.bg-twitter { background-color: #1da1f2; }
.bg-whatsapp { background-color: #25d366; }
.bg-linkedin { background-color: #0077b5; }

/* Links and Dividers */
.back-link {
    color: #c5a059;
    font-weight: bold;
    text-decoration: none;
    font-size: 14px;
}

.section-divider {
    margin: 40px 0;
    border: 0;
    border-top: 1px solid #e2e8f0;
}

/* Comments Section */
.discussion-title {
    color: #002147;
    font-size: 22px;
    margin-bottom: 25px;
}

.alert {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid;
}

.alert-error { background: #fef2f2; color: #dc2626; border-color: #fee2e2; }
.alert-success { background: #f0fdf4; color: #16a34a; border-color: #dcfce7; }

.comment-form textarea {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    margin-bottom: 12px;
    font-family: inherit;
    font-size: 15px;
    box-sizing: border-box;
}

.btn-post-comment {
    background: #002147;
    color: #c5a059;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
}

.btn-post-comment:hover { background: #0d1245; transform: translateY(-2px); }

.login-prompt {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 30px;
    border: 1px solid #e2e8f0;
}

.login-prompt a { color: #002147; font-weight: bold; text-decoration: none; }

/* Comment List Styles */
.comment-item {
    border-bottom: 1px solid #f1f5f9;
    padding: 20px 0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.commenter-name {
    color: #002147;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
}

.comment-date {
    color: #94a3b8;
    font-size: 12px;
}

.comment-text {
    margin: 10px 0 0;
    color: #475569;
    line-height: 1.6;
    font-size: 15px;
}

.no-comments {
    color: #94a3b8;
    font-style: italic;
    text-align: center;
}   
   
   
   
      /* ======================================================================
                    NEWS DETAIL END
   ====================================================================== */
   
   
   
         /* ==================================================================
                    FREE LEGAL AID PAGE START
   ====================================================================== */
   

.english-content-area {
    margin-top: 40px; 
    margin-bottom: 80px;
    direction: ltr; /* Left-to-Right for English */
    text-align: left;
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
}

.main-heading {
    color: #b30000; 
    font-weight: 800; 
    font-size: 2.8rem;
    margin-bottom: 25px;
}

.sub-heading {
    color: #01411C;
    font-weight: bold;
    font-size: 1.8rem;
    margin-top: 40px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.sub-heading.dark-text {
    color: #333;
}

.large-text { 
    font-size: 1.2rem; 
    margin-bottom: 30px; 
    color: #444;
}

.readable-list { 
    font-size: 1.1rem; 
    list-style-position: outside; 
    padding-left: 20px;
    margin-bottom: 30px;
}

.readable-list li {
    margin-bottom: 10px;
}

.cta-wrapper {
    text-align: center; 
    margin-top: 50px;
}

.btn-call-to-action {
    display: inline-block;
    background-color: #b30000;
    color: #ffffff !important;
    font-size: 1.3rem;
    font-weight: bold;
    padding: 15px 50px;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.btn-call-to-action:hover {
    background-color: #0d1245;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.section-divider {
    margin: 60px 0;
    border: 0;
    border-top: 1px solid #eee;
}

.note-box {
    background-color: #fff9e6;
    border-left: 10px solid #ffcc00; /* Moved from right to left for English */
    padding: 25px;
    font-size: 1.1rem;
    margin-top: 40px;
    color: #555;
    border-radius: 0 8px 8px 0;
}



         /* ==================================================================
                    FREE LEGAL AID PAGE END
   ====================================================================== */
  
   
   
   
            /* ==================================================================
                   professional PROFILE PAGE
   ====================================================================== */
   
/* General Page Styling */
body {
    background-color: #f4f7f9;
    margin: 0;
    padding: 0;
}

.profile-wrapper {
    max-width: 1000px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #d1d9e0; /* Defined outer border */
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    font-family: 'Segoe UI', Arial, sans-serif;
}

.profile-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

/* Sidebar Image Styling */
.profile-image-side {
    flex: 0 0 180px;
    text-align: center;
}

.passport-photo {
    width: 180px;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #cccccc; /* Border for photo */
    padding: 4px;
    background: #fff;
}

.plf-id-badge {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 15px;
    background: #f8f9fa;
    color: #002147;
    font-size: 12px;
    font-weight: bold;
    border: 1px solid #d1d9e0; /* Bordered ID badge */
    border-radius: 4px;
}

.verified-text {
    color: #28a745;
    font-weight: bold;
    font-size: 14px;
    margin-top: 10px;
}

/* Information Table Styling */
.profile-info-side {
    flex: 1;
    min-width: 300px;
}

.profile-name {
    margin: 0 0 10px 0;
    font-size: 30px;
    color: #002147;
    border-bottom: 2px solid #c5a059; /* Line under name */
    display: inline-block;
    padding-bottom: 5px;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border: 1px solid #dee2e6; /* Full table border */
}

.info-table td {
    padding: 12px 15px;
    border: 1px solid #dee2e6; /* Cell borders */
    font-size: 15px;
    color: #333;
}

.info-table td strong {
    color: #002147;
}

/* Practice Tags */
.practice-tag {
    display: inline-block;
    margin: 5px 5px 0 0;
    padding: 5px 12px;
    background: #fff;
    color: #007bff;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #007bff; /* Bordered tags */
    border-radius: 4px;
}

/* Contact Buttons */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.btn-wa, .btn-call {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    border: 2px solid rgba(0,0,0,0.1); /* Subtle button border */
}

.btn-wa { background: #25D366; }
.btn-call { background: #c5a059; }

/* Modern Message Card with Borders */
.message-card {
    background: #ffffff;
    border: 1px solid #002147; /* Navy border for emphasis */
    border-radius: 12px;
    padding: 30px;
    margin-top: 35px;
}

.message-card h4 {
    margin-top: 0;
    color: #002147;
    font-size: 22px;
}

.form-input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #adb5bd; /* Clear border on inputs */
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 15px;
}

.form-input:focus {
    outline: none;
    border: 1px solid #c5a059; /* Border changes to gold on click */
    box-shadow: 0 0 5px rgba(197, 160, 89, 0.2);
}

.captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fdfdfd;
    padding: 12px;
    border-radius: 8px;
    margin: 15px 0;
    border: 2px dashed #002147; /* Dashed border for security */
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: #002147;
    color: #fff;
    font-weight: bold;
    border: 1px solid #00152e;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

/* Reviews Section Borders */
.review-card {
    margin-bottom: 15px;
    padding: 20px;
    background: #fff;
    border: 1px solid #dee2e6; /* Bordered review cards */
    border-radius: 8px;
    border-left: 5px solid #c5a059;
}

/* Responsive Fix */
@media (max-width: 600px) {
    .profile-container { flex-direction: column; align-items: center; }
    .contact-grid { grid-template-columns: 1fr; }
}
   
/* ============================================================
   ILF ADVOCATE DIRECTORY - MAIN LAYOUT
   ============================================================ */

/* 1. Page Wrapper: Centers the content on the screen */
.search-results-wrapper {
    background: #f1f4f8; /* Light grey professional background */
    min-height: 100vh;
    padding: 60px 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; 
}

/* 2. Main Container: Adjust width here (currently 100%) */
.search-container-custom {
    width: 100%;        /* Adjust to 80% or 90% if needed */
    max-width: 100%;    /* Limits maximum expansion */
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* 3. Centered Heading & Title */
.results-header-centered {
    text-align: center;
    margin-bottom: 40px;
}

.results-header-centered .results-title {
    color: #002147;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: #c5a059; /* Gold accent color */
    margin: 15px auto;
    border-radius: 2px;
}

.results-header-centered .results-count {
    color: #64748b;
    font-size: 1.1rem;
}




/* ============================================================
                       SEARCH RESULTPAGE
   ============================================================ */

.table-responsive {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
    overflow-x: auto; /* Horizontal scroll for small screens */
}

.professional-table {
    width: 100%;
    border-collapse: collapse; /* Merges borders into single lines */
    background-color: #ffffff;
    border: 2px solid #002147; /* Thick outer border */
}

/* Header Styles */
.professional-table thead {
    background-color: #002147; /* Dark blue legal theme */
}

.professional-table th {
    color: #ffffff;
    padding: 18px 15px;
    text-align: left;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    border: 2px solid #c5a059; /* Gold borders between headers */
}

/* Cell Styles */
.professional-table td {
    padding: 12px 15px;
    border: 1px solid #dee2e6; /* Light grey borders for rows/cols */
    color: #334155;
    vertical-align: middle;
}

/* Zebra Striping & Hover */
.professional-table tbody tr:nth-child(even) {
    background-color: #f2f7b7;
}

.professional-table tbody tr:hover {
    background-color: #fff9f0; /* Light gold highlight on hover */
}

/* ============================================================
   COLUMN WIDTH CONTROL (Adjust % here)
   ============================================================ */

.professional-table th:nth-child(1) { width: 8%; }  /* ID */
.professional-table th:nth-child(2) { width: 90px; } /* Photo */
.professional-table th:nth-child(3) { width: 20%; } /* Name */
.professional-table th:nth-child(4) { width: 12%; } /* City */
.professional-table th:nth-child(5) { width: 12%; } /* Province */
.professional-table th:nth-child(6) { width: 30%; } /* Profession */
.professional-table th:nth-child(7) { width: 10%; } /* Action */

/* ============================================================
   UI ELEMENTS (PHOTO, BADGES, LINKS)
   ============================================================ */

/* Passport Mini Photo */
.passport-mini {
    width: 60px;
    height: 70px;
    border: 1px solid #cbd5e1;
    background: #fff;
    padding: 1px;
    margin: 0 auto;
}

.passport-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ID Cell Emphasis */
.id-cell {
    font-weight: 800;
    color: #002147;
}

/* Province Badge */
.province-badge {
    
    padding: 4px 10px;
    border-radius: 4px;
    color: #002147;
    font-weight: 600;
    font-size: 12px;
    white-space: nowrap;
}

/* Profession Text wrapping */
.profession-cell {
    font-size: 13px;
    line-height: 1.4;
    color: #64748b;
}

/* View Profile Button/Link */
.view-link {
    color: #c5a059;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
}

.view-link:hover {
    border-bottom: 2px solid #c5a059;
}

/* No Data Row */
.no-data {
    text-align: center;
    padding: 60px !important;
    color: #94a3b8;
    font-style: italic;
    font-size: 16px;
}

/* ============================================================
   MOBILE RESPONSIVE SEARCH RESULT PAGE
   ============================================================ */

@media screen and (max-width: 768px) {
    
    /* Make the container full width on mobile */
    .search-container-custom {
        width: 100%;
        padding: 0 10px;
    }

    .results-header-centered .results-title {
        font-size: 1.5rem;
    }

    /* Force the table to stop acting like a table */
    .professional-table, 
    .professional-table thead, 
    .professional-table tbody, 
    .professional-table th, 
    .professional-table td, 
    .professional-table tr { 
        display: block; 
    }

    /* Hide table headers (but keep them for accessibility) */
    .professional-table thead tr { 
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .professional-table tr { 
        margin-bottom: 20px;
        border: 2px solid #002147;
        border-radius: 8px;
        background: #fff;
        padding: 10px;
    }

    .professional-table td { 
        /* Behave  like a "row" */
        border: none;
        border-bottom: 1px solid #eee; 
        position: relative;
        padding-left: 50%; 
        text-align: right;
        min-height: 40px;
    }

    /* Add Labels to the left of the data */
    .professional-table td:before { 
        position: absolute;
        top: 12px;
        left: 15px;
        width: 45%; 
        padding-right: 10px; 
        white-space: nowrap;
        font-weight: bold;
        text-align: left;
        color: #002147;
    }

    /* Column Titles for Mobile */
    .professional-table td:nth-of-type(1):before { content: "PTM ID"; }
    .professional-table td:nth-of-type(2):before { content: "Photo"; }
    .professional-table td:nth-of-type(3):before { content: "Full Name"; }
    .professional-table td:nth-of-type(4):before { content: "City"; }
    .professional-table td:nth-of-type(5):before { content: "Province"; }
    .professional-table td:nth-of-type(6):before { content: "Profession"; }
    .professional-table td:nth-of-type(7):before { content: "Action"; }

    /* Fix the Photo sizing on mobile */
    .passport-mini {
        margin-left: auto; /* Push to the right to align with text */
        margin-right: 0;
    }

    /* Fix the Expertise cell to wrap text correctly on mobile */
    .expertise-cell {
        white-space: normal;
        max-width: 100% !important;
    }
}



/* This hides the "Powered by Google" text to keep your menu clean */
.goog-logo-link {
    display: none !important;
}
.goog-te-gadget {
    color: transparent !important;
}
/* This makes the dropdown the same size as your other menu links */
#google_translate_element select {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    font-family: inherit;
}


