/*
Theme Name:  ACCMAN Institute
Theme URI:   https://accman.in
Author:      ACCMAN Institute
Author URI:  https://accman.in
Description: Official WordPress theme for ACCMAN Institute of Management. Built with Tailwind CSS, featuring a modern design with red/dark brand colors, responsive navigation, and blog layout.
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: accman
Tags:        education, blog, custom-header, custom-menu, featured-images, threaded-comments, responsive-layout
*/

/* ============================================================
   BASE / RESET
   (Tailwind is loaded via CDN in header.php — this file holds
   any WordPress-specific overrides and custom utility styles.)
   ============================================================ */

/* Align WordPress admin bar with sticky header */
.admin-bar header.sticky {
    top: 32px;
}
@media screen and (max-width: 782px) {
    .admin-bar header.sticky {
        top: 46px;
    }
}

/* ---- WordPress Core Alignment Classes ---- */
.alignleft  { float: left;  margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin: 0 auto 1em; }
.alignwide   { margin-left: -2rem; margin-right: -2rem; }
.alignfull   { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); width: 100vw; max-width: 100vw; }

/* ---- Screen-reader text ---- */
.screen-reader-text {
    border: 0; clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%); height: 1px; margin: -1px;
    overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.hero-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.text-stroke {
    -webkit-text-stroke: 1px white;
    color: transparent;
}
.h-15{
    height: 3.5rem;
}
p{text-align:justify !important}
.hero {
    background:
        linear-gradient(180deg, rgba(40,8,14,.55) 0%, rgba(122,26,43,.65) 100%),
        url('https://accman.in/assets/img/maxresdefault-1.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero-overlay {
background:
    radial-gradient(900px 500px at 25% 50%, rgba(214,40,57,.35), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,0) 60%);
}
/* ---- Post / Page content typography ---- */
.entry-content h1, .entry-content h2, .entry-content h3,
.entry-content h4, .entry-content h5, .entry-content h6 {
    font-family: 'Manrope', 'Inter', sans-serif;
    font-weight: 700;
    color: #0f172a;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}
.entry-content p   { margin-bottom: 1.25em; color: #334155; line-height: 1.8; }
.entry-content ul,
.entry-content ol  { padding-left: 1.5em; margin-bottom: 1.25em; color: #334155; }
.entry-content li  { margin-bottom: 0.4em; }
.entry-content a   { color: #e31e24; text-decoration: underline; }
.entry-content a:hover { color: #b3171b; }
.entry-content blockquote {
    border-left: 4px solid #e31e24; padding-left: 1.25em;
    margin: 1.5em 0; color: #64748b; font-style: italic;
}
.entry-content img { max-width: 100%; height: auto; border-radius: 0.5rem; }
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; }
.entry-content th, .entry-content td {
    border: 1px solid #e2e8f0; padding: 0.6em 0.9em; text-align: left;
}
.entry-content th { background: #f8fafc; font-weight: 700; }

/* ---- WP Comment form ---- */
#respond .comment-form-comment textarea,
#respond input[type="text"],
#respond input[type="email"],
#respond input[type="url"] {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.6em 0.9em;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color .2s;
}
#respond input:focus,
#respond textarea:focus { border-color: #e31e24; }

#respond input[type="submit"] {
    background: #e31e24; color: #fff;
    border: none; border-radius: 9999px;
    padding: 0.65em 2em; font-weight: 700;
    cursor: pointer; transition: background .2s;
}
#respond input[type="submit"]:hover { background: #b3171b; }

/* ---- Pagination ---- */
.pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.25rem; height: 2.25rem; border-radius: 50%;
    border: 1px solid #e2e8f0; margin: 0 2px;
    font-size: 0.875rem; font-weight: 600; color: #334155;
    text-decoration: none; transition: all .2s;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #e31e24; color: #fff; border-color: #e31e24;
}
/* ================================================
   WordPress Comment Section — Custom Styles
   Paste into Appearance > Customize > Additional CSS
   or your theme's style.css
   ================================================ */

/* --- Typography --- */
.comments-area,
.comment-respond {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- Comments Title --- */
.comments-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 2rem;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 12px;
}

.comments-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e5e5;
}

/* --- Comment List --- */
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 3rem;
}

