/*
Theme Name: SF Trust Hospital
Theme URI: https://sftrusthospital.org/
Author: SF Trust Hospital
Description: Lightweight, responsive and editable hospital theme for Syeda Fatima Tu Zahra (S.A.) Trust Hospital.
Version: 1.0.7
Text Domain: sftrust
*/
:root{--navy:#123B5D;--blue:#1F6F9F;--teal:#2AA7A0;--sky:#EAF6FA;--mint:#F1FBFA;--gold:#E8B34A;--ink:#173042;--muted:#60727E;--white:#fff;--border:#DDE9EE;--shadow:0 18px 45px rgba(18,59,93,.10);--radius:18px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:#fff;line-height:1.65}a{color:inherit;text-decoration:none}img{max-width:100%;height:auto;display:block}.container{width:min(1180px,92%);margin:auto}.topbar{background:var(--navy);color:#fff;font-size:13px}.topbar .container{display:flex;justify-content:space-between;gap:18px;padding:8px 0}.header{background:#fff;border-bottom:1px solid var(--border);position:sticky;top:0;z-index:100}.header .container{display:flex;align-items:center;gap:24px;padding:13px 0}.brand{display:flex;align-items:center;gap:13px;min-width:0}.brand img{width:auto;max-height:68px}.brand-name{font-size:20px;line-height:1.2;font-weight:800;color:var(--navy);max-width:360px}.nav{margin-left:auto;display:flex;align-items:center;gap:20px}.nav a{font-weight:700;font-size:14px;color:var(--navy)}.nav a:hover{color:var(--teal)}.donate-btn,.btn{display:inline-flex;align-items:center;justify-content:center;padding:12px 19px;border-radius:9px;font-weight:800;border:0;cursor:pointer;background:var(--teal);color:#fff!important}.donate-btn{background:var(--gold);color:#173042!important}.header-donate{display:none}.mobile-toggle{display:none;margin-left:auto;background:transparent;border:0;font-size:29px;color:var(--navy)}.hero{position:relative;background:var(--navy);color:#fff;overflow:hidden}.hero-media{position:absolute;inset:0}.hero-media img{width:100%;height:100%;object-fit:cover;object-position:center;filter:saturate(.92)}.hero-media:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,39,63,.9) 0%,rgba(8,39,63,.64) 43%,rgba(8,39,63,.18) 78%,rgba(8,39,63,.08) 100%)}.hero-inner{position:relative;z-index:2;min-height:590px;display:flex;align-items:center}.hero-content{max-width:680px;padding:72px 0}.eyebrow{font-size:13px;font-weight:800;letter-spacing:1.7px;text-transform:uppercase;color:var(--gold)}.hero h1{font-size:clamp(38px,5vw,64px);line-height:1.05;margin:13px 0 18px}.hero p{font-size:18px;max-width:620px;margin:0}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:27px}.btn-light{background:#fff;color:var(--navy)!important}.hero-dots{position:absolute;bottom:18px;left:0;right:0;text-align:center;z-index:3}.hero-dots span{display:inline-block;width:9px;height:9px;border-radius:50%;background:rgba(255,255,255,.5);margin:0 4px}.hero-dots span.active{background:#fff}.section{padding:82px 0}.section.alt{background:var(--mint)}.section-head{text-align:center;max-width:780px;margin:0 auto 42px}.section-head .eyebrow{color:var(--teal)}.section-head h2{font-size:38px;line-height:1.15;margin:8px 0 12px;color:var(--navy)}.section-head p{margin:0;color:var(--muted)}.quick-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;margin-top:-42px;position:relative;z-index:5}.quick-card{background:#fff;border:1px solid var(--border);border-radius:14px;padding:20px 15px;box-shadow:var(--shadow);text-align:center}.quick-card .icon{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--sky);color:var(--teal);font-size:20px;margin:0 auto 10px}.quick-card strong{display:block;color:var(--navy);font-size:14px}.quick-card span{font-size:12px;color:var(--muted)}.about-grid,.message-grid,.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:52px;align-items:center}.media-card{border-radius:var(--radius);overflow:hidden;background:#fff;box-shadow:var(--shadow);border:1px solid var(--border)}.media-card img{width:100%;height:auto;object-fit:contain}.kicker{font-weight:800;color:var(--teal);letter-spacing:1px;font-size:13px}.content h2{font-size:40px;line-height:1.12;color:var(--navy);margin:8px 0 16px}.content p{color:var(--muted)}.pill-row{display:flex;flex-wrap:wrap;gap:9px;margin:20px 0}.pill{padding:7px 11px;background:var(--sky);color:var(--navy);border-radius:999px;font-weight:700;font-size:12px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;box-shadow:0 10px 28px rgba(18,59,93,.07)}.card-body{padding:21px}.card h3{margin:0 0 8px;color:var(--navy);font-size:20px}.card p{margin:0;color:var(--muted);font-size:14px}.service-icon{width:58px;height:58px;border-radius:16px;background:var(--sky);display:grid;place-items:center;color:var(--teal);font-size:25px;margin:22px 22px 0}.service-card .card-body{padding-top:13px}.service-card a{display:inline-block;margin-top:13px;color:var(--blue);font-weight:800;font-size:13px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.stat{padding:28px 18px;background:#fff;border:1px solid var(--border);border-radius:16px;text-align:center}.stat strong{display:block;color:var(--teal);font-size:39px;line-height:1.1}.stat span{display:block;margin-top:7px;font-weight:700;color:var(--navy);font-size:14px}.people{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.person{text-align:center;background:#fff;border:1px solid var(--border);border-radius:18px;overflow:hidden;box-shadow:0 10px 28px rgba(18,59,93,.07)}.person img{width:100%;height:auto;max-height:360px;object-fit:contain;background:#f7fbfc}.person-body{padding:18px}.person-body h3{margin:0;color:var(--navy);font-size:19px}.person-body p{margin:4px 0 0;color:var(--teal);font-weight:800;font-size:13px}.story-grid,.news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.story-card img,.news-card img{width:100%;height:auto;object-fit:contain;background:#f4f8fa}.story-card,.news-card{overflow:hidden;background:#fff;border:1px solid var(--border);border-radius:16px;box-shadow:0 10px 25px rgba(18,59,93,.06)}.story-body,.news-body{padding:18px}.story-body h3,.news-body h3{margin:0 0 7px;color:var(--navy);font-size:18px}.story-body p,.news-body p{margin:0;color:var(--muted);font-size:14px}.doc-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.doc-card img{width:100%;height:auto;object-fit:contain;background:#f6f7f8}.cta{background:linear-gradient(135deg,var(--navy),var(--blue));color:#fff;border-radius:24px;padding:52px}.cta h2{color:#fff;margin:0 0 10px;font-size:38px}.cta p{max-width:700px;color:#e9f5fb}.contact-box{background:#fff;border:1px solid var(--border);border-radius:18px;padding:28px;box-shadow:var(--shadow)}.contact-box h3{margin-top:0;color:var(--navy)}.map-box{min-height:280px;border-radius:18px;background:linear-gradient(135deg,#dff2f6,#f7fbfc);display:grid;place-items:center;color:var(--navy);font-weight:800;border:1px solid var(--border)}.footer{background:#0E2E48;color:#C9D9E3;padding:58px 0 20px}.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:38px}.footer h3{color:#fff;margin-top:0}.footer p{font-size:14px}.footer a:hover{color:#fff}.footer-bottom{border-top:1px solid rgba(255,255,255,.14);margin-top:35px;padding-top:18px;font-size:13px}.whatsapp-float{position:fixed;right:20px;bottom:20px;width:56px;height:56px;border-radius:50%;background:#25D366;color:#fff;display:grid;place-items:center;z-index:9998;box-shadow:0 10px 25px rgba(0,0,0,.2)}.whatsapp-float svg{width:30px;height:30px}.edit-link{display:none}.logged-in .sf-editable{position:relative}.logged-in .sf-editable:hover{outline:2px dashed var(--gold);outline-offset:5px}.logged-in .sf-editable:hover .edit-link{display:inline-flex;position:absolute;top:8px;right:8px;background:var(--navy);color:#fff!important;padding:7px 10px;border-radius:7px;font-size:12px;font-weight:800;z-index:30}.sf-admin-bar{position:fixed;right:18px;bottom:18px;z-index:9999;background:var(--navy);color:#fff;padding:10px 13px;border-radius:10px;font-size:12px;box-shadow:var(--shadow)}.sf-admin-bar a{margin-left:10px;color:#A7E6E1;font-weight:800}.archive-title{padding:70px 0 20px}.single-content{max-width:850px;margin:auto}.single-content img{max-width:100%;height:auto;border-radius:15px}.pagination{margin-top:28px}.pagination a,.pagination span{display:inline-block;padding:8px 12px;border:1px solid var(--border);border-radius:7px;margin-right:4px}.menu-overlay{display:none}
@media(max-width:1050px){.nav{gap:13px}.quick-grid{grid-template-columns:repeat(3,1fr)}.footer-grid{grid-template-columns:1fr 1fr}.hero-inner{min-height:540px}}
@media(max-width:900px){.nav{display:none}.header-donate{display:inline-flex;margin-left:0}.mobile-toggle{display:block}.nav.mobile-open{display:flex;position:absolute;left:4%;right:4%;top:100%;background:#fff;padding:18px;flex-direction:column;align-items:flex-start;border:1px solid var(--border);border-top:0;box-shadow:var(--shadow)}.brand-name{font-size:17px}.about-grid,.message-grid,.contact-grid{grid-template-columns:1fr}.cards,.story-grid,.news-grid,.doc-grid{grid-template-columns:1fr 1fr}.people{grid-template-columns:1fr 1fr}.stats{grid-template-columns:1fr 1fr}.quick-grid{grid-template-columns:1fr 1fr;margin-top:-28px}.section{padding:64px 0}.hero-content{padding:60px 0}.hero h1{font-size:46px}}
@media(max-width:600px){.topbar .container{display:block;text-align:center}.topbar .container span{display:block}.header .container{gap:10px}.brand img{max-height:52px}.brand-name{font-size:14px;max-width:210px}.header-donate{padding:9px 11px;font-size:12px}.hero-inner{min-height:500px}.hero-media:after{background:linear-gradient(90deg,rgba(8,39,63,.9),rgba(8,39,63,.55))}.hero-content{padding:45px 0}.hero h1{font-size:37px}.hero p{font-size:16px}.quick-grid{grid-template-columns:1fr 1fr}.quick-card{padding:15px 8px}.cards,.story-grid,.news-grid,.doc-grid,.people,.stats{grid-template-columns:1fr}.content h2,.section-head h2{font-size:31px}.cta{padding:34px 24px}.cta h2{font-size:30px}.footer-grid{grid-template-columns:1fr}.whatsapp-float{right:15px;bottom:15px;width:54px;height:54px}}

/* V2 editable theme variables */
:root{--sf-primary:#0b6b78;--sf-secondary:#124b68;--sf-accent:#18a999;--sf-hero-overlay:.42;}
.btn,.donate-btn,.hero-primary{background:var(--sf-primary);}
.donate-btn{background:var(--sf-accent);}
.eyebrow,.kicker,a{color:var(--sf-primary);}
.footer{background:var(--sf-secondary);}
.hero::after{background:rgba(0,0,0,var(--sf-hero-overlay));}

.card-media img,.post-featured img{width:100%;height:auto;display:block;object-fit:contain;}
.single-post{max-width:1000px}.post-content{font-size:1.05rem;line-height:1.85}.post-featured{margin:24px 0;border-radius:18px;overflow:hidden}.post-featured img{max-height:none}.news-body small{display:block;margin-bottom:6px;opacity:.7}


/* V3 Blog */
.blog-card h3 a{color:var(--navy);text-decoration:none}.blog-card h3 a:hover{color:var(--sf-primary)}.blog-card img{width:100%;height:auto;display:block;object-fit:contain}.blog-card .news-body>a{display:inline-block;margin-top:12px;color:var(--sf-primary);font-weight:800;font-size:13px}

/* V5: full-width About section inspired by the reference layout */
.about-full{background:#fff;}
.about-full-content{max-width:1040px;margin:0 auto;text-align:center;}
.about-full-content .kicker{margin-bottom:6px;}
.about-full-content h2{font-size:clamp(34px,4vw,52px);line-height:1.12;color:var(--navy);margin:8px 0 18px;}
.about-full-content p{max-width:1000px;margin:0 auto 26px;color:var(--muted);font-size:17px;line-height:1.85;}
.about-full-content .btn{margin-top:2px;}
@media(max-width:900px){.about-full-content{max-width:100%;}.about-full-content p{font-size:16px;line-height:1.75;}}

/* V6: smart hero slides - empty image fields are skipped */
.sf-clear-image{margin-left:4px}.picker .preview span{padding:12px;color:#60727E;font-size:13px}

/* V7 smart hero controls: one image = static, multiple images = slider */
.hero:not(.is-slider) .hero-dots{display:none!important}

/* V9: Homepage order - Welcome, President Message, Leadership, Stories, then Vision, Departments and Services */

/* V10: visually separate Vision/Mission/Values from the Welcome/About section */
.values-section{background:#ffffff !important;border-top:1px solid #e6eff2 !important;border-bottom:1px solid #e6eff2 !important;}
.values-section .section-head{margin-bottom:30px !important;}
.values-section .cards{margin-top:0 !important;}

/* V11: Welcome + Vision/Mission/Values compact layout */
.about-full{padding-bottom:34px !important;}
.about-full .container{max-width:1180px !important;}
.about-full-content{max-width:900px !important;margin:0 auto !important;text-align:center !important;}
.about-full-content p{max-width:900px !important;margin-left:auto !important;margin-right:auto !important;}
.welcome-values{display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:22px !important;max-width:1000px !important;margin:34px auto 0 !important;}
.welcome-value{background:#f7fcfd !important;border:1px solid #dcecf0 !important;border-radius:14px !important;padding:24px 22px !important;min-height:170px !important;box-shadow:0 8px 24px rgba(12,65,92,.07) !important;}
.welcome-value .service-icon{width:46px !important;height:46px !important;display:flex !important;align-items:center !important;justify-content:center !important;border-radius:50% !important;background:#e7f5f7 !important;color:#0b7d86 !important;margin:0 0 15px !important;font-size:21px !important;}
.welcome-value h3{margin:0 0 10px !important;color:#0d426f !important;font-size:20px !important;}
.welcome-value p{margin:0 !important;color:#4c6675 !important;line-height:1.65 !important;font-size:15px !important;}
.welcome-values-button{text-align:center !important;margin-top:26px !important;}
@media(max-width:800px){.welcome-values{grid-template-columns:1fr !important;max-width:620px !important;}.welcome-value{min-height:auto !important;}}

/* V12: Keep Welcome Vision/Mission/Values in one horizontal row on desktop */
.about-full .welcome-values{display:flex !important;flex-direction:row !important;align-items:stretch !important;justify-content:center !important;gap:22px !important;width:100% !important;max-width:1000px !important;margin:34px auto 0 !important;}
.about-full .welcome-values .welcome-value{display:block !important;flex:1 1 0 !important;width:calc((100% - 44px)/3) !important;min-width:0 !important;max-width:none !important;}
@media(max-width:800px){.about-full .welcome-values{flex-direction:column !important;max-width:620px !important;}.about-full .welcome-values .welcome-value{width:100% !important;flex:0 0 auto !important;}}


/* V13: Force three separate Welcome cards on desktop */
.about-full .welcome-values{display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:22px !important;width:100% !important;max-width:1000px !important;margin:34px auto 0 !important;align-items:stretch !important;}
.about-full .welcome-values .welcome-value{display:flex !important;flex-direction:column !important;box-sizing:border-box !important;background:#ffffff !important;border:1px solid #dcecf0 !important;border-radius:16px !important;padding:24px !important;min-height:175px !important;width:auto !important;flex:none !important;box-shadow:0 10px 28px rgba(18,59,93,.08) !important;}
.about-full .welcome-values .welcome-value .service-icon{flex:0 0 auto !important;}
@media(max-width:800px){.about-full .welcome-values{grid-template-columns:1fr !important;}.about-full .welcome-values .welcome-value{width:100% !important;}}

/* V14: Leadership -> Hospital Information -> Stories & Activities homepage order */
/* V15: Dedicated Blog page + yellow Donate button */
.donate-btn,.header-donate{background:#f2c94c !important;color:#123B5D !important;}
.donate-btn:hover,.header-donate:hover{background:#e5b83e !important;color:#123B5D !important;}
.blog-page .section-head h1{font-size:48px;line-height:1.12;margin:8px 0 12px;color:var(--navy);}
.blog-page .blog-grid{align-items:stretch;}
.blog-page .blog-card{height:100%;display:flex;flex-direction:column;}
.blog-page .blog-thumb img{width:100%;height:240px;object-fit:cover;}
.blog-page .blog-card .news-body{display:flex;flex-direction:column;flex:1;}
.blog-page .blog-card .news-body small{display:block;color:var(--muted);margin-bottom:8px;}
.blog-page .blog-card .news-body h2{margin:0 0 8px;color:var(--navy);font-size:22px;line-height:1.25;}
.blog-page .blog-card .news-body p{margin:0 0 14px;}
.blog-page .blog-read{margin-top:auto;display:inline-block;color:var(--sf-primary);font-weight:800;}
.blog-empty{grid-column:1/-1;padding:40px;text-align:center;background:#fff;border:1px solid var(--border);border-radius:var(--radius);}
.blog-page .pagination{margin-top:34px;text-align:center;}
.blog-page .pagination ul{display:flex;justify-content:center;gap:7px;list-style:none;margin:0;padding:0;}
.blog-page .pagination a,.blog-page .pagination span{margin:0;}
@media(max-width:600px){.blog-page .section-head h1{font-size:34px;}.blog-page .blog-thumb img{height:auto;}}

/* V18: Optional videos for Stories & Activities */
.story-video{width:100%;aspect-ratio:16/9;background:#0b2538;overflow:hidden}.story-video iframe,.story-video video{width:100%;height:100%;display:block;border:0;object-fit:cover}.story-card .story-video+ .story-body{min-height:0}

/* V21: Stories & Activities + News & Events responsive sliders */
.content-slider{position:relative;padding:0 46px}
.content-viewport{overflow:hidden}
.content-track{display:flex;gap:22px;transition:transform .55s ease;will-change:transform}
.content-card{flex:0 0 calc((100% - 66px)/4);min-width:0}
.content-card img,.content-card .story-video{width:100%;aspect-ratio:16/10;height:auto;object-fit:cover}
.content-card img{display:block;object-fit:cover}
.story-video{background:#0b2538;overflow:hidden}
.story-video iframe,.story-video video{width:100%;height:100%;display:block;border:0;object-fit:cover}
.content-nav{position:absolute;top:42%;transform:translateY(-50%);width:40px;height:40px;border-radius:50%;border:1px solid var(--border);background:#fff;color:var(--navy);font-size:29px;line-height:1;cursor:pointer;z-index:3;box-shadow:0 6px 18px rgba(18,59,93,.12)}
.content-nav:hover{background:var(--sky)}
.content-prev{left:0}.content-next{right:0}
.content-nav[disabled]{opacity:.35;cursor:default}
.content-dots{text-align:center;margin-top:22px;min-height:10px}
.content-dots button{width:8px;height:8px;border:0;border-radius:50%;padding:0;margin:0 4px;background:#c7dce3;cursor:pointer}
.content-dots button.active{background:var(--teal);transform:scale(1.25)}
.news-date{font-size:12px;color:var(--teal);font-weight:700;margin-bottom:8px}
@media(max-width:900px){.content-card{flex-basis:calc((100% - 22px)/2)}}
@media(max-width:600px){.content-slider{padding:0 38px}.content-card{flex-basis:100%}.content-track{gap:0}.content-nav{width:34px;height:34px;font-size:25px}.content-prev{left:0}.content-next{right:0}}

/* V24: cleaner contact section */
.contact-section .contact-main-head{margin-bottom:34px}
.contact-grid-v2{grid-template-columns:1fr 1fr;align-items:stretch;gap:28px}
.contact-grid-v2 .contact-box{height:100%}
.contact-details h3,.contact-location h3{font-size:22px;margin:0 0 20px;color:var(--navy)}
.contact-item{padding:15px 0;border-bottom:1px solid var(--border)}
.contact-item-label{display:block;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.7px;color:var(--teal);margin-bottom:5px}
.contact-link{font-size:18px;font-weight:800;color:var(--navy);word-break:break-word}
.contact-link:hover,.map-open-link:hover{color:var(--teal)}
.contact-email-card{margin:18px 0;padding:17px 18px;background:var(--sky);border:1px solid var(--border);border-radius:14px}
.contact-email-card .contact-link{display:block}
.contact-address{color:var(--muted);margin:18px 0}
.contact-location-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px}
.contact-location-head h3{margin:0}
.map-open-link{font-weight:800;color:var(--blue);font-size:13px;white-space:nowrap}
.contact-location .map-box{min-height:300px}
.contact-location .map-box a{width:100%;height:100%;min-height:300px;display:grid;place-items:center;align-content:center;gap:7px;padding:30px;text-align:center;color:var(--navy)}
.map-pin{font-size:42px;color:var(--teal);line-height:1}
.contact-location .map-box small{color:var(--muted);font-weight:600}
@media(max-width:900px){.contact-grid-v2{grid-template-columns:1fr}.contact-location .map-box,.contact-location .map-box a{min-height:240px}}

/* V25: email action button beside Call Hospital */
.contact-action-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.contact-email-button{background:var(--gold)!important;color:var(--navy)!important}.contact-email-button:hover{filter:brightness(.96)}

/* V26: professional contact icons and button spacing */
.contact-label-with-icon{display:inline-flex;align-items:center;gap:9px}
.contact-icon{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:6px;background:var(--sky);color:var(--teal);font-size:15px;line-height:1;font-weight:800}
.contact-action-row{display:flex;align-items:center;gap:14px!important;flex-wrap:wrap}
.contact-action-row .contact-action-button{display:inline-flex!important;align-items:center;justify-content:center;gap:9px!important;margin:0!important}
.contact-action-row .contact-email-button{margin-left:0!important}
.button-icon{font-size:17px;line-height:1;font-weight:800}
@media(max-width:600px){.contact-action-row{gap:12px!important}.contact-action-row .contact-action-button{width:auto}}

/* V27: live editable Google Maps embed */
.contact-location .map-box{position:relative;overflow:hidden;padding:0;display:block;min-height:300px;background:#eaf5f7}
.contact-location .hospital-map-iframe{display:block;width:100%;height:300px;border:0}
.contact-location .map-overlay-link{position:absolute!important;left:16px;bottom:14px;width:auto!important;min-height:0!important;display:inline-flex!important;align-items:center;justify-content:center;padding:9px 13px!important;border-radius:8px;background:rgba(255,255,255,.94);box-shadow:0 4px 14px rgba(0,0,0,.12);color:var(--navy)!important;text-decoration:none;font-size:13px;font-weight:800}
.contact-location .map-overlay-text{display:inline-block}
@media(max-width:900px){.contact-location .hospital-map-iframe{height:240px}}

/* V28: clean contact spacing; keep icons only beside labels */
.contact-item,.contact-email-card{display:flex;align-items:center;gap:12px!important}
.contact-item .contact-link,.contact-email-card .contact-link{display:inline-block;margin-left:4px!important}
.contact-action-row{display:flex;align-items:center;gap:14px!important;flex-wrap:wrap}
.contact-action-row .contact-action-button{display:inline-flex!important;align-items:center;justify-content:center;margin:0!important}
.contact-action-row .button-icon{display:none!important}
@media(max-width:600px){.contact-item,.contact-email-card{gap:10px!important}.contact-item .contact-link,.contact-email-card .contact-link{margin-left:3px!important}.contact-action-row{gap:12px!important}}

/* V29: final contact spacing correction */
.contact-item .contact-link,
.contact-email-card .contact-link{
  display:inline-block !important;
  margin-left:12px !important;
}
.contact-action-row{
  display:flex !important;
  align-items:center !important;
  gap:16px !important;
}
.contact-action-row .contact-action-button + .contact-action-button{
  margin-left:0 !important;
}

/* V31: final contact card sizing and button gap */
.contact-grid-v2{display:grid!important;grid-template-columns:1fr 1fr!important;align-items:start!important;gap:28px!important}
.contact-grid-v2 .contact-box{height:360px!important;min-height:360px!important;max-height:360px!important;overflow:hidden!important}
.contact-location .map-box{height:220px!important;min-height:220px!important;max-height:220px!important;overflow:hidden!important;padding:0!important}
.contact-location .hospital-map-iframe{display:block!important;width:100%!important;height:220px!important;min-height:220px!important;max-height:220px!important;border:0!important}
.contact-location .map-overlay-link{height:auto!important;min-height:0!important;max-height:none!important}
.contact-action-row{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:0!important;flex-wrap:nowrap!important;margin-top:4px!important}
.contact-action-row .contact-action-button{display:inline-flex!important;flex:0 0 auto!important;margin:0!important}
.contact-action-row .contact-action-button + .contact-action-button{margin-left:16px!important}
@media(max-width:900px){
  .contact-grid-v2{grid-template-columns:1fr!important;gap:24px!important}
  .contact-grid-v2 .contact-box{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
  .contact-location .map-box,.contact-location .hospital-map-iframe{height:240px!important;min-height:240px!important;max-height:240px!important}
  .contact-action-row{flex-wrap:wrap!important;gap:0!important}
  .contact-action-row .contact-action-button + .contact-action-button{margin-left:12px!important}
}


/* V32: hard final contact layout correction */
.contact-grid-v2 .contact-details,
.contact-grid-v2 .contact-location{
  height:360px!important;
  min-height:360px!important;
  max-height:360px!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
.contact-grid-v2 .contact-action-row{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  flex-wrap:nowrap!important;
  gap:16px!important;
  column-gap:16px!important;
  row-gap:0!important;
}
.contact-grid-v2 .contact-action-row .contact-email-button{
  margin-left:16px!important;
}
.contact-grid-v2 .contact-location .map-box{
  height:220px!important;
  min-height:220px!important;
  max-height:220px!important;
}
.contact-grid-v2 .contact-location .hospital-map-iframe{
  height:220px!important;
  min-height:220px!important;
  max-height:220px!important;
}
@media(max-width:900px){
  .contact-grid-v2{grid-template-columns:1fr!important;gap:24px!important}
  .contact-grid-v2 .contact-details,.contact-grid-v2 .contact-location{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
  .contact-grid-v2 .contact-action-row{flex-wrap:wrap!important;gap:0!important}
  .contact-grid-v2 .contact-action-row .contact-email-button{margin-left:12px!important}
  .contact-grid-v2 .contact-location .map-box,.contact-grid-v2 .contact-location .hospital-map-iframe{height:240px!important;min-height:240px!important;max-height:240px!important}
}


/* V33: final contact typography polish */
.contact-grid-v2 .contact-item .contact-phone-number,
.contact-grid-v2 .contact-email-card .contact-email-address{
  margin-left:8px !important;
}
.contact-grid-v2 .contact-item .contact-item-label,
.contact-grid-v2 .contact-email-card .contact-item-label{
  flex:0 0 auto !important;
}
@media(max-width:600px){
  .contact-grid-v2 .contact-item .contact-phone-number,
  .contact-grid-v2 .contact-email-card .contact-email-address{
    margin-left:6px !important;
  }
}


/* V34: guaranteed label-to-value spacing */
.contact-grid-v2 .contact-item .contact-item-label,
.contact-grid-v2 .contact-email-card .contact-item-label{display:flex!important;align-items:center!important;gap:0!important;}
.contact-grid-v2 .contact-item .contact-phone-number,
.contact-grid-v2 .contact-email-card .contact-email-address{margin-left:0!important;}


/* V35: mobile contact cards must stack vertically */
@media(max-width:900px){
  .contact-grid-v2{
    display:grid!important;
    grid-template-columns:1fr!important;
    width:100%!important;
    gap:24px!important;
    align-items:stretch!important;
  }
  .contact-grid-v2 .contact-details,
  .contact-grid-v2 .contact-location{
    width:100%!important;
    height:auto!important;
    min-height:360px!important;
    max-height:none!important;
    overflow:visible!important;
    box-sizing:border-box!important;
  }
  .contact-grid-v2 .contact-location .map-box{
    height:240px!important;
    min-height:240px!important;
    max-height:240px!important;
  }
  .contact-grid-v2 .contact-location .hospital-map-iframe{
    height:240px!important;
    min-height:240px!important;
    max-height:240px!important;
  }
}

/* V38: force 16px gap between contact action buttons on desktop */
.contact-grid-v2 .contact-action-row .contact-action-button + .contact-action-button{
  margin-left:16px !important;
}
@media(max-width:900px){
  .contact-grid-v2 .contact-action-row .contact-action-button + .contact-action-button{
    margin-left:12px !important;
  }
}

/* V39: contact cards - final desktop/mobile sizing and 16px button gap */
.contact-grid-v2 .contact-action-row{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  flex-wrap:nowrap!important;
  gap:16px!important;
  column-gap:16px!important;
  row-gap:0!important;
}
.contact-grid-v2 .contact-action-row .contact-action-button{
  margin:0!important;
  flex:0 0 auto!important;
}
.contact-grid-v2 .contact-action-row .contact-action-button + .contact-action-button{
  margin-left:0!important;
}
.contact-grid-v2 .contact-details,
.contact-grid-v2 .contact-location{
  height:360px!important;
  min-height:360px!important;
  max-height:360px!important;
  box-sizing:border-box!important;
}
@media(max-width:900px){
  .contact-grid-v2{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:24px!important;
    align-items:stretch!important;
  }
  .contact-grid-v2 .contact-details,
  .contact-grid-v2 .contact-location{
    height:560px!important;
    min-height:560px!important;
    max-height:560px!important;
    width:100%!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
  }
  .contact-grid-v2 .contact-action-row{
    flex-wrap:nowrap!important;
    gap:16px!important;
    column-gap:16px!important;
  }
  .contact-grid-v2 .contact-action-row .contact-action-button + .contact-action-button{
    margin-left:0!important;
  }
  .contact-grid-v2 .contact-location .map-box{
    height:320px!important;
    min-height:320px!important;
    max-height:320px!important;
  }
  .contact-grid-v2 .contact-location .hospital-map-iframe{
    height:320px!important;
    min-height:320px!important;
    max-height:320px!important;
  }
}
@media(max-width:480px){
  .contact-grid-v2 .contact-details,
  .contact-grid-v2 .contact-location{
    height:580px!important;
    min-height:580px!important;
    max-height:580px!important;
  }
}


/* V40: explicit visible 16px separation between contact buttons */
.contact-grid-v2 .contact-action-row {
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:flex-start !important;
  flex-wrap:nowrap !important;
  gap:0 !important;
  column-gap:0 !important;
}
.contact-grid-v2 .contact-action-row .contact-action-button {
  flex:0 0 auto !important;
  margin:0 !important;
}
.contact-grid-v2 .contact-action-row .contact-action-button + .contact-action-button {
  margin-left:16px !important;
}
@media (max-width:900px){
  .contact-grid-v2 .contact-action-row .contact-action-button + .contact-action-button {
    margin-left:16px !important;
  }
}

/* V41: hard spacer between Call Us and Email Us buttons */
.contact-grid-v2 .contact-action-row{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  flex-wrap:nowrap!important;
  gap:0!important;
  column-gap:0!important;
}
.contact-grid-v2 .contact-action-row .contact-button-spacer{
  display:block!important;
  flex:0 0 16px!important;
  width:16px!important;
  min-width:16px!important;
  max-width:16px!important;
  height:1px!important;
  margin:0!important;
  padding:0!important;
}
.contact-grid-v2 .contact-action-row .contact-action-button{
  margin:0!important;
  flex:0 0 auto!important;
}

/* V43: Dedicated donation methods section */
.donation-section{background:#fff}.donation-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;width:100%;max-width:860px;margin:0 auto;align-items:stretch}.donation-card{display:flex;flex-direction:column;align-items:stretch;width:100%;min-height:250px;padding:22px;background:#fff;border:1px solid var(--border);border-radius:16px;box-shadow:0 8px 25px rgba(18,52,59,.07);text-align:center}
.payment-logo{height:58px;display:flex;align-items:center;justify-content:center;margin:0 0 12px;padding:0}
.payment-logo img{display:block;width:auto;max-width:92px;height:50px;max-height:50px;object-fit:contain;margin:0 auto}
.payment-logo img.qr-image{width:58px;height:58px;max-width:58px;max-height:58px}.donation-content h3{margin:0 0 8px;color:var(--navy);font-size:16px}.donation-content p{margin:0 0 7px;color:var(--muted);font-size:12px}.donation-content strong{display:block;color:var(--navy);font-size:12px}.donation-content small{display:block;margin-top:4px;color:var(--muted);font-size:10px}
@media(max-width:600px){.donation-grid{grid-template-columns:1fr;gap:16px;max-width:520px}.donation-card{min-height:230px}.payment-logo{height:58px}.payment-logo img{height:50px;max-height:50px;max-width:92px}.payment-logo img.qr-image{width:58px;height:58px;max-width:58px;max-height:58px}}


/* V45: Donation section matched to the working Nainwa V39 payment layout */
#donate.donation-section{display:block !important;width:100% !important;overflow:visible !important;}
#donate .container{width:min(1180px,92%) !important;margin:0 auto !important;}
#nainwa-donation-grid.donation-grid{display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;grid-template-rows:repeat(2,auto) !important;gap:28px !important;width:100% !important;max-width:1000px !important;margin:0 auto !important;align-items:stretch !important;}
#nainwa-donation-grid .donation-card{display:flex !important;flex-direction:column !important;align-items:stretch !important;background:#fff !important;border:1px solid var(--border) !important;border-radius:16px !important;padding:28px !important;box-shadow:0 8px 25px rgba(18,52,59,.07) !important;min-height:300px !important;width:100% !important;margin:0 !important;}
#nainwa-donation-grid .payment-logo{height:105px !important;min-height:105px !important;display:flex !important;align-items:center !important;justify-content:center !important;margin:0 0 18px !important;padding:0 !important;background:#fff !important;}
#nainwa-donation-grid .payment-logo img{display:block !important;width:auto !important;max-width:220px !important;height:100px !important;max-height:100px !important;object-fit:contain !important;margin:0 auto !important;}
#nainwa-donation-grid .donation-content{text-align:center !important;}
#nainwa-donation-grid .donation-content h3{font-size:22px !important;margin:4px 0 8px !important;}
#nainwa-donation-grid .donation-content p{margin:0 0 10px !important;}
#nainwa-donation-grid .donation-content strong{display:block !important;color:var(--dark) !important;font-size:17px !important;}
#nainwa-donation-grid .donation-content small{display:block !important;margin-top:7px !important;color:#667477 !important;}
#nainwa-donation-grid .qr-placeholder{margin:15px auto 0 !important;width:120px !important;height:120px !important;}
@media(max-width:700px){#nainwa-donation-grid.donation-grid{grid-template-columns:1fr !important;grid-template-rows:none !important;gap:20px !important;}#nainwa-donation-grid .donation-card{min-height:280px !important;}}

/* V30: hard-force donation 2x2 desktop layout */
@media(min-width:701px){#nainwa-donation-grid{display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;grid-auto-flow:row !important;}#nainwa-donation-grid>.donation-card{width:100% !important;min-width:0 !important;}#nainwa-donation-grid .payment-logo img{width:auto !important;height:100px !important;max-width:220px !important;object-fit:contain !important;}}
@media(max-width:700px){#nainwa-donation-grid{display:grid !important;grid-template-columns:1fr !important;}}

/* V31: compact responsive donation cards */
#nainwa-donation-grid.donation-grid{
  max-width:820px !important;
  gap:20px !important;
}
#nainwa-donation-grid .donation-card{
  min-height:240px !important;
  padding:18px !important;
  border-radius:14px !important;
}
#nainwa-donation-grid .payment-logo{
  height:72px !important;
  min-height:72px !important;
  margin:0 0 12px !important;
}
#nainwa-donation-grid .payment-logo img{
  height:70px !important;
  max-height:70px !important;
  max-width:150px !important;
}
#nainwa-donation-grid .donation-content h3{font-size:18px !important;margin:3px 0 7px !important;}
#nainwa-donation-grid .donation-content p{font-size:14px !important;margin:0 0 8px !important;}
#nainwa-donation-grid .donation-content strong{font-size:14px !important;}
#nainwa-donation-grid .donation-content small{font-size:12px !important;margin-top:5px !important;}
#nainwa-donation-grid .qr-placeholder{width:90px !important;height:90px !important;margin:10px auto 0 !important;}
@media(max-width:700px){
  #donate .container{width:min(94%,520px) !important;}
  #nainwa-donation-grid.donation-grid{grid-template-columns:1fr !important;gap:14px !important;max-width:440px !important;}
  #nainwa-donation-grid .donation-card{min-height:0 !important;padding:16px !important;}
  #nainwa-donation-grid .payment-logo{height:68px !important;min-height:68px !important;margin-bottom:10px !important;}
  #nainwa-donation-grid .payment-logo img{height:64px !important;max-height:64px !important;max-width:140px !important;}
}

/* Donation Methods editor/card layout */
#nainwa-donation-grid{display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:22px !important;max-width:860px !important;margin-left:auto !important;margin-right:auto !important;}
#nainwa-donation-grid .donation-card{box-sizing:border-box !important;}
@media(max-width:700px){
  #nainwa-donation-grid{grid-template-columns:1fr !important;gap:16px !important;width:100% !important;max-width:430px !important;}
  #nainwa-donation-grid .donation-card{min-height:0 !important;padding:18px !important;}
}


/* V46: force donation methods into a reliable 2x2 desktop grid */
#donate .donation-grid, #nainwa-donation-grid{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  grid-auto-flow:row !important;
  gap:22px !important;
  width:100% !important;
  max-width:860px !important;
  margin:0 auto !important;
  align-items:stretch !important;
}
#donate .donation-card, #nainwa-donation-grid .donation-card{
  display:flex !important;
  flex-direction:column !important;
  width:100% !important;
  min-width:0 !important;
  box-sizing:border-box !important;
  min-height:240px !important;
}
#donate .payment-logo, #nainwa-donation-grid .payment-logo{height:72px !important;min-height:72px !important;}
#donate .payment-logo img, #nainwa-donation-grid .payment-logo img{height:70px !important;max-height:70px !important;max-width:150px !important;object-fit:contain !important;}
#donate .payment-logo img.qr-image, #nainwa-donation-grid .payment-logo img.qr-image{width:70px !important;height:70px !important;max-width:70px !important;max-height:70px !important;}
@media(max-width:700px){
  #donate .donation-grid, #nainwa-donation-grid{grid-template-columns:1fr !important;gap:16px !important;max-width:430px !important;}
  #donate .donation-card, #nainwa-donation-grid .donation-card{min-height:0 !important;}
}

/* V47: Nainwa-style donation cards with SF Trust editable payment details */
#donate.donation-section{display:block!important;width:100%!important;overflow:visible!important;}
#donate .container{width:min(1180px,92%)!important;margin:0 auto!important;}
#nainwa-donation-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-flow:row!important;gap:22px!important;width:100%!important;max-width:860px!important;margin:0 auto!important;align-items:stretch!important;}
#nainwa-donation-grid>.donation-card{display:flex!important;flex-direction:column!important;align-items:stretch!important;width:100%!important;min-width:0!important;min-height:250px!important;box-sizing:border-box!important;padding:22px!important;background:#fff!important;border:1px solid #e5eceb!important;border-radius:16px!important;box-shadow:0 8px 25px rgba(18,52,59,.07)!important;margin:0!important;}
#nainwa-donation-grid .payment-logo{height:78px!important;min-height:78px!important;display:flex!important;align-items:center!important;justify-content:center!important;margin:0 0 12px!important;padding:0!important;background:#fff!important;}
#nainwa-donation-grid .payment-logo img{display:block!important;width:auto!important;max-width:180px!important;height:75px!important;max-height:75px!important;object-fit:contain!important;margin:0 auto!important;}
#nainwa-donation-grid .payment-logo img.qr-image{width:90px!important;height:90px!important;max-width:90px!important;max-height:90px!important;}
#nainwa-donation-grid .donation-content{text-align:center!important;}
#nainwa-donation-grid .donation-content h3{font-size:18px!important;margin:3px 0 7px!important;}
#nainwa-donation-grid .donation-content p{font-size:14px!important;margin:0 0 8px!important;}
#nainwa-donation-grid .donation-content strong{display:block!important;font-size:14px!important;}
#nainwa-donation-grid .donation-content small{display:block!important;font-size:12px!important;margin-top:5px!important;color:#667477!important;}
@media(max-width:700px){#nainwa-donation-grid{grid-template-columns:1fr!important;gap:16px!important;max-width:430px!important;}#nainwa-donation-grid>.donation-card{min-height:0!important;padding:18px!important;}#nainwa-donation-grid .payment-logo{height:68px!important;min-height:68px!important;margin-bottom:10px!important;}#nainwa-donation-grid .payment-logo img{height:64px!important;max-height:64px!important;max-width:140px!important;}#nainwa-donation-grid .payment-logo img.qr-image{width:80px!important;height:80px!important;max-width:80px!important;max-height:80px!important;}}
