/* Alnodom Visual Refinements 1.3 — front page only */

.hero {
  min-height: 0 !important;
  padding-bottom: clamp(34px, 4vw, 58px) !important;
}

.hero-grid { gap: clamp(28px, 4vw, 54px); }

.eyebrow {
  font-size: 1.12rem !important;
  font-weight: 800 !important;
}

.hero h1 {
  font-size: clamp(3rem, 5vw, 5.2rem) !important;
  line-height: 1.22 !important;
  font-weight: 800 !important;
  text-wrap: balance;
}

.hero-copy > p {
  font-size: clamp(1.18rem, 1.4vw, 1.45rem) !important;
  line-height: 1.85 !important;
}

.hero-actions .button,
.hero-secondary { font-size: 1.18rem !important; }
.hero-note { font-size: 1.05rem !important; }

/* Search area: larger type, reliable wrapping, and reduced dead space below. */
.search-wrap {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.search-heading strong {
  font-size: clamp(1.55rem, 1.9vw, 2rem) !important;
  line-height: 1.45 !important;
  font-weight: 800 !important;
}

.search-heading span {
  font-size: clamp(1.10rem, 1.25vw, 1.3rem) !important;
  line-height: 1.65 !important;
}

.library-search {
  min-width: 0;
  min-height: 88px;
  box-sizing: border-box;
}

.library-search input[type="search"],
.library-search input {
  min-width: 0;
  min-height: 66px !important;
  box-sizing: border-box;
  padding-block: 14px !important;
  font-size: clamp(1.20rem, 1.4vw, 1.45rem) !important;
  line-height: 1.55 !important;
  color: var(--alnodom-ink) !important;
}

.library-search input::placeholder {
  color: #536b70 !important;
  font-size: 1em !important;
  opacity: 1 !important;
}

.library-search .button,
.library-search button,
.search-wrap .button {
  min-height: 66px !important;
  padding-inline: clamp(22px, 2.2vw, 34px) !important;
  font-size: clamp(1.15rem, 1.3vw, 1.35rem) !important;
  font-weight: 800 !important;
  white-space: nowrap;
}

.quick-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.quick-search,
.quick-search span,
.quick-search a {
  font-size: clamp(1.05rem, 1.15vw, 1.22rem) !important;
  line-height: 1.7 !important;
}

.quick-search a { font-weight: 700 !important; }

/* Distinct sections without excessive whitespace. */
.drs-home-section {
  position: relative;
  isolation: isolate;
  padding-block: clamp(52px, 5.5vw, 78px) !important;
}

.drs-home-section::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 5px;
  opacity: .9;
  pointer-events: none;
}

