/*
 * Elkuator Saul Theme - Production CSS
 * File: plugins/themes/elkuatorsaul/styles/child.css
 * Scope: OJS 3.4 portal theme, responsive desktop/tablet/mobile
 * Notes: Uses stable iainptk-* class contract used by TPL and JS.
 */

:root {
    --iainptk-blue: #1f4f91;
    --iainptk-green: #297839;
    --iainptk-gold: #f4c542;
    --iainptk-bg: #f5f7fb;
    --iainptk-text: #1f2937;
    --iainptk-muted: #6b7280;
    --iainptk-line: #e5e7eb;
    --iainptk-white: #ffffff;
}

/* =========================================================
   BASE / OJS STRUCTURE RESET
   ========================================================= */

html,
body {
    margin: 0;
    padding: 0;
    background: var(--iainptk-bg);
}

body.pkp_page_index,
body.pkp_page_search,
body.pkp_page_login,
body.pkp_page_user,
.iainptk-homepage,
.iainptk-journal-section {
    background: var(--iainptk-bg);
}

.pkp_structure_page,
.pkp_structure_content,
.pkp_structure_main {
    width: 100%;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.pkp_structure_content,
.pkp_structure_main {
    float: none !important;
}

.pkp_structure_sidebar,
.pkp_site_nav_menu,
.pkp_navigation_primary_row,
.pkp_navigation_user_wrapper,
.pkp_site_name_wrapper,
.pkp_site_nav_toggle,
.page_index_site .cmp_journals,
.page_index_site .homepage_image,
.page_index_site .additional_content,
.pkp_structure_footer_wrapper,
.pkp_structure_footer {
    display: none !important;
}

.iainptk-header *,
.iainptk-header *::before,
.iainptk-header *::after,
.iainptk-hero *,
.iainptk-hero *::before,
.iainptk-hero *::after,
.iainptk-journal-section *,
.iainptk-journal-section *::before,
.iainptk-journal-section *::after,
.iainptk-page-card *,
.iainptk-page-card *::before,
.iainptk-page-card *::after,
.iainptk-statistics-section *,
.iainptk-statistics-section *::before,
.iainptk-statistics-section *::after,
.iainptk-footer-wrapper *,
.iainptk-footer-wrapper *::before,
.iainptk-footer-wrapper *::after {
    box-sizing: border-box;
}

.fa::before,
.fa::after {
    display: inline-block !important;
}

/* Remove stray structure lines */
body.pkp_page_index .pkp_structure_content,
body.pkp_page_index .pkp_structure_main,
body.pkp_page_index .page_index_site,
body.pkp_page_index .iainptk-journal-section,
body.pkp_page_index .iainptk-section-container,
body.pkp_page_index .iainptk-toolbar,
body.pkp_page_index .iainptk-journal-grid,
body.pkp_page_index .iainptk-filter-tabs,
body.pkp_page_user .pkp_structure_content,
body.pkp_page_user .pkp_structure_main,
body.pkp_page_login .pkp_structure_content,
body.pkp_page_login .pkp_structure_main,
body.pkp_page_search .pkp_structure_content,
body.pkp_page_search .pkp_structure_main {
    border-left: none !important;
    border-right: none !important;
    outline: none !important;
    box-shadow: none !important;
}

body.pkp_page_index .pkp_structure_content::before,
body.pkp_page_index .pkp_structure_content::after,
body.pkp_page_index .pkp_structure_main::before,
body.pkp_page_index .pkp_structure_main::after,
body.pkp_page_index .page_index_site::before,
body.pkp_page_index .page_index_site::after,
body.pkp_page_index .iainptk-journal-section::before,
body.pkp_page_index .iainptk-journal-section::after,
body.pkp_page_index .iainptk-section-container::before,
body.pkp_page_index .iainptk-section-container::after,
body.pkp_page_index .iainptk-toolbar::before,
body.pkp_page_index .iainptk-toolbar::after,
body.pkp_page_index .iainptk-journal-grid::before,
body.pkp_page_index .iainptk-journal-grid::after,
body.pkp_page_user .pkp_structure_content::before,
body.pkp_page_user .pkp_structure_content::after,
body.pkp_page_user .pkp_structure_main::before,
body.pkp_page_user .pkp_structure_main::after,
body.pkp_page_login .pkp_structure_content::before,
body.pkp_page_login .pkp_structure_content::after,
body.pkp_page_login .pkp_structure_main::before,
body.pkp_page_login .pkp_structure_main::after,
body.pkp_page_search .pkp_structure_content::before,
body.pkp_page_search .pkp_structure_content::after,
body.pkp_page_search .pkp_structure_main::before,
body.pkp_page_search .pkp_structure_main::after {
    content: none !important;
    display: none !important;
}

body.pkp_page_index .page_index_site hr,
body.pkp_page_index .iainptk-journal-section hr,
body.pkp_page_index .iainptk-section-container hr {
    display: none !important;
}

/* =========================================================
   HEADER
   ========================================================= */

.pkp_structure_head {
    background: #ffffff !important;
    border-bottom: 1px solid #e7ebf3;
}

.iainptk-header {
    background: #ffffff;
}

.iainptk-container,
.iainptk-section-container,
.iainptk-footer-container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}

.iainptk-container {
    padding-top: 8px;
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.iainptk-brand {
    flex: 0 0 auto;
}

.iainptk-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.iainptk-logo {
    max-height: 48px;
    width: auto;
    display: block;
}

.iainptk-title-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--iainptk-green);
}

.iainptk-brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.15;
}

.iainptk-brand-title {
    color: #111827;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.iainptk-brand-subtitle {
    margin-top: 3px;
    color: #4b5563;
    font-size: 14px;
    font-weight: 700;
}

.iainptk-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 14px;
    row-gap: 12px;
    margin-left: auto;
}

