/* =========================================

         ZAM RESEARCH LIBRARY - PREMIUM DESIGN

========================================= */

:root {

          --navy: #10243a;

          --navy-light: #1c3857;

          --gold: #d6a022;

          --gold-light: #e6cd8e;

          --ivory: #faf8f2;

          --white: #ffffff;

          --text: #263547;

          --muted: #697586;

          --border: #e9e2d4;

          --shadow: 0 12px 35px rgba(16, 36, 58, 0.08);

}

* {

          box-sizing: border-box;

}

html {

          scroll-behavior: smooth;

          scroll-padding-top: 100px;

}

body {

          margin: 0;

          font-family: "Segoe UI", Arial, sans-serif;

          background: var(--ivory);

          color: var(--text);

          line-height: 1.7;

          -webkit-font-smoothing: antialiased;

}

a {

          color: inherit;

          text-decoration: none;

}

button,

input,

select {

          font: inherit;

}

button,

a {

          -webkit-tap-highlight-color: transparent;

}

/* HEADER AND NAVIGATION */

header.header {

          position: sticky;

          top: 0;

          z-index: 1000;

          display: flex;

          justify-content: space-between;

          align-items: center;

          flex-wrap: wrap;

          gap: 18px;

          padding: 18px 6%;

          background: var(--navy);

          color: var(--white);

          border-bottom: 3px solid var(--gold);

          box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);

}

.brand {

          display: flex;

          flex-direction: column;

          gap: 0;

          color: var(--white);

          font-weight: 700;

          line-height: 1.35;

}

.brand .logo {

          color: var(--gold-light);

          font-size: 1.4rem;

          letter-spacing: 2px;

}

.brand span:last-child {

          font-size: 0.72rem;

          letter-spacing: 1.1px;

}

header.header nav {

          display: flex;

          align-items: center;

          flex-wrap: wrap;

          gap: 24px;

}

header.header nav a {

          color: #e9edf3;

          font-size: 0.91rem;

          font-weight: 500;

          transition: color 0.2s ease;

}

header.header nav a:hover,

header.header nav a.active {

          color: var(--gold-light);

}

.header-cta {

          display: inline-flex;

          align-items: center;

          justify-content: center;

          padding: 10px 17px;

          color: var(--navy) !important;

          background: var(--gold);

          border-radius: 6px;

          font-size: 0.87rem;

          font-weight: 700;

          transition: background 0.2s ease;

}

.header-cta:hover {

          background: var(--gold-light);

}

/* HERO */

.hero {

          position: relative;

          overflow: hidden;

          padding: 100px 7% 95px;

          color: var(--white);

          background:

                    radial-gradient(

                              circle at 85% 20%,

                              rgba(201, 163, 74, 0.2),

                              transparent 30%

                    ),

                    linear-gradient(125deg, #0c1d30, #1b3857);

}

.hero::after {

          position: absolute;

          right: -90px;

          bottom: -180px;

          width: 390px;

          height: 390px;

          border: 1px solid rgba(230, 205, 142, 0.18);

          border-radius: 50%;

          content: "";

          pointer-events: none;

}

.hero .eyebrow {

          margin: 0 0 20px;

          color: var(--gold-light);

          font-size: 0.79rem;

          font-weight: 800;

          letter-spacing: 3px;

}

.hero h1 {

          max-width: 850px;

          margin: 0 0 22px;

          color: var(--white);

          font-size: clamp(2.4rem, 5.2vw, 4.3rem);

          font-weight: 750;

          line-height: 1.12;

          letter-spacing: -1.5px;

}

.hero h1 span {

          color: var(--gold-light);

}

.hero .intro {

          max-width: 730px;

          margin: 0 0 30px;

          color: #dce5ef;

          font-size: 1.08rem;

          line-height: 1.9;

}

.hero > a,

.hero .button,

.hero .btn {

          display: inline-flex;

          align-items: center;

          justify-content: center;

          gap: 10px;

          padding: 14px 23px;

          color: var(--navy);

          background: var(--gold);

          border: 1px solid var(--gold);

          border-radius: 6px;

          font-weight: 750;

          transition: all 0.2s ease;

}

.hero > a:hover,

.hero .button:hover,

.hero .btn:hover {

          background: var(--gold-light);

          transform: translateY(-2px);

}

/* GENERAL SECTION STYLING */

section {

          scroll-margin-top: 100px;

}

#resources,

.resources-section,

.library-section {

          width: min(1200px, 88%);

          margin: 0 auto;

          padding: 75px 0 85px;

}

#resources > p:first-child,

.resources-section > p:first-child,

.library-section > p:first-child {

          margin-bottom: 8px;

          color: #9a782e;

          font-size: 0.78rem;

          font-weight: 800;

          letter-spacing: 2.5px;

}

#resources h2,

.resources-section h2,

.library-section h2 {

          margin: 0 0 12px;

          color: var(--navy);

          font-size: clamp(1.8rem, 3.2vw, 2.5rem);

          line-height: 1.25;

          letter-spacing: -0.5px;

}

#resources > p,

.resources-section > p,

.library-section > p {

          color: var(--muted);

}

/* SEARCH AND CATEGORY FILTER */

#resourceSearch,

#categoryFilter {

          min-height: 52px;

          padding: 12px 15px;

          color: var(--text);

          background: var(--white);

          border: 1px solid var(--border);

          border-radius: 8px;

          outline: none;

          transition: border-color 0.2s, box-shadow 0.2s;

}

