/* ==========================================================================
   Page Background (Optional but recommended for contrast)
   ========================================================================== */
body {
  background-color: #f8fafc; /* Soft gray background taake white card alag nazar aaye */
}

/* ==========================================================================
   Post Detail Main Container (Wide & Professional)
   ========================================================================== */
.post-detail {
  /* Width & Alignment */
  width: 92%;
  max-width: 1200px;                 /* Professional wide layout */
  margin: 36px auto 60px auto;       /* Screen ke center me */
  
  /* Pure White Background & Framing */
  background-color: #ffffff;         /* Pure white background */
  border: 1px solid #e5e7eb;         /* Crisp, clean border */
  border-radius: 12px;               /* Modern rounded corners */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03); /* Soft subtle shadow */
  
  /* Internal Spacing */
  padding: 48px 56px;                /* Spacious desktop padding */
  box-sizing: border-box;

  /* Typography Base */
  color: #374151;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   Post Titles & Meta Info
   -------------------------------------------------------------------------- */
/* Main Category / Page Name (e.g. "Policy") */
.post-detail h1 {
  font-size: 2.35rem;
  font-weight: 800;
  color: #111827;
  margin-top: 0;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

/* Date / Author Meta Info (e.g. "Written by Administrator on 7 Nov...") */
.post-detail .post-meta,
.post-detail p.meta,
.post-detail h1 + p:not(.post-intro) {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

/* Sub-heading / Policy Document Title (H2) */
.post-detail h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
  margin-top: 2.25rem;
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

/* Section Headings (H3) */
.post-detail h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1f2937;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 0.5rem;
}

.post-detail h4,
.post-detail h5,
.post-detail h6 {
  font-weight: 600;
  color: #1f2937;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   Divider Line
   -------------------------------------------------------------------------- */
.post-detail hr,
.post-detail .title-divider {
  border: 0;
  height: 1.5px;
  background-color: #e5e7eb;
  margin: 1.75rem 0 2rem 0;
}

/* --------------------------------------------------------------------------
   Paragraphs & Text Content
   -------------------------------------------------------------------------- */
.post-detail p {
  margin-top: 0;
  margin-bottom: 1.25rem;
  color: #374151;
  word-break: break-word;
}

.post-detail strong,
.post-detail b {
  color: #111827;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Hyperlinks Control
   -------------------------------------------------------------------------- */
.post-detail a {
  color: #15803d;                    /* GreenToday brand green shade ya #2563eb blue */
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: #86efac;     /* Subtle underline */
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: all 0.2s ease;
  overflow-wrap: break-word;
  word-break: break-word;
}

.post-detail a:hover {
  color: #166534;
  text-decoration-color: #166534;
  background-color: #f0fdf4;         /* Soft hover highlight */
  border-radius: 2px;
}

.post-detail a:visited {
  color: #15803d;
}

/* Headings me links normal rahen */
.post-detail h1 a,
.post-detail h2 a,
.post-detail h3 a {
  color: inherit;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Lists (Unordered & Ordered)
   -------------------------------------------------------------------------- */
.post-detail ul,
.post-detail ol {
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding-left: 1.75rem;
}

.post-detail li {
  margin-bottom: 0.65rem;
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   Tables (Full Responsive Width)
   -------------------------------------------------------------------------- */
.post-detail table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
}

.post-detail th,
.post-detail td {
  padding: 12px 18px;
  border-bottom: 1px solid #e5e7eb;
}

.post-detail th {
  background-color: #f9fafb;
  color: #111827;
  font-weight: 600;
  text-align: left;
}

/* --------------------------------------------------------------------------
   Blockquote
   -------------------------------------------------------------------------- */
.post-detail blockquote {
  margin: 1.75rem 0;
  padding: 1rem 1.5rem;
  background-color: #f9fafb;
  border-left: 4px solid #16a34a;    /* Green brand accent border */
  border-radius: 0 8px 8px 0;
  color: #4b5563;
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Mobile & Tablet Responsiveness
   -------------------------------------------------------------------------- */
/* Tablets (under 992px) */
@media (max-width: 992px) {
  .post-detail {
    max-width: 95%;
    padding: 36px 32px;
    margin: 24px auto 40px auto;
  }
}

/* Mobile Screens (under 640px) */
@media (max-width: 640px) {
  .post-detail {
    width: 100%;
    margin: 12px 0 30px 0;
    padding: 24px 18px;              /* Screen space bachaane ke liye tight padding */
    border-radius: 0;                /* Full-bleed card look on mobile */
    border-left: 0;
    border-right: 0;
    box-shadow: none;
  }

  .post-detail h1 {
    font-size: 1.85rem;
  }

  .post-detail h2 {
    font-size: 1.45rem;
  }

  .post-detail h3 {
    font-size: 1.25rem;
  }

  .post-detail ul,
  .post-detail ol {
    padding-left: 1.25rem;
  }
}

/* ==========================================================================
   Post Detail Form & Inputs Control (.post-detail form)
   ========================================================================== */

/* 1. Form Container */
.post-detail form {
    margin-top: 28px;
    max-width: 720px;                  /* Clean readable form width */
    width: 100%;
}

/* 2. Form Groups / Row Spacing (Chahe div ho ya direct text) */
.post-detail .form-group,
.post-detail form > p,
.post-detail form > div {
    margin-bottom: 22px;
    display: block;
}

/* 3. Form Labels */
.post-detail form label {
    display: block;
    color: #1f2937;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

/* 4. All Input Types, Textarea & Select Boxes */
.post-detail form input[type="text"],
.post-detail form input[type="email"],
.post-detail form input[type="url"],
.post-detail form input[type="tel"],
.post-detail form input[type="number"],
.post-detail form input[type="password"],
.post-detail form select,
.post-detail form textarea,
.post-detail .form-control {
    background-color: #ffffff;
    border: 1.5px solid #d1d5db;        /* Clean soft border */
    border-radius: 8px;                /* Modern rounded corners */
    box-sizing: border-box;
    color: #1f2937;
    display: block;
    font-family: inherit;
    font-size: 14.5px;
    line-height: 1.5;
    margin-top: 6px;
    margin-bottom: 18px;               /* Inputs ke darmiyan proper vertical faasla */
    padding: 12px 16px;                /* Comfortable padding */
    transition: all 0.2s ease-in-out;
    width: 100%;                       /* Screen par full width stretch */
    max-width: 100%;
}

/* 5. Inputs Focus State (GreenToday / Portal Blue Glow) */
.post-detail form input:focus,
.post-detail form select:focus,
.post-detail form textarea:focus,
.post-detail .form-control:focus {
    background-color: #ffffff;
    border-color: #246df8;             /* Header button matching blue */
    box-shadow: 0 0 0 4px rgba(36, 109, 248, 0.12); /* Subtle glow effect */
    outline: none;
}

/* 6. Placeholder Text */
.post-detail form input::placeholder,
.post-detail form textarea::placeholder {
    color: #9ca3af;
    font-size: 14px;
}

/* 7. Textarea (Message Box) */
.post-detail form textarea {
    min-height: 140px;                 /* Squeezed chhota box na rahay */
    resize: vertical;                  /* User vertically adjust kar sakay */
}

/* 8. Select Dropdown Box */
.post-detail form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-position: right 14px center;
    background-repeat: no-repeat;
    background-size: 18px;
    padding-right: 42px;
    cursor: pointer;
}

/* 9. Submit Button (Matching Site-Shell Blue Button) */
.post-detail form button[type="submit"],
.post-detail form input[type="submit"],
.post-detail form .btn-submit {
    align-items: center;
    background: #246df8;               /* Header 'Employers / Post Job' matching color */
    border: 1px solid #246df8;
    border-radius: 8px;
    color: #ffffff !important;
    cursor: pointer;
    display: inline-flex;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 600;
    justify-content: center;
    letter-spacing: 0.3px;
    min-height: 44px;
    padding: 12px 32px;
    text-decoration: none;
    text-transform: capitalize;
    transition: all 0.22s ease-in-out;
    width: auto;
    margin-top: 8px;
}

.post-detail form button[type="submit"]:hover,
.post-detail form input[type="submit"]:hover,
.post-detail form .btn-submit:hover {
    background: #1558de;
    border-color: #1558de;
    box-shadow: 0 4px 14px rgba(36, 109, 248, 0.28);
    transform: translateY(-1px);       /* Subtle lift on hover */
}

.post-detail form button[type="submit"]:active,
.post-detail form input[type="submit"]:active {
    transform: translateY(0);
}

/* 10. Mobile Responsiveness */
@media (max-width: 640px) {
    .post-detail form {
        max-width: 100%;
    }

    .post-detail form input,
    .post-detail form select,
    .post-detail form textarea {
        font-size: 15px;               /* Mobile iOS auto-zoom se bachne ke liye */
        padding: 11px 14px;
    }

    .post-detail form button[type="submit"],
    .post-detail form input[type="submit"] {
        width: 100%;                   /* Mobile par full width button */
    }
}


/* ==========================================================================
   Captcha 2-Column Row (.captcha-row)
   ========================================================================== */

/* 1. Two-Column Flex Container */
.post-detail .captcha-row {
    display: flex;
    align-items: center;               /* Vertically dono ko bilkul seedh me rakhega */
    gap: 14px;                         /* Input aur image ke darmiyan faasla */
    margin-top: 6px;
    margin-bottom: 10px;
    width: 100%;
    max-width: 420px;                  /* Captcha ke liye compact professional width */
}

/* 2. Captcha Input Field */
.post-detail .captcha-row input[type="text"] {
    flex: 1;                           /* Input baqi bachi hui jagah fill karega */
    min-width: 140px;
    margin-top: 0 !important;          /* Default margins reset taake image ke barabar aye */
    margin-bottom: 0 !important;
    height: 46px;                      /* Fixed standard height */
    padding: 10px 14px;
    letter-spacing: 2px;               /* Security code type karne ke liye clear spacing */
    font-weight: 600;
}

/* 3. Captcha Image */
.post-detail .captcha-row img {
    height: 46px !important;           /* Input field ke bilkul barabar height */
    width: auto !important;
    max-width: 160px;
    display: block !important;
    margin: 0 !important;              /* Default article image margin reset */
    border: 1.5px solid #d1d5db;        /* Clean matching border */
    border-radius: 8px;                /* Matching rounded corners */
    background-color: #f9fafb;
    object-fit: contain;
    cursor: pointer;                   /* Clickable look (agar refresh hota ho) */
    user-select: none;
}

/* 4. Captcha Info / Error Text (#info_user_captcha_submit#) */
.post-detail .form-group .captcha-info,
.post-detail .form-group span.error,
.post-detail .form-group small {
    display: block;
    color: #ef4444;                    /* Red shade agar error/validation message ho */
    font-size: 13px;
    margin-top: 6px;
}

/* 5. Mobile View */
@media (max-width: 480px) {
    .post-detail .captcha-row {
        max-width: 100%;
        gap: 10px;
    }
    
    .post-detail .captcha-row input[type="text"] {
        min-width: 0;
    }
}