/* =============================================================
 * Public-facing pages — Home / About / Team
 * ============================================================= */

.pub-body {
    background: #fff;
    color: #1F2A44;
    overflow-x: hidden;
}

/* ---- Top Navigation ---------------------------------------- */
.pub-nav {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(15,50,102,0.08);
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: box-shadow 0.2s ease;
}
.pub-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 24px;
}

.pub-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
}
.pub-brand-rotary {
    height: 38px;
    width: auto;
    object-fit: contain;
    display: block;
}
.pub-brand-divider {
    width: 1px;
    height: 36px;
    background: #cfd8e6;
}
.pub-brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.pub-brand-title {
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 1px;
    color: var(--rotary-blue-dk, #0F3266);
}
.pub-brand-sub {
    font-size: 0.7rem;
    color: #6c7a93;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.pub-nav-toggle {
    background: transparent;
    border: 1px solid #d4dbe6;
    border-radius: 8px;
    padding: 4px 12px;
    font-size: 1.4rem;
    color: var(--rotary-blue-dk, #0F3266);
}

.pub-nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}
.pub-nav-links a {
    color: #2c3a55;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 6px 2px;
    position: relative;
    transition: color 0.15s;
}
.pub-nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--rotary-gold, #F7A81B);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s;
}
.pub-nav-links a:hover,
.pub-nav-links a.active {
    color: var(--rotary-blue-dk, #0F3266);
}
.pub-nav-links a:hover::after,
.pub-nav-links a.active::after {
    transform: scaleX(1);
}
.pub-nav-links a.pub-cta {
    background: var(--rotary-blue, #17458F);
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.2s;
}
.pub-nav-links a.pub-cta:hover {
    background: var(--rotary-blue-dk, #0F3266);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15,50,102,0.25);
}
.pub-nav-links a.pub-cta::after { display: none; }

/* ---- HERO ---------------------------------------------------- */
.pub-hero {
    position: relative;
    background: #fff;
    overflow: hidden;
}
.hero-slide {
    min-height: 620px;
    display: flex;
    align-items: center;
    position: relative;
    color: #fff;
    background-size: cover;
    background-position: center;
}
/* Slide backgrounds — gradients, replace with photo URLs to use AI imagery */
.hero-slide-1 {
    background:
        linear-gradient(120deg, rgba(15,50,102,0.85) 0%, rgba(39,153,137,0.75) 100%),
        radial-gradient(circle at 80% 30%, rgba(247,168,27,0.25), transparent 50%),
        #0F3266;
    position: relative; /* required so .hero-portrait's absolute positioning is relative to this, not the page */
    overflow: visible;   /* if it's currently 'hidden', that alone could be clipping them */
}
.hero-slide-2 {
    background:
        linear-gradient(120deg, rgba(15,110,86,0.92) 0%, rgba(23,69,143,0.78) 100%),
        radial-gradient(circle at 20% 70%, rgba(255,213,107,0.28), transparent 50%),
        #0F6E56;
    position: relative; /* required so .hero-portrait's absolute positioning is relative to this, not the page */
    overflow: visible;   /* if it's currently 'hidden', that alone could be clipping them */
}
.hero-slide-3 {
    background:
        linear-gradient(120deg, rgba(15,50,102,0.85) 0%, rgba(132,67,11,0.7) 100%),
        radial-gradient(circle at 70% 40%, rgba(247,168,27,0.3), transparent 50%),
        #1F4F88;
    position: relative; /* required so .hero-portrait's absolute positioning is relative to this, not the page */
    overflow: visible;   /* if it's currently 'hidden', that alone could be clipping them */
}

.hero-portrait {
    position: absolute;
    bottom: 0;
    width: 220px;
    max-width: 30vw;
    z-index: 2;
    pointer-events: none;
}

.hero-portrait-left {
    left: 20px;
}

.hero-portrait-right {
    right: 20px;
}

/* Tablet */
@media (max-width: 992px) {
    .hero-portrait {
        width: 160px;
        max-width: 28vw;
    }
}

.hero-overlay { position: absolute; inset: 0; pointer-events: none; }
.hero-content { position: relative; z-index: 2; padding: 80px 0; }

.hero-eyebrow {
    display: inline-block;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-size: 0.78rem;
    letter-spacing: 2px;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 18px;
    text-transform: uppercase;
    font-weight: 600;
}
.hero-title {
    font-weight: 900;
    font-size: clamp(2.5rem, 6vw, 4.6rem);
    line-height: 1;
    letter-spacing: 4px;
    margin: 0 0 14px;
    text-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.hero-title-md {
    font-weight: 800;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.15;
    letter-spacing: 1.5px;
    margin: 0 0 16px;
    text-shadow: 0 2px 16px rgba(0,0,0,0.3);
}
.hero-tagline {
    font-size: clamp(1rem, 1.6vw, 1.35rem);
    font-style: italic;
    color: #FFE9B8;
    margin-bottom: 22px;
    font-weight: 500;
}
.hero-lead {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.95);
    max-width: 560px;
}
.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.hero-illustration {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 12px 40px rgba(0,0,0,0.3));
    animation: hero-float 6s ease-in-out infinite;
}
@keyframes hero-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-14px); }
}