#resourceSearch {

          width: min(100%, 480px);

}

#categoryFilter {

          min-width: 190px;

          max-width: 100%;

          cursor: pointer;

}

#resourceSearch:focus,

#categoryFilter:focus {

          border-color: var(--gold);

          box-shadow: 0 0 0 3px rgba(201, 163, 74, 0.14);

}

#resourceCount {

          margin: 20px 0;

          color: var(--muted);

          font-size: 0.9rem;

}

/* RESOURCE CARDS */

.resource-card {

          min-width: 0;

          padding: 27px;

          background: var(--white);

          border: 1px solid var(--border);

          border-radius: 12px;

          box-shadow: var(--shadow);

          transition: transform 0.25s ease, box-shadow 0.25s ease,

                    border-color 0.25s ease;

}

.resource-card:hover {

          transform: translateY(-4px);

          border-color: #d9c28a;

          box-shadow: 0 18px 40px rgba(16, 36, 58, 0.12);

}

.resource-card > :first-child {

          margin-top: 0;

}

.resource-card h3 {

          margin: 12px 0;

          color: var(--navy);

          font-size: 1.2rem;

          line-height: 1.45;

}

.resource-card p {

          color: var(--muted);

          font-size: 0.94rem;

}

.resource-card details {

          margin: 16px 0;

          padding: 13px 0;

          border-top: 1px solid var(--border);

          border-bottom: 1px solid var(--border);

}

.resource-card summary {

          color: var(--navy);

          font-weight: 650;

          cursor: pointer;

}

.resource-card details p {

          margin-bottom: 0;

          color: var(--text);

          font-size: 0.92rem;

}

.resource-card .request {

          display: flex;

          width: 100%;

          align-items: center;

          justify-content: center;

          gap: 8px;

          min-height: 48px;

          margin-top: 18px;

          padding: 12px 18px;

          color: var(--navy);

          background: var(--gold);

          border: 1px solid var(--gold);

          border-radius: 7px;

          font-weight: 750;

          text-align: center;

          cursor: pointer;

          transition: background 0.2s ease, color 0.2s ease;

}

.resource-card .request:hover {

          color: var(--white);

          background: var(--navy);

          border-color: var(--navy);

}

/* RESOURCE LABELS */

.resource-card .category,

.resource-card .resource-category,

.resource-card .tag {

          display: inline-block;

          margin: 0 0 8px;

          padding: 5px 10px;

          color: #795e22;

          background: #f6efd9;

          border-radius: 30px;

          font-size: 0.74rem;

          font-weight: 750;

}

/* NO RESULTS */

#noResults {

          margin: 25px 0;

          padding: 30px;

          color: var(--muted);

          background: var(--white);

          border: 1px dashed var(--border);

          border-radius: 10px;

          text-align: center;

}

/* NOTES AND DISCLAIMERS */

.library-note,

.notice,

.disclaimer {

          margin: 28px 0;

          padding: 20px 22px;

          color: var(--text);

          background: #f3eddf;

          border-left: 4px solid var(--gold);

          border-radius: 5px;

          font-size: 0.9rem;

}

/* CALL TO ACTION */

.library-cta,

.cta {

          padding: 65px 7%;

          color: var(--white);

          background: var(--navy);

          text-align: center;

}

