:root{
  --iipe-blue:#0756a3;
  --iipe-dark:#063765;
  --iipe-light:#eef6ff;
  --iipe-accent:#1f7bd1;
  --iipe-text:#25364a;
}
body{font-family:Arial,Helvetica,sans-serif;color:var(--iipe-text);line-height:1.7}
.navbar{background:linear-gradient(90deg,var(--iipe-dark),var(--iipe-blue))}
.navbar-brand{font-weight:700;letter-spacing:.2px}
.nav-link{font-weight:600}
.hero{background:linear-gradient(135deg,#063765 0%,#0756a3 55%,#1f7bd1 100%);color:#fff;padding:100px 0 90px}
.hero .eyebrow{text-transform:uppercase;letter-spacing:2px;font-weight:700;font-size:.85rem;opacity:.85}
.section-title{font-weight:800;color:var(--iipe-dark)}
.section-title:after{content:"";display:block;width:55px;height:4px;background:var(--iipe-accent);margin-top:12px;border-radius:3px}
.stat-card,.info-card{border:0;border-radius:16px;box-shadow:0 8px 30px rgba(5,48,91,.09);height:100%}
.stat-card{border-top:4px solid var(--iipe-accent)}
.icon-circle{width:48px;height:48px;border-radius:50%;background:var(--iipe-light);color:var(--iipe-blue);display:flex;align-items:center;justify-content:center;font-weight:800}
.page-header{background:linear-gradient(135deg,#063765,#0a67bd);color:#fff;padding:70px 0}
.bg-soft{background:var(--iipe-light)}
.btn-primary{background:var(--iipe-blue);border-color:var(--iipe-blue)}
.btn-primary:hover{background:var(--iipe-dark);border-color:var(--iipe-dark)}
footer{background:#052d55;color:#d9e9f8}
footer a{color:#fff;text-decoration:none}
.table thead th{background:var(--iipe-dark);color:#fff}
.badge-blue{background:#dceeff;color:var(--iipe-dark)}
.timeline{border-left:3px solid #b9d8f5;padding-left:25px}
.timeline-item{position:relative;margin-bottom:28px}
.timeline-item:before{content:"";position:absolute;left:-34px;top:7px;width:13px;height:13px;background:var(--iipe-accent);border-radius:50%;border:3px solid #fff;box-shadow:0 0 0 2px #b9d8f5}

/* Homepage image carousel and light, logo-friendly navigation */
.site-navbar{background:#fff;border-bottom:1px solid #dbe8f5;box-shadow:0 3px 18px rgba(6,55,101,.08)}
.site-navbar .navbar-brand{color:var(--iipe-dark);font-size:1.25rem}
.site-navbar .navbar-brand:hover,.site-navbar .nav-link{color:var(--iipe-blue)}
.site-navbar .nav-link:hover,.site-navbar .nav-link:focus,.site-navbar .nav-link.show{color:var(--iipe-dark)}
.site-navbar .navbar-toggler{border-color:rgba(7,86,163,.25)}
.site-navbar .navbar-toggler-icon{filter:none}
.site-logo{width:94px;height:auto;display:block}
.site-navbar .dropdown-menu{border-color:#dbe8f5;box-shadow:0 10px 28px rgba(6,55,101,.12)}
.hero-carousel,.hero-carousel .carousel,.hero-carousel .carousel-inner,.hero-slide{width:100%}
.hero-slide{position:relative;overflow:hidden;min-height:clamp(520px,calc(100vh - 82px),820px);background:#eaf4fc}
.hero-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}
.hero-slide-art .hero-art{object-position:left center}
.hero-copy{position:relative;z-index:1;min-height:inherit;display:flex;justify-content:flex-end;align-items:center;padding-top:4rem;padding-bottom:5rem}
.hero-copy-inner{width:min(50%,600px);padding:2rem 2.25rem;border-radius:1.25rem;background:rgba(255,255,255,.91);box-shadow:0 18px 55px rgba(6,55,101,.14);backdrop-filter:blur(5px);color:var(--iipe-text)}
.hero-copy .eyebrow{color:var(--iipe-blue);text-transform:uppercase;letter-spacing:2px;font-weight:700;font-size:.85rem}
.hero-copy h1{color:var(--iipe-dark);font-size:clamp(2rem,3.2vw,3.5rem)}
.hero-copy .lead{font-size:1.08rem}
.hero-welcome{border-top:1px solid #d9e7f4;margin-top:1.5rem;padding-top:1rem;color:#43566b}
.hero-carousel .carousel-indicators{z-index:3;margin-bottom:1.25rem}
.hero-carousel .carousel-indicators [data-bs-target]{width:30px;height:4px;border:0;border-radius:8px;background-color:var(--iipe-blue)}
.hero-carousel .carousel-control-prev,.hero-carousel .carousel-control-next{width:7%;z-index:2}
.hero-carousel .carousel-control-prev-icon,.hero-carousel .carousel-control-next-icon{filter:drop-shadow(0 1px 3px rgba(0,0,0,.7))}
@media(max-width:991.98px){.hero-slide{min-height:620px}.hero-copy{justify-content:center}.hero-copy-inner{width:min(100%,680px);margin-top:220px}.hero-slide-welcome .hero-art{object-position:30% center}.site-logo{width:80px}}
@media(max-width:575.98px){.site-logo{width:70px}.site-navbar .navbar-brand{gap:.6rem!important;font-size:1.05rem}.hero-slide{min-height:680px}.hero-slide-art{min-height:0;aspect-ratio:1717/883}.hero-slide-art .hero-art{position:relative;height:auto;object-fit:contain}.hero-copy{align-items:flex-end;padding:2rem 1rem 4.5rem}.hero-copy-inner{margin-top:250px;padding:1.3rem 1.2rem}.hero-copy h1{font-size:2rem}.hero-copy .lead{font-size:1rem}.hero-copy .btn{font-size:.95rem}.hero-slide-welcome .hero-art{object-position:27% center}}
@media(prefers-reduced-motion:reduce){.hero-carousel .carousel-item{transition:none}}
/* Chapter officials */
.official-card{overflow:hidden;border:0;border-radius:16px;box-shadow:0 8px 30px rgba(5,48,91,.09);text-align:center}
.official-photo{position:relative;aspect-ratio:1/1;background:linear-gradient(145deg,#e5f2ff,#c6def3);overflow:hidden}
.official-photo img{width:100%;height:100%;display:block;object-fit:cover;object-position:center top}
.official-initials{position:absolute;inset:0;display:grid;place-items:center;color:#fff;background:linear-gradient(145deg,#0b68b3,#063765);font-size:clamp(2rem,4vw,3.5rem);font-weight:800;letter-spacing:.05em}
.official-card .card-body{padding:1.15rem .85rem 1.25rem}
.official-name{font-size:1.08rem;font-weight:750;color:var(--iipe-dark);margin:0 0 .35rem}
.official-role{color:#5d7084;margin:0;font-size:.95rem;line-height:1.45}
.message-photo {width: 180px;height: 180px;object-fit: cover;object-position: center top;border: 5px solid #fff;box-shadow: 0 8px 25px rgba(5, 48, 91, 0.15);}
.map-wrapper { width: 100%;height: 450px; overflow: hidden; border-radius: 16px;}
.map-wrapper iframe { width: 100%; height: 100%; border: 0;}


/* Shared event cards used on the listing and homepage */
.event-card{height:100%;transition:transform .3s ease,box-shadow .3s ease}
.event-card>a{display:block;height:100%;color:inherit}
.event-card:hover{transform:translateY(-6px)}
.event-card-surface{height:100%;transition:box-shadow .3s ease}
.event-card:hover .event-card-surface{box-shadow:0 12px 30px rgba(0,0,0,.15)!important}
.event-image{overflow:hidden}
.event-image img{display:block;width:100%;height:250px;object-fit:cover;transition:transform .4s ease}
.event-card:hover .event-image img{transform:scale(1.06)}
.event-date{font-size:13px;color:#888;margin-bottom:6px;text-transform:uppercase;letter-spacing:.5px}
.event-title{font-size:18px;font-weight:600;line-height:1.4;color:#222;transition:color .3s ease}
.event-card:hover .event-title{color:#0d6efd}
.event-card-content{display:flex;min-height:155px;flex-direction:column;align-items:flex-start;padding:1.1rem 1.2rem}
.event-card-label{margin-bottom:.45rem;color:var(--iipe-blue);font-size:.75rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.event-card-link{margin-top:auto;padding-top:.8rem;color:var(--iipe-blue);font-size:.92rem;font-weight:700}
.home-events{position:relative;margin-top:2.5rem;padding:4rem 0 3rem;background:linear-gradient(180deg,#063765 0,#0756a3 260px,#f1f7fc 260px,#f1f7fc 100%);border-top:6px solid #39a2e8}
.home-events .section-title{color:#fff}
.home-events .section-title:after{background:#71c5ff}
.home-events-eyebrow{display:block;margin-bottom:.35rem;color:#b9e2ff;font-size:.78rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.event-carousel-control{width:44px;height:44px;border-radius:50%;border-color:rgba(255,255,255,.7);color:#fff;font-size:1.3rem;line-height:1}
.event-carousel-control:hover,.event-carousel-control:focus{background:#fff;color:var(--iipe-dark);border-color:#fff}
.home-events .carousel-item{padding:.25rem .1rem .75rem}
.event-listing-fallback{padding:1rem 1.25rem;border:1px solid #d7e6f4;border-radius:12px;background:#fff;color:#52677b}
@media(max-width:767.98px){.home-events .event-image img{height:230px}.home-events .event-card-content{min-height:0}.home-events .col-md-4:not(:first-child){display:none}}
@media(prefers-reduced-motion:reduce){.event-card,.event-card-surface,.event-image img{transition:none}}

/* Recent events sidebar list */
.info-card .noticelist{list-style:none;margin:0 0 1.25rem;padding:0}
.info-card .noticelist li{margin:0;padding:.8rem 0;border-bottom:1px dotted #b8cadd}
.info-card .noticelist li:last-child{border-bottom:0}
.info-card .noticelist a{display:block;color:var(--iipe-text);font-size:.94rem;font-weight:600;line-height:1.5;text-decoration:none;transition:color .2s ease,padding-left .2s ease}
.info-card .noticelist a:hover,.info-card .noticelist a:focus{padding-left:.3rem;color:var(--iipe-blue)}
.info-card .noticelist ~ .text-center .btn{border:1px solid var(--iipe-blue);border-radius:999px;padding:.55rem 1.25rem;background:var(--iipe-blue);color:#fff;font-weight:700;text-decoration:none;transition:background .2s ease,border-color .2s ease,transform .2s ease}
.info-card .noticelist ~ .text-center .btn:hover,.info-card .noticelist ~ .text-center .btn:focus{transform:translateY(-2px);border-color:var(--iipe-dark);background:var(--iipe-dark);color:#fff}
.text-justify {text-align: justify;}