.iainptk-nav > a,
.iainptk-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 42px;
    padding: 0 2px;
    color: var(--iainptk-green);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
}

.iainptk-nav > a:hover,
.iainptk-dropdown-toggle:hover {
    color: var(--iainptk-gold);
}

.iainptk-nav > a .fa,
.iainptk-dropdown-toggle .fa {
    color: currentColor;
    font-size: 12px;
    line-height: 1;
    display: inline-block;
    width: 14px;
    text-align: center;
    position: relative;
    top: -1px;
}

/* =========================================================
   DROPDOWN
   ========================================================= */

.iainptk-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.iainptk-caret {
    font-size: 10px;
    position: relative;
    top: -1px;
}

.iainptk-dropdown-menu {
    display: none;
    position: absolute;
    top: 42px;
    left: 0;
    min-width: 340px;
    max-height: 430px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(41, 120, 57, 0.16);
    padding: 8px 0;
    list-style: none;
    margin: 0;
    z-index: 9999;
}

.iainptk-dropdown-menu li {
    margin: 0;
    padding: 0;
}

.iainptk-dropdown-menu li a {
    display: block;
    padding: 11px 16px;
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.45;
}

.iainptk-dropdown-menu li a:hover {
    background: rgba(41, 120, 57, 0.08);
    color: var(--iainptk-green);
}

.iainptk-dropdown.is-open .iainptk-dropdown-menu {
    display: block;
}

/* =========================================================
   HERO
   ========================================================= */

.iainptk-hero {
    position: relative;
    overflow: hidden;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.88), rgba(41,120,57,0.20)),
        url("../images/lines.jpg") center center / cover no-repeat;
}

.iainptk-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(255,255,255,0.35), rgba(41,120,57,0.12)),
        radial-gradient(circle at top right, rgba(244,197,66,0.18), transparent 32%);
    pointer-events: none;
}

.iainptk-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 44px 24px 52px;
    text-align: center;
}

.iainptk-hero-title {
    margin: 0 0 28px;
    color: var(--iainptk-green);
    font-size: 38px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.iainptk-hero-subtitle {
    margin: -12px auto 0;
    max-width: 780px;
    color: #374151;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.6;
}

.iainptk-hero-search {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    position: relative;
}

.iainptk-hero-search input {
    width: 100%;
    height: 58px;
    border: 1px solid #d8dfeb;
    border-radius: 14px;
    padding: 0 64px 0 20px;
    font-size: 16px;
    color: #334155;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(41, 120, 57, 0.08);
}

.iainptk-hero-search input:focus {
    outline: none;
    border-color: var(--iainptk-green);
    box-shadow: 0 0 0 4px rgba(41, 120, 57, 0.12);
}

.iainptk-hero-search button {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--iainptk-green);
    font-size: 18px;
    cursor: pointer;
    padding: 0;
}

/* =========================================================
   JOURNAL SECTION / FILTERS
   ========================================================= */

.iainptk-journal-section {
    padding: 22px 0 0;
}

.iainptk-filter-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    border-bottom: 1px solid #e4e9f2;
    padding-bottom: 14px;
    margin-bottom: 18px;
}

.iainptk-tab-btn {
    background: none;
    border: none;
    color: #4b5563;
    font-size: 15px;
    font-weight: 700;
    padding: 8px 0;
    cursor: pointer;
    border-bottom: 3px solid transparent;
}

.iainptk-tab-btn:hover,
.iainptk-tab-btn.is-active {
    color: var(--iainptk-green);
    border-bottom-color: var(--iainptk-gold);
}

.iainptk-toolbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 2px;
}

.iainptk-count-wrap {
    font-size: 14px;
    color: var(--iainptk-muted);
}

.iainptk-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
    background: rgba(244,197,66,0.15);
    color: #8a6400;
    border: 1px solid rgba(244,197,66,0.45);
    border-radius: 999px;
    padding: 4px 10px;
    font-weight: 700;
    font-size: 13px;
}

.iainptk-toolbar-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.iainptk-toolbar-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.iainptk-toolbar-item label {
    font-weight: 700;
    color: #374151;
}

.iainptk-toolbar-item select {
    min-width: 260px;
    min-height: 42px;
    border: 1px solid #d6deea;
    border-radius: 10px;
    background: #ffffff;
    color: #1f2937;
    padding: 0 12px;
    font-size: 14px;
}

/* =========================================================
   JOURNAL GRID / CARDS - PRODUCTION EQUAL HEIGHT + AUTO CENTER
   Notes:
   - Uses flex-wrap with justify-content:center so filtered results
     (Scopus/DOAJ/Sinta/Faculty) stay centered after JS hides cards.
   - Fixed card, cover, and title areas keep every card equal size.
   ========================================================= */

.iainptk-journal-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.iainptk-journal-card {
    flex: 0 0 calc((100% - 40px) / 6);
    display: flex;
    flex-direction: column;
    width: calc((100% - 40px) / 6);
    min-width: 0;
    max-width: calc((100% - 40px) / 6);
    height: 340px;
    margin: 0;
    background: #ffffff;
    border: 1px solid #edf1f7;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(41, 120, 57, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.iainptk-journal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(41, 120, 57, 0.12);
}

.iainptk-journal-card-link {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
    box-sizing: border-box;
}

.iainptk-journal-thumb,
.iainptk-journal-cover {
    position: relative;
    flex: 0 0 245px;
    width: 100%;
    height: 245px;
    padding: 8px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
}

.iainptk-journal-thumb img,
.iainptk-journal-cover img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
}

.iainptk-journal-thumb-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(41,120,57,0.10), rgba(244,197,66,0.14));
    display: flex;
    align-items: center;
    justify-content: center;
}

.iainptk-journal-thumb-placeholder span {
    font-size: 42px;
    font-weight: 800;
    color: var(--iainptk-green);
    text-transform: uppercase;
}