.library-cta h2,

.cta h2 {

          margin: 0 0 14px;

          color: var(--white);

          font-size: clamp(1.8rem, 3vw, 2.5rem);

}

.library-cta p,

.cta p {

          max-width: 680px;

          margin: 0 auto 25px;

          color: #dce5ef;

}

.library-cta a,

.cta a {

          display: inline-flex;

          justify-content: center;

          padding: 13px 22px;

          color: var(--navy);

          background: var(--gold);

          border-radius: 6px;

          font-weight: 750;

}

.library-cta a:hover,

.cta a:hover {

          background: var(--gold-light);

}

/* FOOTER */

footer {

          padding: 25px 6%;

          color: #d8e0e9;

          background: #091725;

          text-align: center;

          font-size: 0.87rem;

}

footer p {

          margin: 5px 0;

}

/* FLOATING WHATSAPP */

.whatsapp-float {

          position: fixed;

          right: 20px;

          bottom: 20px;

          z-index: 9999;

          display: inline-flex;

          align-items: center;

          justify-content: center;

          width: auto;

          height: auto;

          min-width: 0;

          min-height: 0;

          padding: 14px 20px;

          overflow: hidden;

          border: none;

          border-radius: 50px;

          background: #168b54;

          color: #ffffff;

          font-family: Arial, sans-serif;

          font-size: 14px;

          font-weight: 700;

          line-height: 1.2;

          text-decoration: none;

          box-shadow: 0 5px 18px rgba(0, 0, 0, 0.18);

}

.whatsapp-float:hover {

          background: #106a3e;

}

/* RESPONSIVE TABLET */

@media (max-width: 900px) {

          header.header {

                    padding: 16px 4%;

          }

          header.header nav {

                    gap: 15px;

          }

          .hero {

                    padding: 75px 6%;

          }

          #resources,

          .resources-section,

          .library-section {

                    width: 90%;

          }

}

/* RESPONSIVE MOBILE */

@media (max-width: 600px) {

          header.header {

                    position: relative;

                    align-items: flex-start;

                    flex-direction: column;

                    gap: 14px;

                    padding: 17px 5%;

          }

          header.header nav {

                    width: 100%;

                    gap: 10px 17px;

          }

          header.header nav a {

                    font-size: 0.85rem;

          }

          .header-cta {

                    width: fit-content;

          }

          .hero {

                    padding: 60px 6% 65px;

          }

          .hero h1 {

                    font-size: clamp(2.2rem, 10vw, 3.2rem);

                    letter-spacing: -0.8px;

          }

          .hero .intro {

                    font-size: 1rem;

          }

          #resources,

          .resources-section,

          .library-section {

                    width: 90%;

                    padding: 48px 0 58px;

          }

          #resourceSearch {

                    width: 100%;

          }

          #categoryFilter {

                    width: 100%;

          }

          .resource-card {

                    padding: 21px;

          }

          .library-cta,

          .cta {

                    padding: 48px 6%;

          }

          .whatsapp-float {

                    right: 13px;

                    bottom: 13px;

                    min-height: 49px;

                    padding: 10px 15px;

          }

}

/* FIX: Oversized WhatsApp icon on Research Library */

.whatsapp-float {

          position: fixed !important;

          right: 20px !important;

          bottom: 20px !important;

          z-index: 9999 !important;

          display: flex !important;

          align-items: center !important;

          justify-content: center !important;

          width: 58px !important;

          height: 58px !important;

          min-width: 58px !important;

          min-height: 58px !important;

          padding: 0 !important;

          overflow: hidden !important;

          border-radius: 50% !important;

          background: #168b54 !important;

          color: #ffffff !important;

}

/* Keep every icon or image inside the button small */

.whatsapp-float img,

.whatsapp-float svg,

.whatsapp-float i,

.whatsapp-float .icon {

          display: block !important;

          width: 28px !important;

          height: 28px !important;

          max-width: 28px !important;

          max-height: 28px !important;

          margin: 0 !important;

          object-fit: contain !important;

}

/* FIX: Actual floating WhatsApp button */