.comment-list .children {
  list-style: none;
  padding-left: 3.5rem;
  margin: 0;
  border-left: 2px solid #f0f0f0;
}

/* --- Individual Comment --- */
.comment-body {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0 14px;
  padding: 1.25rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.comment-list > li:last-child > .comment-body {
  border-bottom: none;
}

/* --- Avatar --- */
.comment-author .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #e5e5e5;
  object-fit: cover;
}

/* --- Author Name --- */
.comment-author b {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a1a;
}

.comment-author b a {
  color: inherit;
  text-decoration: none;
}

.comment-author b a:hover {
  text-decoration: underline;
}

/* --- Metadata (date, edit link) --- */
.comment-metadata {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 3px 0 10px;
}

.comment-metadata a {
  font-size: 0.8rem;
  color: #888;
  text-decoration: none;
  transition: color 0.15s;
}

.comment-metadata a:hover {
  color: #1a1a1a;
}

.edit-link a {
  font-size: 0.75rem;
  padding: 2px 9px;
  border-radius: 6px;
  background: #f5f5f5;
  color: #666;
  text-decoration: none;
  border: 1px solid #e5e5e5;
  transition: background 0.15s;
}

.edit-link a:hover {
  background: #ebebeb;
}

/* --- Comment Text --- */
.comment-content p {
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 0 0 0.75rem;
  color: #333;
}

.comment-content p:last-child {
  margin-bottom: 0;
}

/* --- Reply Link --- */
.reply {
  margin-top: 0.5rem;
}

.comment-reply-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: #888;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 0;
  transition: color 0.15s;
}

.comment-reply-link:hover {
  color: #1a1a1a;
}

/* --- Comment Form Wrapper --- */
.comment-respond {
  padding: 1.75rem 2rem;
  background: #f9f9f8;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
}

/* --- Reply Title --- */
#reply-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: #1a1a1a;
}

/* --- Logged-in Message --- */
.logged-in-as {
  font-size: 0.85rem;
  color: #888;
  margin: 0 0 1rem;
  line-height: 1.6;
}

.logged-in-as a {
  color: #666;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.logged-in-as a:hover {
  color: #1a1a1a;
}

/* --- Required Field Note --- */
.comment-notes,
.required-field-message {
  font-size: 0.8rem;
  color: #aaa;
  margin: 0 0 1.25rem;
}

.required {
  color: #c0392b;
  margin-left: 2px;
}

/* --- Labels --- */
.comment-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #555;
  margin-bottom: 6px;
}

/* --- Textarea & Inputs --- */
.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 10px 14px;
  background: #ffffff;
  color: #1a1a1a;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  resize: vertical;
}

.comment-form textarea {
  min-height: 130px;
}

.comment-form textarea:focus,
.comment-form input:focus {
  border-color: #aaa;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.comment-form-comment {
  margin-bottom: 1rem;
}

/* --- Two-column row for Name + Email --- */
.comment-form-author,
.comment-form-email {
  display: inline-block;
  width: calc(50% - 8px);
  vertical-align: top;
}

.comment-form-author {
  margin-right: 12px;
}

/* --- Submit Button --- */
.form-submit {
  margin-top: 1.25rem;
}

#submit {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px 24px;
  background: #1a1a1a;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}

#submit:hover {
  opacity: 0.8;
}

#submit:active {
  transform: scale(0.98);
}

/* --- Awaiting Moderation Badge --- */
.comment-awaiting-moderation {
  display: inline-block;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 6px;
  background: #fff8e1;
  color: #a07000;
  border: 1px solid #ffe082;
  margin-bottom: 6px;
}

/* --- Cancel Reply Link --- */
#cancel-comment-reply-link {
  font-size: 0.85rem;
  color: #888;
  text-decoration: none;
  margin-left: 8px;
}

#cancel-comment-reply-link:hover {
  color: #1a1a1a;
}

/* --- No Comments Message --- */
.no-comments {
  font-size: 0.95rem;
  color: #888;
  padding: 1.5rem 0;
  text-align: center;
}