.iainptk-journal-body {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    padding: 8px 14px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    box-sizing: border-box;
}

.iainptk-journal-title {
    display: -webkit-box;
    width: 100%;
    margin: 0 !important;
    color: #111827;
    font-size: 14px !important;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

p.iainptk-journal-desc,
.iainptk-journal-desc {
    display: none;
}


/* =========================================================
   INDEXER BADGES
   ========================================================= */

.iainptk-card-badges {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: calc(100% - 20px);
    z-index: 3;
}

.iainptk-badge-group {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 4px 7px;
    border-radius: 999px;
    background: #ffffff;
    border: 2px solid var(--iainptk-gold);
    box-shadow: 0 4px 12px rgba(0,0,0,0.14);
}

.iainptk-badge-img-wrap {
    display: none;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: hidden;
    position: relative;
}

.iainptk-badge-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
}

.iainptk-sinta-combo {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.iainptk-sinta-combo .iainptk-badge-img-wrap {
    display: inline-flex;
}

.iainptk-sinta-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    min-width: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--iainptk-blue);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.iainptk-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.iainptk-badge-indexer {
    background: rgba(41,120,57,0.08);
    color: var(--iainptk-green);
    border: 1px solid rgba(41,120,57,0.20);
}

.iainptk-badge-sinta {
    background: rgba(244,197,66,0.14);
    color: #8a6400;
    border: 1px solid rgba(244,197,66,0.35);
}

.iainptk-empty-state {
    text-align: center;
    background: #ffffff;
    border: 1px dashed #d1d5db;
    border-radius: 16px;
    padding: 40px 20px;
    color: #6b7280;
}

/* =========================================================
   SIMPLE PORTAL PAGE CARD
   ========================================================= */

.iainptk-page-card {
    background: #ffffff;
    border: 1px solid #edf1f7;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(41, 120, 57, 0.06);
    padding: 42px;
    max-width: 900px;
    margin: 0 auto 22px;
}

.iainptk-page-card h1 {
    color: var(--iainptk-green);
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 18px;
}

.iainptk-page-card p {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
    text-align: justify;
}

/* =========================================================
   ABOUT PAGE
   ========================================================= */

.iainptk-about-section {
    padding: 40px 0 0;
}

.iainptk-about-master-card {
    max-width: 1120px;
    margin: 0 auto 28px;
    padding: 44px;
    background: #ffffff;
    border: 1px solid #edf1f7;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(41, 120, 57, 0.06);
}

.iainptk-about-intro {
    margin-bottom: 44px;
}

.iainptk-about-intro h1 {
    margin: 0 0 14px;
    color: var(--iainptk-green);
    font-size: 34px;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
}

.iainptk-about-intro p {
    color: #374151;
    font-size: 15.5px;
    line-height: 1.85;
    text-align: justify;
    margin: 0 0 18px;
}

.iainptk-about-lead {
    margin: 0 0 24px !important;
    color: var(--iainptk-green) !important;
    font-size: 18px !important;
    font-weight: 800;
    line-height: 1.6 !important;
    text-align: center !important;
}

.iainptk-org-panel {
    padding-top: 8px;
    margin-bottom: 44px;
    text-align: center;
}

.iainptk-org-panel h2 {
    margin: 0 0 28px;
    color: #111827;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.35;
    text-align: center;
}

.iainptk-org-tree {
    margin-top: 28px;
}

.iainptk-org-tree-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.iainptk-org-tree-vertical .iainptk-org-person {
    width: 244px;
    min-height: 230px;
    padding: 18px;
    border: 1px solid rgba(16, 56, 82, 0.16);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(12, 31, 45, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.iainptk-org-tree-vertical .iainptk-org-photo {
    width: 88px;
    height: 88px;
    margin: 0 auto 14px;
    border-radius: 50%;
    overflow: hidden;
    background: #eef4f8;
    border: 4px solid #f4f8fb;
    box-shadow: 0 8px 20px rgba(12, 31, 45, 0.10);
}

.iainptk-org-tree-vertical .iainptk-org-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.iainptk-org-tree-vertical .iainptk-org-info {
    min-height: auto;
    padding: 2px;
    text-align: center;
}

.iainptk-org-tree-vertical .iainptk-org-info h3 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}

.iainptk-org-tree-vertical .iainptk-org-info p {
    margin: 0;
    color: #4b5563;
    font-size: 11px;
    line-height: 1.55;
    font-weight: 600;
    text-align: center;
}

.iainptk-org-tree-vertical .iainptk-org-connector {
    width: 2px;
    height: 34px;
    margin: 0 auto;
    background: linear-gradient(to bottom, rgba(41,120,57,0.18), rgba(41,120,57,0.48));
}

.iainptk-about-master-card .iainptk-vision-mission-grid {
    max-width: none;
    margin: 0;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 24px;
}

.iainptk-about-master-card .iainptk-vm-card {
    height: 100%;
    padding: 30px;
    border: 1px solid #d9e1ea;
    border-radius: 16px;
    background: #f8fafc;
    box-shadow: none;
}

.iainptk-about-master-card .iainptk-vm-card h2 {
    margin: 0 0 14px;
    color: #111827;
    font-size: 26px;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
}

.iainptk-about-master-card .iainptk-vm-card p,
.iainptk-about-master-card .iainptk-vm-card li {
    color: #1f2937;
    font-size: 14.5px;
    line-height: 1.8;
}

.iainptk-about-master-card .iainptk-vm-card p {
    margin: 0;
}

.iainptk-about-master-card .iainptk-vm-card ol {
    margin: 0;
    padding-left: 22px;
}

.iainptk-about-master-card .iainptk-vm-card li {
    margin-bottom: 10px;
}

.iainptk-about-section > .iainptk-section-container > .iainptk-about-card,
.iainptk-about-section > .iainptk-section-container > .iainptk-org-card {
    display: none;
}

/* =========================================================
   ANNOUNCEMENT PAGE
   ========================================================= */

.iainptk-announcement-section {
    padding: 40px 0 56px;
    background: var(--iainptk-bg);
}

.iainptk-announcement-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    max-width: 1160px;
    min-width: 0;
    margin: 0 auto;
    box-sizing: border-box;
}