.floating-whatsapp {

          position: fixed !important;

          right: 20px !important;

          bottom: 20px !important;

          z-index: 99999 !important;

          display: flex !important;

          align-items: center !important;

          justify-content: center !important;

          width: 58px !important;

          height: 58px !important;

          min-width: 58px !important;

          min-height: 58px !important;

          padding: 0 !important;

          border-radius: 50% !important;

          background: #168b54 !important;

          color: #ffffff !important;

          overflow: hidden !important;

          box-shadow: 0 5px 18px rgba(0, 0, 0, 0.2) !important;

}

.floating-whatsapp svg {

          display: block !important;

          width: 28px !important;

          height: 28px !important;

          max-width: 28px !important;

          max-height: 28px !important;

          flex: 0 0 28px !important;

          fill: none !important;

          stroke: #ffffff !important;

          stroke-width: 2 !important;

}

/* =====================================

         ZAM FREE RESEARCH DOCUMENTS

===================================== */

.free-documents {

          position: relative;

          padding: 80px 6%;

          overflow: hidden;

          background:

                    radial-gradient(

                              circle at 90% 10%,

                              rgba(201, 163, 74, 0.12),

                              transparent 35%

                    ),

                    #f3efe5;

          border-top: 1px solid #e6decc;

          border-bottom: 1px solid #e6decc;

}

.free-documents-heading {

          max-width: 720px;

          margin: 0 auto 38px;

          text-align: center;

}

.free-documents-heading .eyebrow {

          display: inline-block;

          margin: 0 0 12px;

          color: #9a782e;

          font-size: 0.76rem;

          font-weight: 800;

          letter-spacing: 3px;

          text-transform: uppercase;

}

.free-documents-heading h2 {

          margin: 0 0 16px;

          color: #10243a;

          font-size: clamp(2rem, 4vw, 2.8rem);

          line-height: 1.2;

          letter-spacing: -0.8px;

}

.free-documents-heading > p:last-child {

          margin: 0;

          color: #687586;

          font-size: 1.02rem;

          line-height: 1.8;

}

.free-pdf-grid {

          display: grid;

          grid-template-columns: minmax(0, 580px);

          justify-content: center;

          gap: 24px;

          max-width: 1000px;

          margin: 0 auto;

}

.free-pdf-card {

          position: relative;

          padding: 38px;

          overflow: hidden;

          background: #ffffff;

          border: 1px solid #e5ddcc;

          border-radius: 16px;

          box-shadow: 0 15px 40px rgba(16, 36, 58, 0.08);

          transition:

                    transform 0.25s ease,

                    box-shadow 0.25s ease,

                    border-color 0.25s ease;

}

.free-pdf-card::before {

          position: absolute;

          top: 0;

          left: 0;

          width: 100%;

          height: 5px;

          background: linear-gradient(

                    90deg,

                    #10243a,

                    #c9a34a

          );

          content: "";

}

.free-pdf-card:hover {

          transform: translateY(-5px);

          border-color: #c9a34a;

          box-shadow: 0 22px 48px rgba(16, 36, 58, 0.13);

}

.pdf-icon {

          display: flex;

          align-items: center;

          justify-content: center;

          width: 64px;

          height: 72px;

          margin-bottom: 22px;

          color: #ffffff;

          background: #a93232;

          border-radius: 9px;

          box-shadow: 0 7px 15px rgba(169, 50, 50, 0.18);

          font-size: 1rem;

          font-weight: 800;

          letter-spacing: 1px;

}

.free-pdf-card h3 {

          margin: 0 0 12px;

          color: #10243a;

          font-size: 1.5rem;

          line-height: 1.4;

}

.free-pdf-card p {

          margin: 0 0 25px;

          color: #687586;

          font-size: 0.98rem;

          line-height: 1.8;

}

.pdf-download {

          display: inline-flex;

          align-items: center;

          justify-content: center;

          gap: 10px;

          min-height: 52px;

          padding: 14px 23px;

          color: #10243a;

          background: #c9a34a;

          border: 1px solid #c9a34a;

          border-radius: 8px;

          font-size: 0.95rem;

          font-weight: 800;

          text-align: center;

          text-decoration: none;

          transition:

                    background 0.2s ease,

                    color 0.2s ease,

                    transform 0.2s ease;

}

.pdf-download:hover {

          color: #ffffff;

          background: #10243a;

          border-color: #10243a;

          transform: translateY(-2px);

}

.pdf-download:focus-visible {

          outline: 3px solid #c9a34a;

          outline-offset: 4px;

}

/* MOBILE LAYOUT */