.carousel-indicators [data-bs-target] {
    width: 30px; height: 4px; border-radius: 4px;
    background: rgba(255,255,255,0.4);
    border: none;
}
.carousel-indicators .active { background: var(--rotary-gold, #F7A81B); }
.carousel-control-prev, .carousel-control-next { width: 5%; opacity: 0.6; }

/* ---- Section / page hero ------------------------------------ */
.pub-section { padding: 80px 0; }
.bg-soft     { background: #F4F7FC; }

.pub-eyebrow {
    display: inline-block;
    color: var(--rotary-cranberry, #D41367);
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
}
.pub-section-title {
    font-weight: 800;
    color: var(--rotary-blue-dk, #0F3266);
    margin-bottom: 14px;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
}
.pub-section-sub {
    color: #5a6b85;
    font-size: 1.05rem;
    max-width: 720px;
    margin: 0 auto;
}

.pub-page-hero {
    background:
        linear-gradient(135deg, var(--rotary-blue-dk, #fff) 0%, var(--rotary-blue, #fff) 100%);
    padding: 90px 0 70px;
    color: #fff;
    text-align: center;
}

.pub-nav-dropdown{
    position: relative;
    display: inline-block;
}
.pub-nav-dropdown-toggle{
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.pub-nav-caret{
    font-size: 10px;
    transition: transform .15s ease;
}
.pub-nav-dropdown-menu{
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #D9DFE8;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(16,35,63,.12);
    padding: 6px;
    min-width: 190px;
    display: none;
    z-index: 100;
}
.pub-nav-dropdown-menu a{
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    color: #0E2C5C;
    text-decoration: none;
    font-size: 14px;
}
.pub-nav-dropdown-menu a:hover{
    background: #F3F8FD;
}
.pub-nav-dropdown:hover .pub-nav-dropdown-menu,
.pub-nav-dropdown:focus-within .pub-nav-dropdown-menu{
    display: block;
}
.pub-nav-dropdown:hover .pub-nav-caret{
    transform: rotate(180deg);
}

/* ---- Pillar cards on home ----------------------------------- */
.pillar-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 8px 24px rgba(15,50,102,0.06);
    border-top: 6px solid #ccc;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}
.pillar-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(15,50,102,0.14);
}
.pillar-env   { border-top-color: #279989; }
.pillar-water { border-top-color: #1F6FB2; }
.pillar-edu   { border-top-color: #C77A0B; }

.pillar-img {
    position: relative;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #fff;  /* fallback if image missing */
    background-repeat: no-repeat;
}
.pillar-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.35) 100%);
}
/* Fallback gradient backgrounds, visible if the photo fails to load */
.pillar-env .pillar-img {
    background-image:
        linear-gradient(135deg, rgba(39,153,137,0.85), rgba(15,110,86,0.95)),
        url('/assets/img/pillar-environment.jpg');
}
.pillar-water .pillar-img {
    background-image:
        linear-gradient(135deg, rgba(31,111,178,0.5), rgba(15,50,102,0.7)),
        url('/assets/img/pillar-water.jpg');
}
.pillar-edu .pillar-img {
    background-image:
        linear-gradient(135deg, rgba(199,122,11,0.55), rgba(132,67,11,0.7)),
        url('/assets/img/pillar-education.jpg');
}

.pillar-body {
    padding: 28px 28px 24px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pillar-num {
    position: absolute;
    bottom: -22px; left: 24px;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--rotary-blue-dk, #0F3266);
    color: #fff;
    font-weight: 800;
    font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
    z-index: 2;
}
.pillar-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    margin: 0 auto 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    color: #fff;
    margin-top: 8px;
}
.pillar-env   .pillar-icon { background: #279989; }
.pillar-water .pillar-icon { background: #1F6FB2; }
.pillar-edu   .pillar-icon { background: #C77A0B; }

.pillar-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--rotary-blue-dk, #0F3266);
    margin-bottom: 16px;
}
.pillar-stats {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    font-size: 0.95rem;
    color: #4a5b75;
}
.pillar-stats li { padding: 4px 0; }
.pillar-stats strong { color: var(--rotary-blue-dk, #0F3266); }
.pillar-stats .pillar-cost {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--rotary-blue, #17458F), var(--rotary-blue-dk, #0F3266));
    padding: 8px 16px;
    border-radius: 30px;
    display: inline-block;
    margin-top: 8px;
}
.pillar-desc {
    font-size: 0.9rem;
    color: #6c7a93;
    margin: auto 0 0;
}

/* ---- Mission stats grid -------------------------------------- */
.mission-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.mission-stat {
    background: #fff;
    border-radius: 14px;
    padding: 28px 20px;
    text-align: center;
    border: 1px solid #E5ECF6;
    transition: all 0.2s;
}
.mission-stat:hover {
    border-color: var(--rotary-blue, #17458F);
    transform: translateY(-3px);
}
.mission-stat-num {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--rotary-blue-dk, #0F3266);
    line-height: 1;
}
.mission-stat-lbl {
    font-size: 0.78rem;
    color: #6c7a93;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---- CTA band ------------------------------------------------ */
.pub-cta-band {
    background:
        linear-gradient(135deg, rgba(15,50,102,0.95), rgba(23,69,143,0.92)),
        radial-gradient(circle at 70% 30%, rgba(247,168,27,0.3), transparent 50%);
    background-color: var(--rotary-blue-dk, #0F3266);
}
.pub-cta-band .pub-section-title { margin-bottom: 18px; }

/* ---- About-page pillar list --------------------------------- */
.about-pillar {
    padding: 18px 22px;
    border-radius: 12px;
    border-left: 4px solid #ccc;
    background: #f8fafd;
}
.about-pillar.pillar-env   { border-left-color: #279989; }
.about-pillar.pillar-water { border-left-color: #1F6FB2; }
.about-pillar.pillar-edu   { border-left-color: #C77A0B; }
.about-pillar h4 {
    font-size: 1.15rem;
    color: var(--rotary-blue-dk, #0F3266);
    margin-bottom: 8px;
}
.about-pillar p { margin-bottom: 0; color: #0A0A0A; }

.pub-side-card {
    padding: 22px;
    border-radius: 14px;
    border: 1px solid #E5ECF6;
    background: #fff;
}
.pub-side-title {
    color: var(--rotary-blue-dk, #0F3266);
    font-size: 1rem;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #E5ECF6;
}
.pub-side-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}
.pub-side-list li { padding: 6px 0; color: #4a5b75; }

/* ---- Team cards ---------------------------------------------- */
.team-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    border: 1px solid #E5ECF6;
    box-shadow: 0 6px 18px rgba(15,50,102,0.05);
    transition: all 0.25s;
}
.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(15,50,102,0.12);
}
.team-patron {
    border-top: 4px solid var(--rotary-gold, #F7A81B);
    background: linear-gradient(180deg, #FFF8E8, #fff);
}
.team-avatar {
    width: 86px; height: 86px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rotary-blue, #17458F), var(--rotary-blue-dk, #0F3266));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.4rem;
}
.team-patron .team-avatar {
    background: linear-gradient(135deg, var(--rotary-gold, #F7A81B), #C77A0B);
}
.team-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--rotary-blue-dk, #0F3266);
    margin-bottom: 4px;
}
.team-role {
    font-size: 0.85rem;
    color: #6c7a93;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}
.team-contact {
    margin: 0;
    color: #4a5b75;
    font-size: 0.92rem;
}

.role-card {
    background: #fff;
    border: 1px solid #E5ECF6;
    border-radius: 14px;
    padding: 24px;
    height: 100%;
    transition: all 0.2s;
}
.role-card:hover {
    border-color: var(--rotary-blue, #17458F);
    transform: translateY(-2px);
}
.role-icon {
    font-size: 2rem;
    color: var(--rotary-blue, #17458F);
    margin-bottom: 12px;
    display: block;
}
.role-card h5 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--rotary-blue-dk, #0F3266);
    margin-bottom: 6px;
}

/* ---- Footer -------------------------------------------------- */
.pub-foot {
    background: linear-gradient(180deg, var(--rotary-blue-dk, #0F3266), #0a2247);
    color: rgba(255,255,255,0.85);
    padding: 50px 0 30px;
}
.pub-foot-title {
    color: #fff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    font-weight: 700;
}
.pub-foot-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}
.pub-foot-list li { padding: 4px 0; }
.pub-foot-list a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: color 0.15s;
}
.pub-foot-list a:hover { color: var(--rotary-gold, #F7A81B); }
.pub-foot-text { color: rgba(255,255,255,0.7); font-size: 0.85rem; }
.pub-foot-line {
    border-color: rgba(255,255,255,0.12);
    margin: 30px 0 18px;
}

/* ---- Responsive --------------------------------------------- */
@media (max-width: 991.98px) {
    .pub-nav-links {
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 16px 20px;
        gap: 4px;
        border-bottom: 1px solid #e5ecf6;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }
    .pub-nav-links.open {
        max-height: 500px;
        padding: 16px 20px;
    }
    .pub-nav-links a {
        padding: 10px 0;
        border-bottom: 1px solid #f0f3f8;
    }
    .pub-nav-links a:last-child { border-bottom: none; }
    .pub-nav-links a.pub-cta {
        margin-top: 8px;
        text-align: center;
    }
    .pub-section { padding: 56px 0; }
    .hero-slide { min-height: 480px; }
    .hero-content { padding: 50px 0; }
    .mission-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575.98px) {
    .pub-brand-sub { display: none; }
    .hero-actions { justify-content: center; }
    .mission-stats { grid-template-columns: 1fr; }
}

/* Patron photo (circular framed) */
.team-photo {
    width: 170px;
    height: 170px;
    border-radius: 30%;
    overflow: hidden;
    border: 4px solid var(--rotary-gold, #F7A81B);
    box-shadow: 0 8px 24px rgba(15,50,102,0.15);
    background: linear-gradient(135deg, var(--rotary-gold, #F7A81B), #C77A0B);
    display: flex;
    align-items: center;
    justify-content: center;
}
.team-photo img {
    width: 100%;
    height: 100%;
    display: block;
}
.team-photo i {
    font-size: 4rem;
    color: #fff;
}

/* Compact contact lines inside team cards */
.team-card .team-contact a {
    color: #4a5b75;
    text-decoration: none;
    font-size: 0.9rem;
}
.team-card .team-contact a:hover {
    color: var(--rotary-blue, #17458F);
    text-decoration: underline;
}

india-map-frame{
    position: relative;
    width: 100%;
    /* height in px rather than aspect-ratio, since the map's own layout
       is fixed-ish and works best given real vertical room */
    height: 900px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(15, 34, 71, 0.12);
    border: 1px solid rgba(15, 34, 71, 0.08);
}
.india-map-frame iframe{
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
@media (max-width: 768px){
    .india-map-frame{ height: 1400px; } /* map panel stacks under the map on narrow screens */
}