/* ==========================================================================
   1. GLOBAL RESET & BASE STYLES
   ========================================================================== */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    color: #333;
}

/* ==========================================================================
   2. THE GRID LAYOUT (Main Structure)
   ========================================================================== */
.main-layout {
    display: grid;
    grid-template-areas:
        "top top top"
        "left center right"
        "footer footer footer";
    grid-template-columns: 250px 1fr 250px;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
    gap: 20px;
    padding: 15px;
}

/* ==========================================================================
   3. THE TOP BAR (Logo Left, Menu Right, Blue Background)
   ========================================================================== */
.top-bar { 
    grid-area: top; 
    background-color: #0073aa !important; /* Forces the beautiful blue */
    color: white; 
    border-radius: 8px;
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    padding: 10px 40px;
    min-height: 90px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    height: 70px;
    width: auto;
    border-radius: 50%;
    border: 2px solid white;
    background: white;
}

.company-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.company-name {
    font-size: 1.6rem;
    font-weight: bold;
    color: white;
}

.company-subname {
    font-size: 0.9rem;
    color: white;
    opacity: 0.9;
    text-transform: uppercase;
}

/* Menu Items on the Right */
.menu-items {
    display: flex;
    list-style: none;
    gap: 30px;
}

.menu-items a {
    color: white !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: 0.3s;
}

.menu-items a:hover {
    opacity: 0.8;
}

/* ==========================================================================
   4. SIDEBARS & CENTER CONTENT
   ========================================================================== */
/* Update your existing .left-sidebar with more padding */
.left-sidebar { 
    grid-area: left; 
    background: white; 
    padding: 20px 35px; /* Increased left/right padding to 35px */
    border-radius: 8px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
}

/* Hover effect for the Subject list */
.subject-list {
    list-style: none;
    padding-left: 0;
}

.subject-list li {
    margin-bottom: 12px;
}

.subject-list li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
    padding: 5px 0;
}

/* The Magic Hover Effect */
.subject-list li a:hover {
    color: #0073aa; /* Turns Blue */
    padding-left: 8px; /* Slides slightly to the right */
}

/* Logout button styling */
.logout-btn {
    background: #d9534f;
    padding: 6px 15px !important;
    border-radius: 20px;
    color: white !important;
}
.right-sidebar { grid-area: right; background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.center-display { grid-area: center; background: white; padding: 30px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }

/* ==========================================================================
   5. BLOG & COMMENT STYLING (Including Urdu Support)
   ========================================================================== */
.blog-post {
    margin-bottom: 50px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.post-content {
    line-height: 1.8;
    font-size: 1.15rem;
    word-wrap: break-word;
}

/* Individual Comment Box */
.comment {
    margin-bottom: 15px; 
    padding: 15px; 
    background: #ffffff; 
    border-radius: 6px; 
    border-left: 5px solid #28a745; /* The green accent line */
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Forced Urdu Settings for Comments/Posts */
.urdu-text, [lang="ur"], .post-content-urdu {
    font-family: 'Noto Nastaliq Urdu', serif;
    direction: rtl;
    text-align: right;
    line-height: 2.5; /* Essential vertical space for Urdu */
    font-size: 1.35rem;
}

/* ==========================================================================
   6. RESPONSIVE (Mobile)
   ========================================================================== */
@media (max-width: 950px) {
    .main-layout {
        grid-template-areas: "top" "center" "left" "right";
        grid-template-columns: 1fr;
    }
    .top-bar {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 15px;
    }
    .header-left {
        flex-direction: column;
    }
}
/* blue rounded corner div */
.blue-div {
    background: #0073aa;
    color: white; 
    padding: 3px 10px; 
    border-radius: 15px; 
    text-align: center; /* This centers the text */
   /* display: inline-block;  Optional: Use this if you want the blue background to wrap tightly around the text */
}
    
/* font-size:0.75rem; */
/*text-transform: uppercase; */


    