@media (max-width: 600px) {

          .free-documents {

                    padding: 55px 5%;

          }

          .free-documents-heading {

                    margin-bottom: 28px;

          }

          .free-pdf-card {

                    padding: 28px 23px;

          }

          .free-pdf-card h3 {

                    font-size: 1.3rem;

          }

          .pdf-download {

                    width: 100%;

                    padding: 13px 15px;

                              /* Improve mobile resource layout */

          #resourceGrid {

                    grid-template-columns: minmax(0, 1fr);

                    gap: 18px;

          }

          #resourceGrid > * {

                    min-width: 0;

          }

          #resourceGrid .resource-price {

                    display: inline-block;

                    margin: 8px 8px 8px 0;

                    font-weight: 600;

          }

          #resourceGrid .pdf-download {

                    max-width: 100%;

                    box-sizing: border-box;

          }

          }

}

/* =====================================

         ZAM LIBRARY - PREMIUM PAGE BACKGROUND

===================================== */

/* Overall page background */

body {

          background-color: #f8f5ed;

}

/* Main library collection area */

#resources,

.resources-section,

.library-section {

          background: transparent;

}

/* Soft ivory background behind resource cards */

.resource-card {

          background: #fffdf8;

          border: 1px solid #e8dfcc;

          box-shadow: 0 8px 24px rgba(16, 36, 58, 0.055);

}

/* Document thumbnail images */

/* Document thumbnail images */

.resource-thumbnail {

          display: block;

          width: 100%;

          height: 180px;

          object-fit: cover;

          object-position: center;

          border-radius: 8px;

          margin-bottom: 0;

}

/* Elegant hover effect on resource cards */

.resource-card:hover {

          background: #ffffff;

          border-color: #c9a34a;

          box-shadow: 0 14px 32px rgba(16, 36, 58, 0.10);

}

/* Improve the search and category controls */

#resourceSearch,

#categoryFilter {

          background: #fffdf8;

          border-color: #e5dcc9;

}

/* Soft background for the resource request area */

.resource-request-cta {

          background: linear-gradient(

                    135deg,

                    #fffdf8 0%,

                    #f2ecde 100%

          );

          border-color: #e4d8bc;

          border-top: 4px solid #c9a34a;

}

/* Keep the free PDF area visually distinct */

.free-documents {

          background: linear-gradient(

                    135deg,

                    #f1ecdf 0%,

                    #faf7ef 100%

          );

          border-top: 1px solid #e8dfcc;

          border-bottom: 1px solid #e8dfcc;

}

/* =========================================

         ZAM LIBRARY - BOLD TEXT & PREMIUM HOVER

========================================= */

/* Resource cards */

.resource-card {

          position: relative;

          overflow: hidden;

          background: #fffdf8 !important;

          border: 1px solid #e4dac5 !important;

          border-radius: 16px !important;

          box-shadow: 0 5px 18px rgba(16, 36, 58, 0.05) !important;

          transition:

                    transform 0.3s ease,

                    box-shadow 0.3s ease,

                    border-color 0.3s ease,

                    background-color 0.3s ease !important;

}

/* Gold accent along the top of each card */

