@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap");

/* ============================================================
   Dammam Health Network — Public Portal (Home)
   شبكة الدمام الصحية · الصحة القابضة
   Designed & Developed by Ali Abukallah
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body.portal-body {
    display:     block;
    font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

.portal-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   TOP NAV
   ============================================================ */
.portal-nav {
    position:      sticky;
    top:           0;
    z-index:       500;
    background:    rgba(0,16,31,0.86);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.portal-nav-inner {
    max-width:       1180px;
    margin:          0 auto;
    padding:         0 24px;
    height:          72px;
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    gap:             16px;
}

.portal-brand {
    display:     flex;
    align-items: center;
    gap:         12px;
    flex-shrink: 0;
}

.portal-brand img {
    width:         42px;
    height:        42px;
    object-fit:    contain;
    border-radius: 10px;
    background:    rgba(255,255,255,0.92);
    border:        1px solid rgba(255,255,255,0.4);
    padding:       3px;
}

.portal-brand-text {
    display:        flex;
    flex-direction: column;
    line-height:    1.3;
}

.portal-brand-name {
    font-size:      17px;
    font-weight:    800;
    color:          #fff;
    letter-spacing: 0.5px;
}

.portal-brand-sub {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.55);
}

.portal-nav-links {
    display:     flex;
    align-items: center;
    gap:         28px;
    flex:        1;
    justify-content: center;
}

.portal-nav-links a {
    font-size:   13.5px;
    font-weight: 600;
    color:       rgba(255,255,255,0.75);
    transition:  var(--transition);
    padding:     6px 2px;
    position:    relative;
}

.portal-nav-links a::after {
    content:    '';
    position:   absolute;
    bottom:     -2px;
    right:      0;
    left:       0;
    height:     2px;
    background: var(--gold);
    transform:  scaleX(0);
    transition: transform 0.25s var(--ease);
}