.iainptk-announcement-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    background: #ffffff;
    border: 1px solid #d6e3ef;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(41, 120, 57, 0.05);
    padding: 26px;
    min-height: 230px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.iainptk-announcement-card:hover {
    transform: translateY(-3px);
    border-color: rgba(41, 120, 57, 0.35);
    box-shadow: 0 16px 34px rgba(41, 120, 57, 0.11);
}

.iainptk-announcement-label {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-bottom: 16px;
    color: var(--iainptk-green);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    line-height: 1.3;
    text-transform: uppercase;
    white-space: normal;
    overflow-wrap: anywhere;
}

.iainptk-announcement-card h2 {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 0 14px;
    color: #111827;
    font-size: 21px;
    font-weight: 900;
    line-height: 1.35;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.iainptk-announcement-card h2 a {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    color: inherit;
    text-decoration: none;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.iainptk-announcement-card h2 a:hover {
    color: var(--iainptk-green);
}

.iainptk-announcement-card p {
    margin: 0 0 18px;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.7;
    flex: 1 1 auto;
}

.iainptk-announcement-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    max-width: 100%;
    min-width: 0;
    margin-bottom: 12px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
    white-space: normal;
    overflow-wrap: anywhere;
}

.iainptk-announcement-meta .fa {
    color: var(--iainptk-green);
    font-size: 12px;
}

.iainptk-announcement-link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    max-width: 100%;
    margin-top: auto;
    color: var(--iainptk-green);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.35;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: anywhere;
}

.iainptk-announcement-link:hover {
    color: var(--iainptk-gold);
}

/* =========================================================
   STATISTICS PAGE - CLEAN FINAL
   ========================================================= */

.iainptk-statistics-section {
    padding: 44px 0 72px;
    background: var(--iainptk-bg);
    overflow-x: hidden;
}

.iainptk-statistics-section .iainptk-section-container {
    max-width: 1240px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.iainptk-stat-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 36px;
}

.iainptk-stat-card {
    background: #ffffff;
    border: 1px solid #edf1f7;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(41,120,57,0.07);
    padding: 24px 18px;
    text-align: center;
}

.iainptk-stat-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 12px;
    border-radius: 999px;
    background: rgba(41,120,57,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.iainptk-stat-card strong {
    display: block;
    color: #111827;
    font-size: 30px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 6px;
}

.iainptk-stat-card span {
    display: block;
    color: #4b5563;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.iainptk-chart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
    margin-bottom: 28px;
}

.iainptk-chart-card {
    width: 100%;
    min-width: 0;
    overflow: visible !important;
    background: #ffffff;
    border: 1px solid #edf1f7;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(41,120,57,0.07);
    padding: 28px;
    margin-bottom: 28px;
}

.iainptk-chart-card h2 {
    margin: 0 0 24px;
    color: #111827;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.35;
}

.iainptk-chart-card canvas {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: 335px !important;
}

.iainptk-chart-grid .iainptk-chart-card canvas {
    height: 345px !important;
}

.iainptk-chart-wide canvas {
    height: 395px !important;
}

.iainptk-chart-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 18px;
    margin-top: 12px;
    padding: 0 8px;
    max-width: 100%;
    position: relative;
    z-index: 2;
}

.iainptk-chart-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #4b5563;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.iainptk-chart-legend-swatch {
    display: inline-block;
    width: 16px;
    height: 9px;
    border-radius: 2px;
    flex: 0 0 auto;
}


/* =========================================================
   HTML STACKED BAR CHART - PRECISE TOOLTIP
   ========================================================= */

.iainptk-html-chart-card {
    overflow: visible !important;
}

.iainptk-html-bar-chart {
    width: 100%;
    overflow: visible;
}

.iainptk-html-bar-inner {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 8px 0 0;
}

.iainptk-html-bar-row {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    min-height: 42px;
    margin-bottom: 10px;
}

.iainptk-html-bar-label {
    color: #4b5563;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    text-align: right;
}

.iainptk-html-bar-track {
    position: relative;
    display: flex;
    width: 100%;
    height: 30px;
    background:
        repeating-linear-gradient(
            to right,
            rgba(229, 231, 235, 0.85) 0,
            rgba(229, 231, 235, 0.85) 1px,
            transparent 1px,
            transparent 12.5%
        );
    border-bottom: 1px solid #d1d5db;
    overflow: visible;
}

.iainptk-html-bar-segment {
    position: relative;
    height: 100%;
    min-width: 1px;
    cursor: default;
}

.iainptk-html-bar-segment:hover {
    filter: brightness(0.96);
}

.iainptk-html-tooltip {
    display: none;
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    min-width: 180px;
    max-width: 300px;
    padding: 9px 10px;
    border-radius: 6px;
    background: rgba(17, 24, 39, 0.94);
    color: #ffffff;
    box-shadow: 0 12px 26px rgba(0,0,0,0.20);
    z-index: 99;
    pointer-events: none;
    font-size: 12px;
    line-height: 1.35;
    white-space: normal;
}

.iainptk-html-tooltip::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(17, 24, 39, 0.94);
}

.iainptk-html-tooltip strong {
    display: block;
    margin-bottom: 5px;
    font-weight: 800;
}