.resource-card::before {

          content: "";

          position: absolute;

          top: 0;

          left: 0;

          width: 0;

          height: 4px;

          background: linear-gradient(90deg, #10243a, #d5ae53);

          transition: width 0.35s ease;

}

/* Lift and glow on hover */

.resource-card:hover {

          transform: translateY(-7px) !important;

          border-color: #c9a34a !important;

          background: #ffffff !important;

          box-shadow:

                    0 18px 38px rgba(16, 36, 58, 0.13),

                    0 4px 12px rgba(201, 163, 74, 0.12) !important;

}

.resource-card:hover::before {

          width: 100%;

}

/* Resource ID and category */

.resource-card > span,

.resource-card .category,

.resource-card .resource-category {

          font-weight: 800 !important;

          letter-spacing: 0.3px;

}

/* Resource titles */

.resource-card h3 {

          color: #10243a !important;

          font-size: 1.28rem !important;

          font-weight: 800 !important;

          line-height: 1.45 !important;

          margin: 16px 0 12px !important;

          transition: color 0.25s ease;

}

.resource-card:hover h3 {

          color: #9a762b !important;

}

/* Resource descriptions */

.resource-card p {

          color: #465568 !important;

          font-size: 0.97rem !important;

          font-weight: 500 !important;

          line-height: 1.85 !important;

}

/* Preview text */

.resource-card summary {

          padding: 12px 0;

          color: #10243a !important;

          font-weight: 800 !important;

          cursor: pointer;

          transition: color 0.2s ease;

}

.resource-card summary:hover {

          color: #a17c2d !important;

}

/* Preview area */

.resource-card details {

          border-color: #e7dfcf !important;

}

.resource-card details[open] {

          background: #faf6eb;

          padding: 0 14px 14px;

          border-radius: 8px;

}

/* Resource request button, if used */

.resource-card .request {

          font-weight: 800 !important;

          letter-spacing: 0.2px;

          transition:

                    transform 0.25s ease,

                    background-color 0.25s ease,

                    box-shadow 0.25s ease !important;

}

.resource-card .request:hover {

          transform: translateY(-2px);

          box-shadow: 0 7px 18px rgba(16, 36, 58, 0.18);

}

/* Keyboard accessibility */

.resource-card:focus-within {

          outline: 2px solid #c9a34a;

          outline-offset: 3px;

}

/* Respect reduced-motion preferences */

@media (prefers-reduced-motion: reduce) {

          .resource-card,

          .resource-card::before,

          .resource-card h3,

          .resource-card summary {

                    transition: none !important;

          }

          .resource-card:hover {

                    transform: none !important;

          }

}

/* Fix spacing in live research resource cards */

.cover {

          display: flex;

          flex-direction: column;

          align-items: stretch;

          justify-content: flex-start;

          gap: 12px;

}

.cover .resource-thumbnail {

          width: 100%;

          max-width: 100%;

          height: 180px;

          object-fit: cover;

          border-radius: 8px;

}

.cover-label {

     flex: 1;

     line-height: 1.5;

}

.cover-number {

     flex-shrink: 0;

     margin-left: 12px;

}

.card-content .meta {

     display: flex;

     flex-wrap: wrap;

     align-items: center;

     gap: 12px 24px;

     margin: 16px 0;

}

.resource-format,

.resource-access {

     display: inline-block;

     line-height: 1.6;

}

.resource-format::after {

     content: "";

}

.resource-access {

     margin-left: 8px;

}

/* Resource action buttons */

.resource-actions {

     display: flex;

     flex-direction: column;

     gap: 10px;

     margin-top: 18px;

}

.download-pdf {

     width: 100%;

     padding: 12px 16px;

     border: none;

     border-radius: 8px;

     background: #2c2cdd;

     color: #ffffff;

     font: inherit;

     font-weight: 600;

     cursor: pointer;

     transition: opacity 0.2s ease, transform 0.2s ease;

}

.download-pdf:hover {

     opacity: 0.9;

     transform: translateY(-1px);

}

.download-pdf:disabled {

     opacity: 0.65;

     cursor: wait;

     transform: none;

}

.resource-actions .request {

     width: 100%;

}

/* REFINED RESOURCE CARDS - KEEP ACTIONS VISIBLE */

#resourceGrid .resource-card {

          width: 100%;

          min-width: 0;

          height: auto;

          min-height: 300px;

          aspect-ratio: auto;

          box-sizing: border-box;

          display: flex;

          flex-direction: column;

          overflow: visible;

}

#resourceGrid .card-content {

          padding: 14px;

          display: flex;

          flex-direction: column;

          flex: 1;

          min-width: 0;

          min-height: 0;

          overflow: visible;

}

#resourceGrid .cover {

          gap: 8px;

          align-items: flex-start;

}

#resourceGrid .cover-label {

          font-size: 11px;

          line-height: 1.35;

          overflow-wrap: anywhere;

}

#resourceGrid .cover-number {

          flex-shrink: 0;

}

#resourceGrid .card-content h3 {

          font-size: 14px;

          line-height: 1.3;

          margin: 10px 0 8px;

          overflow-wrap: anywhere;

}

#resourceGrid .card-content > p:not(.resource-price) {

          font-size: 12px;

          line-height: 1.4;

          margin: 0 0 8px;

}

#resourceGrid .meta {

          display: flex;

          flex-wrap: wrap;

          align-items: center;

          gap: 6px 10px;

          margin: 12px 0;

          font-size: 11px;

}

#resourceGrid .resource-format,