.portal-nav-links a:hover { color: #fff; }
.portal-nav-links a:hover::after { transform: scaleX(1); }

.portal-login-btn {
    display:         inline-flex;
    align-items:     center;
    gap:             8px;
    padding:         10px 22px;
    border-radius:   var(--radius-sm);
    background:      linear-gradient(135deg, #001d3d, var(--green));
    color:           #fff;
    font-size:       13.5px;
    font-weight:     700;
    box-shadow:      0 4px 14px rgba(0,59,113,0.25);
    transition:      var(--transition);
    flex-shrink:     0;
    white-space:     nowrap;
}

.portal-login-btn:hover {
    box-shadow: 0 6px 20px rgba(0,59,113,0.35);
    transform:  translateY(-1px);
}

.portal-nav-toggle {
    display:       none;
    width:         40px;
    height:        40px;
    border-radius: var(--radius-sm);
    border:        1px solid rgba(255,255,255,0.16);
    background:    rgba(255,255,255,0.06);
    color:         #fff;
    align-items:   center;
    justify-content: center;
    flex-shrink:   0;
}

.portal-mobile-menu {
    display:    none;
    flex-direction: column;
    gap:        4px;
    padding:    12px 24px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: #00101f;
}

.portal-mobile-menu.open { display: flex; }

.portal-mobile-menu a {
    padding:       12px 10px;
    border-radius: var(--radius-sm);
    font-size:     14px;
    font-weight:   600;
    color:         rgba(255,255,255,0.75);
}

.portal-mobile-menu a:hover { background: rgba(255,255,255,0.08); color: #fff; }

.portal-mobile-menu .portal-login-btn {
    justify-content: center;
    margin-top: 6px;
}

/* ============================================================
   HERO
   ============================================================ */
.portal-hero {
    position:  relative;
    overflow:  hidden;
    padding:   72px 24px 88px;
    background: linear-gradient(160deg, #001d3d 0%, #003B71 55%, #00527a 100%);
    text-align: center;
}

.portal-hero-orb {
    position:      absolute;
    border-radius: 50%;
    filter:        blur(70px);
    opacity:       0.35;
    pointer-events: none;
}

.portal-hero-orb-1 { width: 420px; height: 420px; background: #00A6A6; top: -160px; left: -100px; }
.portal-hero-orb-2 { width: 320px; height: 320px; background: #4dd8d8; bottom: -140px; right: -80px; }

.portal-hero-inner {
    position:  relative;
    z-index:   1;
    max-width: 720px;
    margin:    0 auto;
}

.portal-hero-badge {
    display:        inline-block;
    padding:         6px 18px;
    border-radius:   30px;
    background:      rgba(0,166,166,0.18);
    border:          1px solid rgba(0,166,166,0.35);
    color:           #7ee8e8;
    font-size:       12px;
    font-weight:     700;
    letter-spacing:  0.5px;
    margin-bottom:   20px;
}

.portal-hero-title {
    font-size:   40px;
    font-weight: 900;
    color:       #fff;
    line-height: 1.3;
    margin-bottom: 16px;
}

.portal-hero-sub {
    font-size:   15.5px;
    color:       rgba(255,255,255,0.75);
    line-height: 1.8;
    margin-bottom: 32px;
}

.portal-hero-actions {
    display:         flex;
    align-items:     center;
    justify-content: center;
    gap:             14px;
    flex-wrap:       wrap;
}

.portal-btn {
    display:         inline-flex;
    align-items:     center;
    gap:             8px;
    padding:         13px 28px;
    border-radius:   var(--radius-sm);
    font-size:       14px;
    font-weight:     700;
    transition:      var(--transition);
}

.portal-btn-primary {
    background: #00A6A6;
    color:      #001d3d;
    box-shadow: 0 6px 22px rgba(0,166,166,0.35);
}
.portal-btn-primary:hover {
    background: #4dd8d8;
    transform:  translateY(-2px);
    box-shadow: 0 10px 28px rgba(0,166,166,0.45);
}

.portal-btn-outline {
    background: rgba(255,255,255,0.06);
    color:      #fff;
    border:     1.5px solid rgba(255,255,255,0.35);
}
.portal-btn-outline:hover {
    background: rgba(255,255,255,0.14);
    border-color: #fff;
}

/* ============================================================
   SECTIONS (shared) — atmospheric dark-navy theme, site-wide
   ============================================================ */
.portal-section {
    --sp-2: 8px;
    --sp-3: 16px;
    --sp-4: 24px;
    --sp-5: 32px;
    --sp-6: 48px;
    position:   relative;
    overflow:   hidden;
    padding:    72px 24px;
    background:
        radial-gradient(ellipse 900px 500px at 12% -10%, rgba(0,166,166,0.16), transparent 60%),
        radial-gradient(ellipse 700px 600px at 100% 110%, rgba(77,216,216,0.10), transparent 55%),
        linear-gradient(165deg, #00101f 0%, #001d3d 42%, #002d55 78%, #013a5e 100%);
}

/* alternate sections get a slightly different glow placement for visual rhythm */
.portal-section:nth-of-type(even) {
    background:
        radial-gradient(ellipse 800px 500px at 90% -10%, rgba(0,166,166,0.14), transparent 60%),
        radial-gradient(ellipse 700px 600px at 0% 110%, rgba(77,216,216,0.10), transparent 55%),
        linear-gradient(165deg, #00101f 0%, #001d3d 42%, #002d55 78%, #013a5e 100%);
}

/* subtle atmospheric texture — faint dot grid for depth, no extra asset */
.portal-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 40%, transparent 100%);
    pointer-events: none;
}

.portal-section > * {
    position: relative;
    z-index:  1;
}

.portal-section-head {
    max-width:     640px;
    margin:        0 auto var(--sp-6);
    text-align:    center;
}

.portal-section-eyebrow {
    display:         inline-block;
    font-size:       11.5px;
    font-weight:     700;
    letter-spacing:  1px;
    color:           #8ef2f2;
    background:      rgba(0,166,166,0.16);
    border:          1px solid rgba(0,166,166,0.35);
    padding:         5px 14px;
    border-radius:   20px;
    margin-bottom:   14px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.portal-section-head h2 {
    font-size:      28px;
    font-weight:    800;
    color:          #fff;
    letter-spacing: 0.2px;
    margin-bottom:  10px;
}

.portal-section-head p {
    font-size:   14px;
    color:       rgba(255,255,255,0.66);
    line-height: 1.8;
}

/* ============================================================
   SERVICES — CATEGORIES + CARD GRID
   ============================================================ */
.portal-category { max-width: 1130px; margin: 0 auto 48px; }
.portal-category:last-child { margin-bottom: 0; }

.portal-category-head {
    display:       flex;
    align-items:   center;
    gap:           14px;
    margin-bottom: 20px;
    padding-inline-start: 2px;
}

.portal-category-icon {
    width:            46px;
    height:           46px;
    border-radius:    13px;
    display:          flex;
    align-items:      center;
    justify-content:  center;
    flex-shrink:      0;
    color:            #fff;
    box-shadow:       0 4px 14px rgba(0,0,0,0.12);
}

.cat-a { background: linear-gradient(135deg, #001d3d, #003B71); }
.cat-b { background: linear-gradient(135deg, #00707a, #00A6A6); }
.cat-c { background: linear-gradient(135deg, #7a5b00, #c99a1f); }

.portal-category-head h3 {
    font-size:   18px;
    font-weight: 800;
    color:       #fff;
}

.portal-category-head span {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
    margin-top: 2px;
}

.portal-grid {
    display:               grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap:                   16px;
}

.portal-card {
    display:         flex;
    align-items:     center;
    gap:             14px;
    padding:         18px;
    background:      linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border:          1px solid rgba(255,255,255,0.14);
    border-radius:   16px;
    box-shadow:      inset 0 1px 0 rgba(255,255,255,0.1), 0 8px 24px rgba(0,10,25,0.25);
    transition:      transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.portal-card:hover {
    transform:    translateY(-4px);
    border-color: rgba(0,166,166,0.55);
    box-shadow:   inset 0 1px 0 rgba(255,255,255,0.14), 0 0 0 1px rgba(0,166,166,0.3), 0 18px 36px rgba(0,166,166,0.22);
}

.portal-card-icon {
    width:            48px;
    height:           48px;
    border-radius:    13px;
    background:       rgba(255,255,255,0.06);
    border:           1px solid rgba(255,255,255,0.12);
    display:          flex;
    align-items:      center;
    justify-content:  center;
    flex-shrink:      0;
    color:            rgba(255,255,255,0.85);
    transition:       var(--transition);
}

.portal-card:hover .portal-card-icon {
    background:   rgba(0,166,166,0.18);
    border-color: rgba(0,166,166,0.5);
    color:        #fff;
    transform:    scale(1.06);
}

.portal-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.portal-card-title {
    font-size:   14.5px;
    font-weight: 700;
    color:       #fff;
    white-space: nowrap;
    overflow:    hidden;
    text-overflow: ellipsis;
}

.portal-card-desc {
    font-size: 11.5px;
    color:     rgba(255,255,255,0.55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.portal-card-arrow {
    flex-shrink: 0;
    color:       rgba(255,255,255,0.4);
    transition:  var(--transition);
}

.portal-card:hover .portal-card-arrow {
    color:     #8ef2f2;
    transform: translateX(-3px);
}
[dir="ltr"] .portal-card:hover .portal-card-arrow { transform: translateX(3px); }

/* ============================================================
   ELECTRONIC SERVICES — glassmorphism card grid
   ============================================================ */

.portal-eservices-grid {
    display:               grid;
    grid-template-columns: repeat(4, 1fr);
    gap:                   var(--sp-5);
    max-width:             1080px;
    margin:                0 auto;
    position:              relative;
    z-index:               1;
}

.portal-eservice-card {
    display:         flex;
    flex-direction:  column;
    align-items:     center;
    justify-content: center;
    text-align:      center;
    gap:             var(--sp-4);
    aspect-ratio:    1 / 1;
    padding:         var(--sp-5);
    position:        relative;
    isolation:       isolate;
    overflow:        hidden;
    background:      linear-gradient(160deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02));
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter:         blur(18px) saturate(140%);
    border:          1px solid rgba(255,255,255,0.14);
    border-radius:   20px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.16),
        inset 0 0 0 1px rgba(255,255,255,0.02),
        0 12px 30px rgba(0,10,25,0.35);
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

/* diagonal glass sheen */
.portal-eservice-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(255,255,255,0.10) 0%, transparent 30%, transparent 100%);
    pointer-events: none;
}

.portal-eservice-card:hover,
.portal-eservice-card:focus-visible {
    transform:    translateY(-5px);
    border-color: rgba(0,166,166,0.55);
    background:   linear-gradient(160deg, rgba(255,255,255,0.14), rgba(0,166,166,0.06));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.22),
        0 0 0 1px rgba(0,166,166,0.3),
        0 22px 48px rgba(0,166,166,0.22),
        0 12px 28px rgba(0,10,25,0.4);
}

.portal-eservice-card:focus-visible {
    outline:        2px solid #00A6A6;
    outline-offset: 3px;
}

.portal-eservice-icon {
    width:            112px;
    height:           112px;
    flex-shrink:      0;
    display:          flex;
    align-items:      center;
    justify-content:  center;
    position:         relative;
    z-index:          1;
    transition:       all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.portal-eservice-icon img {
    width:      100%;
    height:     100%;
    object-fit: contain;
    display:    block;
    /* transparent PNGs — no background/border behind them by design */
    filter: drop-shadow(0 6px 14px rgba(0,10,25,0.4));
}

.portal-eservice-icon svg { color: var(--green); }

.portal-eservice-card span {
    position:       relative;
    z-index:        1;
    font-size:       15px;
    font-weight:     700;
    letter-spacing:  0.15px;
    color:           #fff;
    line-height:     1.4;
    transition:      all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* on hover/focus, the default logo + label slide up and fade out
   to make way for the download overlay */
.portal-eservice-card:hover .portal-eservice-icon,
.portal-eservice-card:focus-within .portal-eservice-icon,
.portal-eservice-card.is-open .portal-eservice-icon {
    opacity:   0;
    transform: translateY(-16px) scale(0.94);
}

.portal-eservice-card:hover > span,
.portal-eservice-card:focus-within > span,
.portal-eservice-card.is-open > span {
    opacity:   0;
    transform: translateY(-16px);
}

/* ── Download overlay (App Store / Google Play) ── */
.portal-eservice-overlay {
    position:        absolute;
    inset:           0;
    z-index:         2;
    display:         flex;
    flex-direction:  column;
    align-items:     center;
    justify-content: center;
    gap:             12px;
    padding:         20px;
    background:      linear-gradient(160deg, rgba(0,16,31,0.88), rgba(0,29,61,0.94));
    opacity:         0;
    transform:       translateY(18px);
    pointer-events:  none;
    transition:       all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.portal-eservice-card:hover .portal-eservice-overlay,
.portal-eservice-card:focus-within .portal-eservice-overlay,
.portal-eservice-card.is-open .portal-eservice-overlay {
    opacity:        1;
    transform:      translateY(0);
    pointer-events: auto;
}

.portal-store-btn {
    display:         inline-flex;
    align-items:     center;
    gap:             8px;
    width:           100%;
    max-width:       168px;
    padding:         9px 16px;
    border-radius:   999px;
    background:      rgba(255,255,255,0.10);
    border:          1px solid rgba(255,255,255,0.28);
    color:           #fff;
    font-size:       11.5px;
    font-weight:     700;
    white-space:     nowrap;
    justify-content: center;
    transition:      background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.portal-store-btn svg { flex-shrink: 0; }

.portal-store-btn:hover,
.portal-store-btn:focus-visible {
    background:   rgba(0,166,166,0.28);
    border-color: rgba(0,166,166,0.65);
    transform:    translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
    .portal-eservice-card,
    .portal-eservice-icon,
    .portal-eservice-card span,
    .portal-eservice-overlay,
    .portal-store-btn { transition: none; }
}

/* ============================================================
   CONTACT
   ============================================================ */
.portal-contact-grid {
    max-width: 640px;
    margin:    0 auto;
}

.portal-contact-info {
    background:      linear-gradient(160deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02));
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    border:          1px solid rgba(255,255,255,0.14);
    box-shadow:      inset 0 1px 0 rgba(255,255,255,0.16), 0 12px 30px rgba(0,10,25,0.35);
    border-radius:   20px;
    padding:         40px 36px;
    color:           #fff;
    text-align:      center;
}

.portal-contact-info .portal-contact-list { text-align: right; }
[dir="ltr"] .portal-contact-info .portal-contact-list { text-align: left; }

.portal-contact-info h2 {
    font-size:   24px;
    font-weight: 800;
    margin-bottom: 10px;
}

.portal-contact-info > p {
    font-size:   13.5px;
    color:       rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 26px;
}

.portal-contact-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 26px; }

.portal-contact-list li {
    display:     flex;
    align-items: center;
    gap:         14px;
    font-size:   13.5px;
}

.portal-contact-list .portal-contact-icon {
    width:            38px;
    height:           38px;
    border-radius:    11px;
    background:       rgba(0,166,166,0.18);
    color:            #7ee8e8;
    display:          flex;
    align-items:      center;
    justify-content:  center;
    flex-shrink:      0;
}

.portal-contact-list .portal-placeholder {
    color: rgba(255,255,255,0.55);
    font-style: normal;
}

.portal-contact-social {
    display:         flex;
    justify-content: center;
    gap:             10px;
}

.portal-contact-social a {
    width:            38px;
    height:           38px;
    border-radius:    50%;
    background:       rgba(255,255,255,0.08);
    border:           1px solid rgba(255,255,255,0.18);
    display:          flex;
    align-items:      center;
    justify-content:  center;
    color:            #fff;
    transition:       var(--transition);
}

.portal-contact-social a:hover {
    background: #00A6A6;
    border-color: #00A6A6;
    transform:  translateY(-2px);
}

/* ============================================================
   JOURNEY — 3-step timeline (رحلة التجمعات)
   ============================================================ */
.portal-journey {
    position:  relative;
    display:   flex;
    max-width: 980px;
    margin:    0 auto;
    gap:       var(--sp-5);
}

.portal-journey-line {
    position:   absolute;
    top:        60px;
    right:      calc(16.6% + 4px);
    left:       calc(16.6% + 4px);
    height:     2px;
    background: linear-gradient(90deg, rgba(0,166,166,0.05), rgba(0,166,166,0.55), rgba(0,166,166,0.05));
}

.portal-journey-step {
    position:       relative;
    flex:           1;
    display:        flex;
    flex-direction: column;
    align-items:    center;
    text-align:     center;
    gap:            var(--sp-4);
}

.portal-journey-circle {
    position:        relative;
    width:            120px;
    height:           120px;
    border-radius:    50%;
    display:          flex;
    align-items:      center;
    justify-content:  center;
    background:       linear-gradient(160deg, rgba(255,255,255,0.12), rgba(255,255,255,0.03));
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter:  blur(14px);
    border:           1px solid rgba(255,255,255,0.18);
    box-shadow:       inset 0 1px 0 rgba(255,255,255,0.18), 0 12px 30px rgba(0,10,25,0.35);
    color:            #8ef2f2;
    transition:       transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.portal-journey-step:hover .portal-journey-circle {
    transform:    translateY(-4px) scale(1.04);
    border-color: rgba(0,166,166,0.6);
    box-shadow:   inset 0 1px 0 rgba(255,255,255,0.22), 0 0 0 1px rgba(0,166,166,0.3), 0 20px 44px rgba(0,166,166,0.28);
}

.portal-journey-num {
    position:        absolute;
    top:             -6px;
    inset-inline-end: -6px;
    width:           30px;
    height:          30px;
    border-radius:   50%;
    background:      linear-gradient(135deg, #00A6A6, #4dd8d8);
    color:           #001d3d;
    font-size:       12px;
    font-weight:     800;
    display:         flex;
    align-items:     center;
    justify-content: center;
    box-shadow:      0 4px 12px rgba(0,166,166,0.4);
}

.portal-journey-step h3 {
    font-size:   15.5px;
    font-weight: 700;
    color:       #fff;
    line-height: 1.5;
    max-width:   220px;
}

/* ============================================================
   DAMMAM MEDICAL COMPLEX — map + info card
   ============================================================ */
.portal-location-wrap {
    display:               grid;
    grid-template-columns: 1fr 1fr;
    gap:                   32px;
    max-width:             1080px;
    margin:                0 auto;
    align-items:           start;
}

.portal-map-embed {
    height:        400px;
    box-sizing:    border-box;
    border-radius: 20px;
    overflow:      hidden;
    border:        1px solid rgba(255,255,255,0.14);
    box-shadow:    0 12px 30px rgba(0,10,25,0.35);
}

.portal-map-embed iframe {
    width:   100%;
    height:  100%;
    border:  0;
    display: block;
}

.portal-location-card {
    height:          400px;
    box-sizing:      border-box;
    display:         flex;
    flex-direction:  column;
    gap:             18px;
    padding:         36px 32px;
    background:      linear-gradient(160deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02));
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    border:          1px solid rgba(255,255,255,0.14);
    box-shadow:      inset 0 1px 0 rgba(255,255,255,0.16), 0 12px 30px rgba(0,10,25,0.35);
    border-radius:   20px;
    color:           #fff;
    transition:      border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.portal-location-card:hover {
    border-color: rgba(0,166,166,0.4);
    box-shadow:   inset 0 1px 0 rgba(255,255,255,0.16), 0 0 0 1px rgba(0,166,166,0.22), 0 18px 40px rgba(0,166,166,0.18);
}

.portal-location-card h3 {
    font-size:     22px;
    font-weight:   800;
    line-height:   1.3;
    flex-shrink:   0;
}

.portal-location-list {
    display:        flex;
    flex-direction: column;
    gap:            14px;
    flex-shrink:    0;
}

.portal-location-list li {
    display:     flex;
    align-items: flex-start;
    gap:         14px;
    font-size:   13.5px;
    line-height: 1.6;
    color:       rgba(255,255,255,0.85);
}

.portal-location-list a { color: rgba(255,255,255,0.85); }
.portal-location-list a:hover { color: #8ef2f2; }

.portal-location-icon {
    width:            34px;
    height:           34px;
    border-radius:    10px;
    background:       rgba(0,166,166,0.18);
    color:            #7ee8e8;
    display:          flex;
    align-items:      center;
    justify-content:  center;
    flex-shrink:      0;
}

.portal-location-card .portal-btn {
    align-self: flex-start;
    margin-top: auto;
    flex-shrink: 0;
}

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal {
    opacity:    0;
    transform:  translateY(28px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
    opacity:   1;
    transform: none;
}

.reveal-stagger > * {
    transition-delay: calc(var(--reveal-i, 0) * 90ms);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity:    1;
        transform:  none;
        transition: none;
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .portal-nav-links { display: none; }
    .portal-nav-toggle { display: flex; }
    .portal-hero-title { font-size: 32px; }
    .portal-eservices-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .portal-eservice-icon { width: 76px; height: 76px; border-radius: 18px; }
    .portal-eservice-icon img { padding: 12px; }

    .portal-journey { flex-direction: column; gap: 40px; }
    .portal-journey-line { top: 0; bottom: 0; right: 59px; left: auto; width: 2px; height: auto; background: linear-gradient(180deg, rgba(0,166,166,0.05), rgba(0,166,166,0.55), rgba(0,166,166,0.05)); }
    [dir="ltr"] .portal-journey-line { right: auto; left: 59px; }
    .portal-journey-step { flex-direction: row; text-align: right; gap: 20px; }
    [dir="ltr"] .portal-journey-step { text-align: left; }
    .portal-journey-circle { width: 100px; height: 100px; flex-shrink: 0; }
    .portal-journey-step h3 { max-width: none; }

    .portal-location-wrap { grid-template-columns: 1fr; gap: 20px; }
    .portal-map-embed { height: 260px; }
    .portal-location-card { height: auto; }
}

@media (max-width: 640px) {
    .portal-nav-inner { height: 64px; padding: 0 16px; }
    .portal-brand img { width: 36px; height: 36px; }
    .portal-brand-name { font-size: 15px; }
    .portal-brand-sub { display: none; }
    .portal-login-btn span { display: none; }
    .portal-login-btn { padding: 10px 14px; }

    .portal-hero { padding: 48px 16px 64px; }
    .portal-hero-title { font-size: 25px; }
    .portal-hero-sub { font-size: 14px; }
    .portal-btn { width: 100%; justify-content: center; }
    .portal-hero-actions { flex-direction: column; }

    .portal-section { padding: 48px 16px; }
    .portal-section-head h2 { font-size: 22px; }

    .portal-category-head h3 { font-size: 16px; }
    .portal-grid { grid-template-columns: 1fr; }

    .portal-eservices-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .portal-eservice-card { padding: 16px; gap: 12px; border-radius: 16px; }
    .portal-eservice-icon { width: 64px; height: 64px; border-radius: 16px; }
    .portal-eservice-icon img { padding: 10px; }
    .portal-eservice-card span { font-size: 13px; }
    .portal-eservice-overlay { padding: 14px; gap: 8px; }
    .portal-store-btn { padding: 7px 12px; font-size: 10.5px; }

    .portal-contact-info { padding: 28px 22px; }

    .portal-journey-circle { width: 76px; height: 76px; }
    .portal-journey-num { width: 26px; height: 26px; font-size: 11px; }
    .portal-journey-step h3 { font-size: 14px; }

    .portal-location-card { padding: 28px 22px; }
}