.drs-home-theses {
  background: linear-gradient(180deg, #fbfaf6 0%, #f5f1e8 100%) !important;
  border-block: 1px solid rgba(157, 120, 56, .16);
}

.drs-home-theses::before {
  background: linear-gradient(90deg, transparent, var(--alnodom-gold), transparent);
}

.drs-home-services {
  background: linear-gradient(180deg, #f6faf9 0%, #dfeae7 100%) !important;
  border-block: 1px solid rgba(49, 95, 89, .16);
}

.drs-home-services::before {
  background: linear-gradient(90deg, transparent, var(--alnodom-green), transparent);
}

.section-heading .kicker {
  font-size: 1.12rem !important;
  font-weight: 800 !important;
}

.section-heading h2 {
  font-size: clamp(2.35rem, 3.3vw, 3.5rem) !important;
  line-height: 1.28 !important;
  font-weight: 800 !important;
}

.section-heading p {
  font-size: clamp(1.12rem, 1.28vw, 1.35rem) !important;
  line-height: 1.82 !important;
}

.thesis-total-counter {
  border: 1px solid rgba(157, 120, 56, .26);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(157, 120, 56, .08);
}

.thesis-total-counter span { font-size: 1.08rem !important; }
.thesis-total-counter strong {
  font-size: clamp(1.85rem, 2.4vw, 2.45rem) !important;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.drs-services-group {
  margin-block: 24px;
  padding: clamp(20px, 3vw, 34px);
  border-radius: 22px;
}

.drs-services-group:nth-of-type(odd) {
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(49,95,89,.12);
}

.drs-services-group:nth-of-type(even) {
  background: rgba(250,247,239,.75);
  border: 1px solid rgba(157,120,56,.13);
}

.drs-services-group > h3 {
  margin-bottom: .35rem;
  font-size: clamp(1.85rem, 2.2vw, 2.25rem) !important;
  font-weight: 800;
}

.drs-services-group > p { font-size: 1.15rem !important; }

@media (max-width: 1024px) {
  .hero-grid { gap: 28px; }
  .three-grid { gap: 18px; }
  .search-heading strong { font-size: 1.55rem !important; }
  .library-search input,
  .library-search button { font-size: 1.18rem !important; }
}

@media (max-width: 780px) {
  .hero { padding-bottom: 38px !important; }
  .hero h1 { font-size: clamp(2.35rem, 9vw, 3.35rem) !important; }
  .drs-home-section { padding-block: 46px !important; }
  .section-heading h2 { font-size: clamp(2rem, 8vw, 2.6rem) !important; }
  .drs-services-group { padding: 18px; border-radius: 16px; }

  .search-heading strong { font-size: 1.5rem !important; }
  .search-heading span,
  .quick-search,
  .quick-search span,
  .quick-search a { font-size: 1.05rem !important; }

  .library-search { min-height: auto; }
  .library-search input,
  .library-search button,
  .search-wrap .button {
    min-height: 58px !important;
    font-size: 1.12rem !important;
  }
}

@media (max-width: 480px) {
  .hero-actions { align-items: stretch; }
  .hero-actions .button { width: 100%; justify-content: center; }
  .library-search input,
  .library-search button,
  .search-wrap .button { font-size: 1.08rem !important; }
}


/* ==========================================================
   1.6 FRONT-PAGE HIGH-READABILITY OVERRIDES
   Based on the actual rendered hero/search DOM.
   ========================================================== */

/* Eyebrow / institutional descriptor */
body.home .hero .eyebrow,
body.home .hero .eyebrow span,
body.home .hero-copy .eyebrow {
  font-size: 24px !important;
  line-height: 1.55 !important;
  font-weight: 800 !important;
  opacity: 1 !important;
}

/* Main hero title */
body.home .hero h1 {
  font-size: clamp(64px, 5.3vw, 92px) !important;
  line-height: 1.18 !important;
  font-weight: 800 !important;
}

body.home .hero h1 em {
  font-size: 1em !important;
  font-weight: 800 !important;
}

/* Main explanatory paragraph */
body.home .hero .hero-copy > p {
  font-size: 27px !important;
  line-height: 1.85 !important;
  font-weight: 600 !important;
  color: rgba(255,255,255,.96) !important;
}

/* Primary / secondary calls to action */
body.home .hero .hero-actions .button,
body.home .hero .hero-secondary,
body.home .hero .hero-secondary span {
  font-size: 23px !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
}

/* Research-integrity note below CTAs */
body.home .hero .hero-note,
body.home .hero .hero-note span {
  font-size: 21px !important;
  line-height: 1.6 !important;
  font-weight: 700 !important;
  color: rgba(255,255,255,.94) !important;
}

/* Floating card on the illustration */
body.home .hero .floating-note strong {
  font-size: 21px !important;
  line-height: 1.4 !important;
  font-weight: 800 !important;
}

body.home .hero .floating-note small {
  font-size: 17px !important;
  line-height: 1.5 !important;
  font-weight: 700 !important;
}

/* Decorative labels - remain secondary but readable */
body.home .hero .art-label {
  font-size: 17px !important;
  font-weight: 700 !important;
  opacity: .95 !important;
}

/* Search block */
body.home .search-wrap .search-heading strong {
  font-size: 32px !important;
  line-height: 1.45 !important;
  font-weight: 800 !important;
  color: #173238 !important;
}

body.home .search-wrap .search-heading span {
  font-size: 23px !important;
  line-height: 1.6 !important;
  font-weight: 600 !important;
  color: #36565a !important;
}

body.home .search-wrap .library-search input[type="search"],
body.home .search-wrap .library-search input {
  font-size: 25px !important;
  line-height: 1.5 !important;
  font-weight: 600 !important;
  color: #173238 !important;
}

body.home .search-wrap .library-search input::placeholder {
  font-size: 25px !important;
  font-weight: 600 !important;
  color: #536a6e !important;
  opacity: 1 !important;
}

body.home .search-wrap .library-search button,
body.home .search-wrap .button {
  font-size: 23px !important;
  font-weight: 800 !important;
}

body.home .search-wrap .quick-search,
body.home .search-wrap .quick-search span,
body.home .search-wrap .quick-search a {
  font-size: 21px !important;
  line-height: 1.6 !important;
  font-weight: 700 !important;
  color: #173238 !important;
}

/* Section headings */
body.home .section-heading .kicker {
  font-size: 21px !important;
  font-weight: 800 !important;
}

body.home .section-heading h2 {
  font-size: clamp(46px, 3.5vw, 62px) !important;
  line-height: 1.28 !important;
  font-weight: 800 !important;
}

body.home .section-heading p {
  font-size: 24px !important;
  line-height: 1.75 !important;
  font-weight: 600 !important;
}

body.home .section-heading .text-link {
  font-size: 21px !important;
  font-weight: 800 !important;
}

body.home .drs-services-group > h3 {
  font-size: 38px !important;
  line-height: 1.4 !important;
  font-weight: 800 !important;
}

body.home .drs-services-group > p {
  font-size: 23px !important;
  line-height: 1.7 !important;
  font-weight: 600 !important;
}

/* Counter */
body.home .thesis-total-counter span {
  font-size: 21px !important;
  font-weight: 700 !important;
}
body.home .thesis-total-counter strong {
  font-size: 46px !important;
}

@media (max-width: 1024px) {
  body.home .hero .eyebrow { font-size: 21px !important; }
  body.home .hero h1 { font-size: clamp(54px, 7vw, 72px) !important; }
  body.home .hero .hero-copy > p { font-size: 23px !important; }

  body.home .search-wrap .search-heading strong { font-size: 28px !important; }
  body.home .search-wrap .search-heading span { font-size: 21px !important; }
  body.home .search-wrap .library-search input,
  body.home .search-wrap .library-search input::placeholder { font-size: 22px !important; }
  body.home .search-wrap .library-search button { font-size: 21px !important; }

  body.home .section-heading h2 { font-size: clamp(40px, 5vw, 52px) !important; }
  body.home .section-heading p { font-size: 22px !important; }
}

@media (max-width: 780px) {
  body.home .hero .eyebrow { font-size: 19px !important; }
  body.home .hero h1 { font-size: clamp(45px, 11vw, 60px) !important; }
  body.home .hero .hero-copy > p { font-size: 21px !important; }
  body.home .hero .hero-actions .button,
  body.home .hero .hero-secondary { font-size: 20px !important; }
  body.home .hero .hero-note,
  body.home .hero .hero-note span { font-size: 18px !important; }

  body.home .search-wrap .search-heading strong { font-size: 26px !important; }
  body.home .search-wrap .search-heading span { font-size: 19px !important; }
  body.home .search-wrap .library-search input,
  body.home .search-wrap .library-search input::placeholder { font-size: 20px !important; }
  body.home .search-wrap .quick-search,
  body.home .search-wrap .quick-search span,
  body.home .search-wrap .quick-search a { font-size: 18px !important; }

  body.home .section-heading h2 { font-size: 38px !important; }
  body.home .section-heading p { font-size: 20px !important; }
}


/* 1.7 keep home readable with the clearer Arabic sans stack */
body.home .hero,
body.home .search-wrap,
body.home .drs-home-section {
  font-family: var(--alnodom-ui-font) !important;
}

body.home .hero h1,
body.home .section-heading h2,
body.home .drs-services-group > h3,
body.home .search-heading strong {
  font-family: var(--alnodom-heading-font) !important;
}

body.home .hero .hero-copy > p {
  font-size: clamp(22px, 1.55vw, 28px) !important;
  line-height: 1.85 !important;
  font-weight: 600 !important;
}

body.home .search-heading span,
body.home .quick-search,
body.home .quick-search a,
body.home .quick-search span {
  font-size: clamp(18px, 1.1vw, 21px) !important;
  font-weight: 600 !important;
}