#resourceGrid .resource-access {

          display: inline-block;

          margin: 0;

          line-height: 1.4;

          overflow-wrap: anywhere;

}

#resourceGrid .resource-actions {

          display: flex;

          flex-direction: column;

          gap: 8px;

          margin-top: auto;

          padding-top: 10px;

}

#resourceGrid .resource-price {

          font-size: 12px;

          line-height: 1.4;

          margin: 0 0 5px;

}

#resourceGrid .resource-actions button {

          display: block;

          width: 100%;

          min-height: 34px;

          height: auto;

          padding: 9px 6px;

          font-size: 11px;

          line-height: 1.3;

          white-space: normal;

          overflow-wrap: anywhere;

          box-sizing: border-box;

}

/* Tablets */

@media (max-width: 1100px) {

          #resourceGrid {

          }

}

/* Phones */

@media (max-width: 760px) {

          #resourceGrid {

                    gap: 12px;

          }

          #resourceGrid .card-content {

                    padding: 10px;

          }

          #resourceGrid .card-content h3 {

                    font-size: 13px;

          }

          #resourceGrid .meta {

                    font-size: 10px;

          }

          #resourceGrid .resource-actions button {

                    font-size: 10px;

          }

}

/* Very small phones */

@media (max-width: 360px) {

          #resourceGrid {

          }

}

/* =========================================

         RESPONSIVE GRID

========================================= */

@media (max-width: 1100px) {

     #resourceGrid {

     }

}

@media (max-width: 760px) {

     #resourceGrid {

          gap: 12px;

     }

     #resourceGrid .card-content {

          padding: 10px;

     }

     #resourceGrid .card-content h3 {

          font-size: 14px;

     }

     #resourceGrid .meta {

          font-size: 10px;

     }

     #resourceGrid .resource-actions button {

          font-size: 10px;

     }

}

@media (max-width: 360px) {

     #resourceGrid {

     }

     #resourceGrid .resource-card {

          aspect-ratio: 1 / 1;

     }

}

/* Resource display toolbar */

.resource-toolbar {

     display: flex;

     align-items: center;

     justify-content: space-between;

     gap: 15px;

     flex-wrap: wrap;

     margin-bottom: 20px;

}

.resource-toolbar .count {

     margin: 0;

}

.view-toggle {

     display: flex;

     gap: 8px;

}

.view-button {
  padding: 9px 14px;
  border: 1px solid #d9c9a5;
  border-radius: 7px;
  background: #fffdf8;
  color: #1f2937;
  cursor: pointer;
  font: inherit;
}

.view-button.active {
  background: #2c2cdd;
  color: #fff;
  border-color: #2c2cdd;
}

/* Repository-style vertical list layout */
#resourceGrid,
#resourceGrid.list-view {
  display: flex !important;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

#resourceGrid.list-view .resource-card {
  display: grid;
  grid-template-columns: 125px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
  padding: 18px;
  overflow: visible;
  box-sizing: border-box;
}

#resourceGrid.list-view .cover {
  width: 125px;
  min-height: 165px;
  height: 165px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  overflow: hidden;
}

#resourceGrid.list-view .cover-label {
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

#resourceGrid.list-view .cover-number { font-size: 14px; }

#resourceGrid.list-view .card-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: auto;
  overflow: visible;
  padding: 0;
}

#resourceGrid.list-view .card-content h3 {
  display: block;
  max-height: none;
  overflow: visible;
  font-size: 20px;
  line-height: 1.45;
  margin: 8px 0;
  overflow-wrap: anywhere;
}

#resourceGrid.list-view .card-content > p:not(.resource-price) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  max-height: none;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}

#resourceGrid.list-view .meta {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 8px 0;
  font-size: 12px;
}

#resourceGrid.list-view .resource-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding-top: 0;
}

#resourceGrid.list-view .resource-actions button {
  width: auto;
  min-width: 140px;
  min-height: 38px;
  padding: 10px 16px;
  font-size: 12px;
}

#resourceGrid.list-view .resource-price { margin: 0; }

@media (max-width: 600px) {
  #resourceGrid.list-view .resource-card {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }
  #resourceGrid.list-view .cover {
    width: 80px;
    height: 115px;
    min-height: 115px;
    padding: 6px;
  }
  #resourceGrid.list-view .cover-label { font-size: 10px; }
  #resourceGrid.list-view .card-content h3 { font-size: 15px; }
  #resourceGrid.list-view .card-content > p:not(.resource-price) { font-size: 12px; }
  #resourceGrid.list-view .resource-actions {
    flex-direction: column;
    align-items: stretch;
  }
  #resourceGrid.list-view .resource-actions button { width: 100%; }
}

