/* ============================================================
   IASRD Home Page — Custom Design
   Light, near-white theme. Loads after stylesheet.css
   ============================================================ */

.iasrd-home {
    --ih-blue: #2c6cb0;
    --ih-blue-dark: #1a4775;
    --ih-green: #1d9e75;
    --ih-ink: #2b3440;
    --ih-muted: #6b7685;
    --ih-line: #e8ebf0;
    --ih-soft: #f5f7fa;
    font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
    color: var(--ih-ink);
}

.iasrd-home h1,
.iasrd-home h2,
.iasrd-home h3,
.iasrd-home h4 { font-family: 'Poppins', sans-serif; margin: 0; }
.iasrd-home p { margin: 0; }
.iasrd-home ul { list-style: none; padding: 0; margin: 0; }

/* ---------- Buttons ---------- */
.iasrd-home .ih-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform .1s, background .15s;
}
.iasrd-home .ih-btn i { margin-right: 2px; }
.iasrd-home .ih-btn-primary { background: var(--ih-blue); color: #fff; box-shadow: 0 3px 10px rgba(44,108,176,0.22); }
.iasrd-home .ih-btn-primary:hover { transform: translateY(-1px); color: #fff; }
.iasrd-home .ih-btn-green { background: var(--ih-green); color: #fff; box-shadow: 0 3px 10px rgba(29,158,117,0.22); }
.iasrd-home .ih-btn-green:hover { transform: translateY(-1px); color: #fff; }
.iasrd-home .ih-btn-block { display: flex; width: 100%; justify-content: center; padding: 10px; font-size: 13px; }

/* ---------- Section label ---------- */
.iasrd-home .ih-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--ih-blue);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ---------- Hero ---------- */
.iasrd-home .ih-hero {
    background: var(--ih-soft);
    padding: 56px 0;
    text-align: center;
    border-bottom: 1px solid var(--ih-line);
}
.iasrd-home .ih-hero-title {
    font-size: 30px;
    font-weight: 600;
    color: var(--ih-blue-dark);
    line-height: 1.3;
    max-width: 720px;
    margin: 0 auto 16px;
}
.iasrd-home .ih-hero-sub {
    font-size: 15px;
    color: var(--ih-muted);
    max-width: 620px;
    margin: 0 auto 28px;
    line-height: 1.7;
}
.iasrd-home .ih-hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Pillars ---------- */
.iasrd-home .ih-pillars { background: #fff; padding: 40px 0; border-bottom: 1px solid var(--ih-line); }
.iasrd-home .ih-pillar { text-align: center; padding: 10px; }
.iasrd-home .ih-pillar-icon {
    width: 54px; height: 54px;
    border-radius: 12px;
    background: var(--ih-soft);
    color: var(--ih-blue);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    margin: 0 auto 14px;
}
.iasrd-home .ih-pillar h3 { font-size: 16px; font-weight: 600; color: var(--ih-ink); margin-bottom: 7px; }
.iasrd-home .ih-pillar p { font-size: 13px; color: var(--ih-muted); line-height: 1.6; }

/* ---------- Journal section ---------- */
.iasrd-home .ih-journal { background: var(--ih-soft); padding: 44px 0; border-bottom: 1px solid var(--ih-line); }
.iasrd-home .ih-journal-head { text-align: center; max-width: 680px; margin: 0 auto; }
.iasrd-home .ih-journal-head h2 { font-size: 24px; font-weight: 600; color: var(--ih-blue-dark); margin-top: 6px; }
.iasrd-home .ih-issn { font-size: 13px; color: var(--ih-blue); font-family: monospace; margin-top: 8px; }
.iasrd-home .ih-journal-desc { font-size: 14px; color: var(--ih-muted); line-height: 1.7; margin: 14px auto 0; }
.iasrd-home .ih-journal-btns { margin-top: 24px; }

/* ---------- Stats ---------- */
.iasrd-home .ih-stats { background: #fff; padding: 28px 0; border-bottom: 1px solid var(--ih-line); }
.iasrd-home .ih-stat { text-align: center; }
.iasrd-home .ih-stat-num { font-size: 28px; font-weight: 600; color: var(--ih-blue); }
.iasrd-home .ih-stat-label { font-size: 11px; color: var(--ih-muted); margin-top: 3px; }

/* ---------- Info cards ---------- */
.iasrd-home .ih-info { background: var(--ih-soft); padding: 36px 0; }
.iasrd-home .ih-card {
    background: #fff;
    border: 1px solid var(--ih-line);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 20px;
    height: calc(100% - 20px);
}
.iasrd-home .ih-card-soft { background: #eef3f8; }
.iasrd-home .ih-card h4 {
    font-size: 14px; font-weight: 600; color: var(--ih-ink);
    margin-bottom: 14px;
    display: flex; align-items: center; gap: 7px;
}
.iasrd-home .ih-card h4 i { color: var(--ih-blue); }
.iasrd-home .ih-card p { font-size: 12px; color: var(--ih-muted); line-height: 1.65; }
.iasrd-home .ih-issn-box { background: var(--ih-soft); border-radius: 7px; padding: 10px 12px; margin-bottom: 10px; }
.iasrd-home .ih-issn-label { display: block; font-size: 11px; color: var(--ih-muted); }
.iasrd-home .ih-issn-num { font-size: 14px; font-weight: 600; color: var(--ih-blue); font-family: monospace; }
.iasrd-home .ih-index li {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--ih-line);
    border-radius: 7px;
    margin-bottom: 6px;
    font-size: 12px;
    color: var(--ih-ink);
}
.iasrd-home .ih-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.iasrd-home .ih-dot-on { background: #1d9e75; }
.iasrd-home .ih-dot-pending { background: #ef9f27; }
.iasrd-home .ih-status { margin-left: auto; font-size: 11px; }
.iasrd-home .ih-status.ih-on { color: #0f6e56; }
.iasrd-home .ih-status.ih-pending { color: #854f0b; }

/* ---------- Trainings ---------- */
.iasrd-home .ih-trainings { background: #fff; padding: 44px 0; border-top: 1px solid var(--ih-line); border-bottom: 1px solid var(--ih-line); }
.iasrd-home .ih-trainings-head { text-align: center; max-width: 640px; margin: 0 auto 28px; }
.iasrd-home .ih-trainings-head h2 { font-size: 24px; font-weight: 600; color: var(--ih-blue-dark); margin-top: 6px; }
.iasrd-home .ih-trainings-head p { font-size: 14px; color: var(--ih-muted); line-height: 1.7; margin-top: 12px; }
.iasrd-home .ih-course {
    background: #fff;
    border: 1px solid var(--ih-line);
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 20px;
    transition: border-color .15s, box-shadow .15s;
    height: calc(100% - 20px);
}
.iasrd-home .ih-course:hover { border-color: #b9cde2; box-shadow: 0 3px 12px rgba(20,40,80,0.06); }
.iasrd-home .ih-course-icon {
    width: 50px; height: 50px;
    border-radius: 12px;
    background: #e3f4ee;
    color: var(--ih-green);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    margin-bottom: 14px;
}
.iasrd-home .ih-course h4 { font-size: 16px; font-weight: 600; color: var(--ih-ink); margin-bottom: 8px; }
.iasrd-home .ih-course p { font-size: 13px; color: var(--ih-muted); line-height: 1.6; margin-bottom: 14px; }
.iasrd-home .ih-course-meta { font-size: 12px; color: var(--ih-muted); }
.iasrd-home .ih-course-meta span { margin-right: 16px; }
.iasrd-home .ih-course-meta i { color: var(--ih-blue); margin-right: 4px; }
.iasrd-home .ih-trainings-cta { text-align: center; margin-top: 8px; }

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
    .iasrd-home .ih-hero-title { font-size: 23px; }
    .iasrd-home .ih-stat-num { font-size: 22px; }
    .iasrd-home .ih-card { height: auto; }
    .iasrd-home .ih-course { height: auto; }
}

/* ---------- Header navigation fix ---------- */
.nav > li.open > a,
.nav > li.open > a:hover,
.nav > li.open > a:focus,
.nav > li.active > a {
    background-color: #eef2f7 !important;
    color: #06066b !important;
    border-radius: 5px;
}
.nav > li > a:hover,
.nav > li > a:focus {
    background-color: #eef2f7 !important;
    color: #06066b !important;
}
.dropdown-menu {
    border: 1px solid #e8ebf0;
    box-shadow: 0 4px 14px rgba(20,40,80,0.10);
    border-radius: 8px;
    padding: 6px;
}
.dropdown-menu > li > a {
    color: #2b3440 !important;
    padding: 8px 14px;
    border-radius: 6px;
}
.dropdown-menu > li > a:hover {
    background-color: #eef2f7 !important;
    color: #06066b !important;
}

/* ---------- Stronger dropdown toggle open-state fix ---------- */
.navbar-nav > li.open > a.dropdown-toggle,
.navbar-nav > li.open > a.dropdown-toggle:hover,
.navbar-nav > li.open > a.dropdown-toggle:focus,
.navbar .nav > li.open > a,
.navbar .nav > li.open > a:hover,
.navbar .nav > li.open > a:focus {
    background-color: #eef2f7 !important;
    background-image: none !important;
    color: #06066b !important;
}

/* ---------- Override stylesheet.css navy open-state ---------- */
.nav .open>a,
.nav .open>a:focus,
.nav .open>a:hover {
    background-color: #eef2f7 !important;
    border-color: #e8ebf0 !important;
    color: #06066b !important;
}