.iainptk-html-tooltip span {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.iainptk-html-tooltip i {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    border: 1px solid rgba(255,255,255,0.65);
    flex: 0 0 auto;
}

.iainptk-html-bar-segment:hover .iainptk-html-tooltip {
    display: block;
}

.iainptk-html-axis {
    display: grid;
    margin-left: 284px;
    margin-top: 4px;
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
}

.iainptk-html-axis span {
    text-align: left;
}

/* =========================================================
   AUTH + SEARCH PAGES
   ========================================================= */

body.pkp_page_search .pkp_structure_main,
body.pkp_page_login .pkp_structure_main,
body.pkp_page_user .pkp_structure_main {
    max-width: 1100px !important;
    margin: 36px auto 64px !important;
    padding: 0 24px !important;
    box-sizing: border-box;
}

body.pkp_page_search .pkp_structure_main > *:not(#pkp_content_main),
body.pkp_page_login .pkp_structure_main > *:not(#pkp_content_main),
body.pkp_page_user .pkp_structure_main > *:not(#pkp_content_main) {
    background: #ffffff;
    border: 1px solid #e6ebf3;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(41, 120, 57, 0.05);
    padding: 28px;
    margin-bottom: 20px;
}

body.pkp_page_search h1,
body.pkp_page_login h1,
body.pkp_page_user h1 {
    color: var(--iainptk-green);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 18px;
}

body.pkp_page_search label,
body.pkp_page_login label,
body.pkp_page_user label {
    display: block;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

body.pkp_page_search input[type="text"],
body.pkp_page_search input[type="search"],
body.pkp_page_search input[type="email"],
body.pkp_page_search input[type="password"],
body.pkp_page_search select,
body.pkp_page_search textarea,
body.pkp_page_login input[type="text"],
body.pkp_page_login input[type="email"],
body.pkp_page_login input[type="password"],
body.pkp_page_login select,
body.pkp_page_login textarea,
body.pkp_page_user input[type="text"],
body.pkp_page_user input[type="email"],
body.pkp_page_user input[type="password"],
body.pkp_page_user select,
body.pkp_page_user textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid #d6deea;
    border-radius: 12px;
    background: #ffffff;
    color: #1f2937;
    padding: 0 14px;
    box-sizing: border-box;
    font-size: 15px;
}

body.pkp_page_search input:focus,
body.pkp_page_search select:focus,
body.pkp_page_search textarea:focus,
body.pkp_page_login input:focus,
body.pkp_page_login select:focus,
body.pkp_page_login textarea:focus,
body.pkp_page_user input:focus,
body.pkp_page_user select:focus,
body.pkp_page_user textarea:focus {
    outline: none;
    border-color: var(--iainptk-green);
    box-shadow: 0 0 0 4px rgba(41,120,57,0.10);
}

body.pkp_page_search input[type="submit"],
body.pkp_page_login input[type="submit"],
body.pkp_page_user input[type="submit"] {
    background: var(--iainptk-green);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    min-height: 46px;
    padding: 0 18px;
    font-weight: 800;
    cursor: pointer;
}

body.pkp_page_search input[type="submit"]:hover,
body.pkp_page_login input[type="submit"]:hover,
body.pkp_page_user input[type="submit"]:hover {
    background: var(--iainptk-blue);
}

/* =========================================================
   FOOTER
   ========================================================= */

.iainptk-footer-wrapper {
    background: var(--iainptk-green);
    margin-top: 25px;
}

.iainptk-footer {
    padding: 30px 0 10px;
}

.iainptk-footer-grid {
    display: grid;
    grid-template-columns: 3.4fr 1fr 1.4fr;
    gap: 56px;
    align-items: start;
}

.iainptk-footer-col {
    min-width: 0;
}

.iainptk-footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.iainptk-footer-logo {
    width: 46px;
    max-width: 46px;
    height: 46px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(1px 1px 0 white) drop-shadow(-1px -1px 0 white) drop-shadow(1px -1px 0 white) drop-shadow(-1px 1px 0 white);
}

.iainptk-footer-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.iainptk-footer-title {
    color: #ffffff;
    font-size: 19px;
    font-weight: 900;
}

.iainptk-footer-subtitle {
    margin-top: 3px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

.iainptk-footer-heading {
    margin: 0 0 41px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #ffffff;
}

.iainptk-footer-text,
.iainptk-footer-item {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.75;
}

.iainptk-footer-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0;
    max-width: 360px;
}

.iainptk-footer-contact-col {
    max-width: 560px;
}

.iainptk-footer-item a,
.iainptk-footer-links a,
.iainptk-footer-social a {
    color: #ffffff;
    text-decoration: none;
}

.iainptk-footer-item a:hover,
.iainptk-footer-links a:hover,
.iainptk-footer-social a:hover {
    color: var(--iainptk-gold);
}

.iainptk-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.iainptk-footer-links li {
    margin: 0 0 4px;
}

.iainptk-footer-links a {
    font-size: 14px;
}

.iainptk-footer-icon {
    flex: 0 0 18px;
    color: #ffffff;
    margin-top: 4px;
    text-align: center;
}

.iainptk-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.18);
}

.iainptk-footer-copy {
    color: #ffffff;
    font-size: 13px;
}

.iainptk-footer-copy a,
.iainptk-footer-copy a:visited {
    color: #ffffff !important;
    text-decoration: none;
}

.iainptk-footer-copy a:hover,
.iainptk-footer-copy a:focus {
    color: var(--iainptk-gold) !important;
}

.iainptk-footer-social {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 36px;
    margin: 10px 0 0;
    color: #ffffff;
}

.iainptk-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 16px;
    line-height: 1;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.iainptk-footer-social a:hover,
.iainptk-footer-social a:focus {
    background: #ffffff;
    color: var(--iainptk-green);
    transform: translateY(-2px);
    outline: none;
}

.iainptk-footer-social .fa,
.iainptk-footer-social .fas,
.iainptk-footer-social .far,
.iainptk-footer-social .fab,
.iainptk-footer-social i,
.iainptk-footer-social span.fa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    font-size: 16px;
    line-height: 1;
    opacity: 1;
    visibility: visible;
    font-family: FontAwesome, "Font Awesome 5 Free", "Font Awesome 5 Brands";
    font-style: normal;
    font-weight: normal;
}