/* Floating donate button */
.floating-donate {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  background: #F97316;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease, transform 0.3s ease;
}

/* Hero donation button */
.hero-content { position: relative; z-index: 1; }
.hero-donate {
  position: absolute;
  top: 70px;
  right: 30px;
  z-index: 5;
}
.hero-donate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 14px 20px;
  background: #d6a022;
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease, transform 0.3s ease;
}
.hero-donate-button:hover {
  background: #2C2CDD;
  color: #FFFFFF;
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .hero-donate { right: 15px; top: 20px; }
  .hero-donate-button { font-size: 13px; padding: 11px 14px; }
  .hero-content { padding-top: 55px; }
}
@media (max-width: 480px) {
  .hero-donate { top: 15px; right: 15px; }
  .hero-donate-button { padding: 10px 15px; font-size: 14px; }
  .hero-content { padding-top: 60px; }
}
.hero {
    background-image:
        linear-gradient(rgba(16, 36, 58, 0.35), rgba(16, 36, 58, 0.45)),
        url("images/library_female_student.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
/* Improve hero text visibility */
.hero {
    background:
        linear-gradient(
            rgba(5, 18, 34, 0.78),
            rgba(5, 18, 34, 0.72)
        ),
        url("images/library_female_student.png")
        center center / cover no-repeat;
}

.hero .eyebrow {
    color: #f5d88f;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

.hero h1 {
    color: #ffffff;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.65);
}

.hero h1 span {
    color: #f5d88f;
}

.hero .intro {
    color: #ffffff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.85);
}

/* =========================================
   MEDIA & GALLERY SECTION
========================================= */

.media-gallery {
    padding: 75px 6%;
    background: #f8f7f3;
    width: 100%;
}

.media-gallery .section-title {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 35px;
}

.media-gallery .section-title h2 {
    color: #10243A;
    font-size: 32px;
    margin: 12px 0;
}

.media-gallery .section-title p {
    line-height: 1.7;
}

/* MEDIA CATEGORY FILTERS */

.media-categories {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 30px auto;
}

.media-filter {
    padding: 11px 20px;
    border: 1px solid #d4af45;
    border-radius: 25px;
    background: #ffffff;
    color: #10243A;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.media-filter:hover,
.media-filter.active {
    background: #10243A;
    color: #ffffff;
    border-color: #10243A;
}

/* MEDIA SEARCH */

.media-search {
    max-width: 550px;
    margin: 0 auto 35px;
}

.media-search input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #dedede;
    border-radius: 8px;
    background: #ffffff;
    color: #10243A;
    font-size: 15px;
    outline: none;
}

.media-search input:focus {
    border-color: #d4af45;
    box-shadow: 0 0 0 3px rgba(212, 175, 69, 0.12);
}

/* MEDIA GRID */

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    max-width: 1250px;
    margin: 0 auto;
}

/* MEDIA CARD */

.media-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8e5dd;
    box-shadow: 0 5px 20px rgba(16, 36, 58, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(16, 36, 58, 0.12);
}

/* MEDIA IMAGE / VIDEO */

.media-card img,
.media-card video,
.media-card iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: none;
    background: #10243A;
}

.media-card-content {
    padding: 18px;
}

.media-card-content h3 {
    color: #10243A;
    font-size: 17px;
    margin: 0 0 9px;
}

.media-card-content p {
    color: #687386;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 12px;
}

.media-card-category {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    background: #fff5d9;
    color: #94701c;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

/* EMPTY / NO RESULTS MESSAGE */

.media-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 35px 20px;
    color: #687386;
}

.media-count {
    text-align: center;
    color: #687386;
    font-size: 13px;
    margin-top: 25px;
}

/* MOBILE RESPONSIVENESS */

@media (max-width: 600px) {

    .media-gallery {
        padding: 50px 5%;
    }

    .media-gallery .section-title h2 {
        font-size: 25px;
    }

    .media-categories {
        gap: 8px;
    }

    .media-filter {
        padding: 9px 13px;
        font-size: 12px;
    }

    .media-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

}