/* =========================================================
   RESPONSIVE CONSOLIDATION
   ========================================================= */

/* Global safety */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

img,
svg,
canvas,
iframe {
    max-width: 100%;
}

.iainptk-mobile-toggle {
    display: none;
}

/* Large desktop / small laptop */
@media (max-width: 1280px) {
    .iainptk-container,
    .iainptk-section-container,
    .iainptk-footer-container,
    .iainptk-hero-inner {
        padding-left: 22px;
        padding-right: 22px;
    }

    .iainptk-nav {
        gap: 12px;
    }

    .iainptk-nav > a,
    .iainptk-dropdown-toggle {
        font-size: 13px;
    }

}

/* Tablet landscape */
@media (max-width: 1024px) {
    .iainptk-stat-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .iainptk-chart-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .iainptk-chart-card canvas,
    .iainptk-chart-grid .iainptk-chart-card canvas {
        height: 330px !important;
    }

    .iainptk-chart-wide canvas {
        height: 380px !important;
    }

    .iainptk-about-master-card .iainptk-vision-mission-grid,
    .iainptk-announcement-grid {
        grid-template-columns: 1fr;
    }
}

/* Tablet portrait and below: mobile navigation */
@media (max-width: 900px) {
    html,
    body,
    .pkp_structure_page,
    .pkp_structure_head,
    .pkp_structure_content,
    .pkp_structure_main {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .iainptk-header {
        position: relative !important;
        z-index: 9999 !important;
        background: #ffffff !important;
        overflow: visible !important;
    }

    .iainptk-header .iainptk-container {
        position: relative !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 42px !important;
        align-items: center !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 14px !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    .iainptk-brand,
    .iainptk-brand-link,
    .iainptk-brand-text {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .iainptk-brand {
        grid-column: 1 !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        justify-self: start !important;
        flex: initial !important;
    }

    .iainptk-brand-link {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        width: auto !important;
        text-align: left !important;
        text-decoration: none !important;
    }

    .iainptk-logo {
        flex: 0 0 auto !important;
        max-height: 44px !important;
        width: auto !important;
        margin: 0 !important;
    }

    .iainptk-brand-text {
        display: inline-flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: center !important;
        text-align: left !important;
    }

    .iainptk-brand-title {
        font-size: 17px !important;
        line-height: 1.05 !important;
    }

    .iainptk-brand-subtitle {
        font-size: 13px !important;
        line-height: 1.15 !important;
    }

    #iainptkMobileToggle.iainptk-mobile-toggle {
        grid-column: 2 !important;
        justify-self: end !important;
        align-self: center !important;
        position: relative !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-direction: column !important;
        gap: 5px !important;
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
        max-width: 42px !important;
        max-height: 42px !important;
        margin: 0 !important;
        padding: 9px !important;
        border: 1px solid rgba(46, 125, 58, 0.34) !important;
        border-radius: 12px !important;
        background: #ffffff !important;
        color: #1f7a3a !important;
        box-shadow: 0 6px 16px rgba(19, 65, 39, 0.14) !important;
        cursor: pointer !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        appearance: none !important;
        -webkit-appearance: none !important;
        z-index: 10020 !important;
    }

    #iainptkMobileToggle.iainptk-mobile-toggle:hover,
    #iainptkMobileToggle.iainptk-mobile-toggle:focus {
        background: #f3fbf5 !important;
        border-color: #2e7d3a !important;
        outline: none !important;
    }

    .iainptk-mobile-toggle-line {
        display: block !important;
        width: 20px !important;
        height: 2px !important;
        min-height: 2px !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #1f7a3a !important;
        border-radius: 999px !important;
        transition: transform 0.18s ease, opacity 0.18s ease !important;
    }

    .iainptk-mobile-toggle.is-open .iainptk-mobile-toggle-line:nth-child(1) {
        transform: translateY(7px) rotate(45deg) !important;
    }

    .iainptk-mobile-toggle.is-open .iainptk-mobile-toggle-line:nth-child(2) {
        opacity: 0 !important;
    }

    .iainptk-mobile-toggle.is-open .iainptk-mobile-toggle-line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg) !important;
    }

    .iainptk-nav {
        position: absolute !important;
        top: calc(100% + 10px) !important;
        left: 12px !important;
        right: 12px !important;
        z-index: 10010 !important;
        display: none !important;
        width: auto !important;
        max-width: calc(100vw - 24px) !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 14px !important;
        box-sizing: border-box !important;
        background: #ffffff !important;
        border: 1px solid rgba(46, 125, 58, 0.18) !important;
        border-radius: 18px !important;
        box-shadow: 0 20px 45px rgba(19, 65, 39, 0.22) !important;
        overflow: visible !important;
    }

    .iainptk-nav.is-open {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    .iainptk-nav > a,
    .iainptk-nav .iainptk-dropdown-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 42px !important;
        margin: 0 !important;
        padding: 10px 12px !important;
        box-sizing: border-box !important;
        border: 0 !important;
        border-radius: 12px !important;
        background: transparent !important;
        color: #1f7a3a !important;
        font-size: 14px !important;
        font-weight: 800 !important;
        line-height: 1.25 !important;
        text-align: left !important;
        text-decoration: none !important;
        white-space: normal !important;
        cursor: pointer !important;
    }

    .iainptk-nav > a:hover,
    .iainptk-nav > a:focus,
    .iainptk-nav .iainptk-dropdown-toggle:hover,
    .iainptk-nav .iainptk-dropdown-toggle:focus {
        background: #f3fbf5 !important;
        color: #155f2d !important;
        outline: none !important;
    }

    .iainptk-nav .fa {
        flex: 0 0 16px !important;
        width: 16px !important;
        text-align: center !important;
    }

    .iainptk-nav .iainptk-dropdown {
        position: static !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    .iainptk-nav .iainptk-caret {
        margin-left: auto !important;
        font-size: 11px !important;
        line-height: 1 !important;
        transition: transform 0.18s ease !important;
    }

    .iainptk-nav .iainptk-dropdown.is-open .iainptk-caret {
        transform: rotate(180deg) !important;
    }

    .iainptk-nav .iainptk-dropdown-menu {
        position: static !important;
        inset: auto !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        display: none !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        max-height: 260px !important;
        margin: 6px 0 0 0 !important;
        padding: 8px !important;
        box-sizing: border-box !important;
        background: #f7fbf8 !important;
        border: 1px solid rgba(46, 125, 58, 0.14) !important;
        border-radius: 12px !important;
        box-shadow: none !important;
        list-style: none !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    .iainptk-nav .iainptk-dropdown.is-open .iainptk-dropdown-menu {
        display: block !important;
    }

    .iainptk-nav .iainptk-dropdown-menu li,
    .iainptk-nav .iainptk-dropdown-menu a {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .iainptk-nav .iainptk-dropdown-menu li {
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    .iainptk-nav .iainptk-dropdown-menu a {
        display: block !important;
        padding: 9px 10px !important;
        border-radius: 10px !important;
        color: #1f7a3a !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        line-height: 1.35 !important;
        text-align: left !important;
        text-decoration: none !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: anywhere !important;
    }

    .iainptk-nav .iainptk-dropdown-menu a:hover,
    .iainptk-nav .iainptk-dropdown-menu a:focus {
        background: #ffffff !important;
        color: #155f2d !important;
        outline: none !important;
    }

    .iainptk-footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .iainptk-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .iainptk-footer-social {
        justify-content: flex-start;
        width: 100%;
    }

    .iainptk-footer-item {
        max-width: 100%;
    }
}

/* Tablet portrait / large mobile content */
@media (max-width: 768px) {
    .iainptk-container,
    .iainptk-section-container,
    .iainptk-footer-container,
    .iainptk-hero-inner {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .iainptk-hero {
        min-height: 220px !important;
        height: auto !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    .iainptk-hero-inner {
        padding-top: 38px !important;
        padding-bottom: 42px !important;
    }

    .iainptk-hero-title {
        font-size: clamp(31px, 9vw, 42px) !important;
        line-height: 1.08 !important;
        max-width: 100% !important;
        margin-bottom: 14px !important;
        text-align: center !important;
        white-space: normal !important;
        overflow: visible !important;
    }

    .iainptk-hero-subtitle {
        max-width: 96% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        font-size: clamp(16px, 4.3vw, 21px) !important;
        line-height: 1.45 !important;
        text-align: center !important;
        white-space: normal !important;
        overflow: visible !important;
    }

    .iainptk-hero-search {
        width: 100% !important;
        max-width: 100% !important;
    }

    .iainptk-hero-search input {
        height: 56px !important;
        font-size: 15px !important;
        padding-left: 18px !important;
        padding-right: 52px !important;
    }

    .iainptk-filter-tabs {
        justify-content: center !important;
        flex-wrap: nowrap !important;
        gap: 14px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 12px !important;
    }

    .iainptk-tab-btn {
        flex: 0 0 auto !important;
    }

    .iainptk-toolbar {
        gap: 10px !important;
        text-align: center !important;
    }

    .iainptk-toolbar-item {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .iainptk-toolbar-item select {
        width: 100%;
        min-width: 0;
    }


    .iainptk-journal-title {
        font-size: 15px !important;
        line-height: 1.35 !important;
    }

    .iainptk-statistics-section,
    .iainptk-announcement-section,
    .iainptk-about-section {
        padding-top: 32px !important;
        padding-bottom: 44px !important;
    }

    .iainptk-stat-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }

    .iainptk-chart-card {
        padding: 22px 18px !important;
    }

    .iainptk-chart-card h2 {
        font-size: 20px !important;
        line-height: 1.3;
    }

    .iainptk-chart-card canvas,
    .iainptk-chart-grid .iainptk-chart-card canvas,
    .iainptk-chart-wide canvas {
        height: 290px !important;
    }

    .iainptk-chart-legend {
        gap: 8px 12px;
        margin-top: 10px;
    }

    .iainptk-chart-legend-item {
        font-size: 11px;
    }

    .iainptk-chart-legend-swatch {
        width: 13px;
        height: 8px;
    }

    .iainptk-announcement-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow-x: hidden !important;
    }

    .iainptk-announcement-section .iainptk-section-container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .iainptk-announcement-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
    }

    .iainptk-announcement-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        padding: 22px 20px !important;
        margin: 0 auto !important;
        border-radius: 16px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .iainptk-announcement-label {
        font-size: 12px !important;
        letter-spacing: 0.14em !important;
    }

    .iainptk-announcement-card h2,
    .iainptk-announcement-card h2 a,
    .iainptk-announcement-card h3,
    .iainptk-announcement-title {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        font-size: 21px !important;
        line-height: 1.28 !important;
        margin-bottom: 12px !important;
        text-align: left !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: anywhere !important;
        hyphens: auto !important;
    }

    .iainptk-announcement-card p {
        font-size: 14.5px !important;
        line-height: 1.65 !important;
    }

    body.pkp_page_search .pkp_structure_main,
    body.pkp_page_login .pkp_structure_main,
    body.pkp_page_user .pkp_structure_main {
        margin: 24px auto 48px !important;
        padding: 0 16px !important;
    }

    .iainptk-html-bar-row {
        grid-template-columns: 1fr;
        gap: 6px;
        margin-bottom: 16px;
    }

    .iainptk-html-bar-label {
        text-align: left;
        font-size: 12px;
    }

    .iainptk-html-axis {
        display: none;
    }

    .iainptk-html-tooltip {
        left: 0;
        transform: none;
    }

    .iainptk-html-tooltip::after {
        left: 18px;
        transform: none;
    }
}

/* Small mobile */
@media (max-width: 560px) {
    .iainptk-container,
    .iainptk-section-container,
    .iainptk-footer-container,
    .iainptk-hero-inner {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .iainptk-hero {
        min-height: 210px !important;
    }

    .iainptk-hero-title {
        font-size: clamp(30px, 10vw, 38px) !important;
    }

    .iainptk-hero-subtitle {
        font-size: 16px !important;
    }

    .iainptk-journal-card {
        margin-left: auto;
        margin-right: auto;
    }

    .iainptk-stat-cards {
        grid-template-columns: 1fr !important;
    }

    .iainptk-chart-card {
        padding: 20px 14px !important;
    }

    .iainptk-chart-card h2 {
        font-size: 20px !important;
        line-height: 1.25 !important;
    }

    .iainptk-chart-card canvas,
    .iainptk-chart-grid .iainptk-chart-card canvas,
    .iainptk-chart-wide canvas {
        height: 260px !important;
    }

    .iainptk-announcement-card {
        padding: 20px !important;
    }

    .iainptk-announcement-card h2,
    .iainptk-announcement-card h3,
    .iainptk-announcement-title {
        font-size: 20px !important;
    }

    .iainptk-footer {
        padding-top: 26px;
    }

    .iainptk-footer-grid {
        gap: 22px;
    }
}

/* Very small phones */
@media (max-width: 420px) {
    .iainptk-header .iainptk-container {
        grid-template-columns: minmax(0, 1fr) 40px !important;
        gap: 10px !important;
        padding: 11px 12px !important;
    }

    .iainptk-logo {
        max-height: 40px !important;
    }

    .iainptk-brand-title {
        font-size: 16px !important;
    }

    .iainptk-brand-subtitle {
        font-size: 12px !important;
    }

    #iainptkMobileToggle.iainptk-mobile-toggle {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        max-width: 40px !important;
        max-height: 40px !important;
    }

    .iainptk-nav {
        left: 10px !important;
        right: 10px !important;
        max-width: calc(100vw - 20px) !important;
        padding: 12px !important;
        border-radius: 16px !important;
    }

    .iainptk-hero-inner {
        padding-top: 32px !important;
        padding-bottom: 36px !important;
    }

    .iainptk-hero-title {
        font-size: 29px !important;
    }

    .iainptk-hero-search input {
        height: 54px !important;
        font-size: 14px !important;
    }

    .iainptk-announcement-card,
    .iainptk-chart-card,
    .iainptk-page-card,
    .iainptk-about-master-card {
        padding: 18px !important;
        border-radius: 14px !important;
    }

    .iainptk-announcement-label {
        font-size: 12px !important;
    }

    .iainptk-announcement-card h2,
    .iainptk-announcement-card h2 a,
    .iainptk-announcement-card h3,
    .iainptk-announcement-title {
        font-size: 19px !important;
        line-height: 1.3 !important;
    }

    .iainptk-announcement-meta {
        font-size: 13px !important;
        line-height: 1.4 !important;
    }

    .iainptk-footer-social a {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }
}

/* Ultra-small phones */
@media (max-width: 360px) {
    .iainptk-brand-title {
        font-size: 15px !important;
    }

    .iainptk-brand-subtitle {
        font-size: 11.5px !important;
    }

    .iainptk-hero-title {
        font-size: 27px !important;
    }

    .iainptk-hero-subtitle {
        max-width: 98% !important;
        font-size: 15px !important;
    }

    .iainptk-announcement-card {
        padding: 17px !important;
    }
}
/* =========================================================
   JOURNAL GRID RESPONSIVE - EQUAL CARD SIZES + AUTO CENTER
   ========================================================= */

@media (max-width: 1200px) {
    .iainptk-journal-grid {
        gap: 16px;
    }

    .iainptk-journal-card {
        flex-basis: calc((100% - 48px) / 4);
        width: calc((100% - 48px) / 4);
        max-width: calc((100% - 48px) / 4);
        height: 340px;
    }
}

@media (max-width: 900px) {
    .iainptk-journal-grid {
        gap: 16px;
    }

    .iainptk-journal-card {
        flex-basis: calc((100% - 32px) / 3);
        width: calc((100% - 32px) / 3);
        max-width: calc((100% - 32px) / 3);
        height: 330px;
    }

    .iainptk-journal-thumb,
    .iainptk-journal-cover {
        flex-basis: 235px;
        height: 235px;
    }
}

@media (max-width: 768px) {
    .iainptk-journal-grid {
        gap: 14px;
    }

    .iainptk-journal-card {
        flex-basis: calc((100% - 14px) / 2);
        width: calc((100% - 14px) / 2);
        max-width: calc((100% - 14px) / 2);
        height: 320px;
    }

    .iainptk-journal-thumb,
    .iainptk-journal-cover {
        flex-basis: 225px;
        height: 225px;
        padding: 12px 12px 8px;
    }

    .iainptk-journal-title {
        font-size: 14px !important;
        line-height: 1.35;
    }
}

@media (max-width: 520px) {
    .iainptk-journal-grid {
        gap: 16px;
    }

    .iainptk-journal-card {
        flex-basis: 100%;
        width: 100%;
        max-width: 340px;
        height: 340px;
        margin-left: auto;
        margin-right: auto;
    }

    .iainptk-journal-thumb,
    .iainptk-journal-cover {
        flex-basis: 245px;
        height: 245px;
    }
}