html,
body{
    margin:0;
    padding:0;
}

/* ===========================
   BPV WEBSITE STYLES
=========================== */

body{
background:#faf7f1;
font-family:Gadugi,sans-serif;
}

/* ===========================
   NAVIGATION
=========================== */

.header{
    position:fixed;
    top:0;
    width:100%;
    z-index:1000;
    background:rgb(211, 49, 0);
}

.navbar{
    width:90%;
    max-width:1400px;
    margin:auto;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:4px 0;
}

.logo{
    height:140px;
    width:auto;
}

.logo-container{
    display:flex;
    align-items:flex-start;
    gap:12px;
}

.logo-text{
    position:relative;
    top:26px;
}

.logo-text h1{
    margin:0;
    color:yellow;
    font-size:2.2rem;
    font-weight:bold;
    padding-bottom:10px;
}

.logo-text p{
    margin:0;
    font-size:1.3rem;
    font-weight:bold;
    color:yellow;
    padding-bottom:4px;
}

.nav-menu a{
    color:yellow;
    text-decoration:none;
    font-family:Gadugi,sans-serif;
    font-size:1.2rem;
    font-weight:bold;
    transition:.3s;
}

.nav-menu{
    display:flex;
    list-style:none;
    gap:25px;
}

.nav-menu a:hover{
    color:#d8af37;
}

/* ==========================================
   ABOUT MENU DROPDOWN
========================================== */

.dropdown{
    position:relative;
}

.dropdown-menu{
    display:none;
    position:absolute;
    top:35%;
    left:0;
    min-width:170px;
    background:#fac871;
    list-style:none;
    padding:0;
    margin:0;
    border:1px solid #db0808;
    box-shadow:0 4px 12px rgba(0,0,0,0.15);
    z-index:1000;
}

.dropdown:hover .dropdown-menu{
    display:block;
}

.dropdown-menu li{
    position:relative;
}

.dropdown-menu a{
    display:block;
    padding:4px 4px;
    border:1px solid #db0808;
    text-decoration:none;
    background:#fac871;
    color:#db0808;
}

.dropdown-menu a:hover{
    background:#db0808;
    color:yellow;
}

/* ==========================================
   FOUNDATION PANEL
========================================== */

.submenu{
    position:relative;
}

.documents-panel{
    display:none;
    position:absolute;
    top:0;
    left:100%;
    min-width:170px;
    background:#fac871;
    border:1px solid #db0808;
    border-radius:8px;
    box-shadow:0 8px 20px rgba(0,0,0,0.20);
    padding:0;
    z-index:9999;
}

@media screen and (min-width:769px){

    .submenu:hover .documents-panel{
        display:block;
    }

}

.documents-panel a{
    display:block;
    padding:4px 4px;
    text-decoration:none;
    color:#751645;
    background:#fac871;
    border-bottom:1px solid #db0808;
}

.documents-panel a:last-child{
    border-bottom:none;
}

.documents-panel a:hover{
    background:#db0808;
    color:yellow;
}

/* ===========================
   HERO SECTION
=========================== */

.hero{
    position:relative;
    display:flex;
    justify-content:center;
    align-items:center;
    min-height:650px;
    background:#faf7f1;
    text-align:center;
    margin-top:140px;
}

.hero::before{
    content:"";
    position:absolute;
    width:80%;
    aspect-ratio:16/5;
    background-image:url("../images/hero.jpg");
    background-size:cover;
    background-position:center;
    opacity:0.12;
    border:2px solid #db0808;
    border-radius:15px;
    z-index:1;
}

.hero-content{
    position:relative;
    z-index:2;
    width:100%;
    max-width:1600px;
    margin:auto;
    text-align:center;
}

.hero-tagline{
    position:absolute;
    top:530px;
    left:50%;
    transform:translateX(-50%);
    width:max-content;
    white-space:nowrap;
    text-decoration:underline;
    text-align:center;
    color:#db0808;
    font-size:1.5rem;
    font-weight:500;
    margin:0;
}

.hero-title{
    color:#cb0b0b;
    font-family:Gadugi,sans-serif;
    font-size:3rem;
    font-weight:700;
    line-height:1.2;
    text-align:center;
    margin-top:-260px;
}

.tagline-word{
    color:#db0808;
    font-family:Gadugi, sans-serif;
    font-size:1em;
    font-weight:bold;
}

.intro-text{
    width:70%;
    max-width:none;
    margin:0 auto;
    padding:0px;
 }

 .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.intro-text p{
color:blue;
font-family:Gadugi, sans-serif;
font-size:1.15rem;
line-height:1.8;
margin-top:0px;
margin-bottom:20px;
}


.hero-buttons{
    margin-top:40px;
}

.btn{
    display:inline-block;
    padding:15px 35px;
    margin:10px;
    border-radius:50px;
    text-decoration:none;
    font-weight:600;
    transition:.3s;
}

.btn-primary{
    background:#c86b11;
    color:white;
}

.btn-primary:hover{
    background:#a7550c;
}

.btn-secondary{
    background:white;
    color:#0f2942;
}

.btn-secondary:hover{
    transform:translateY(-3px);
}

/* ===================================
   SETTLOR PAGE
=================================== */

.page-content{
    width:80%;
    margin:140px auto 60px auto;
    font-family:Gadugi, sans-serif;
    padding-top:30px;
}

.page-title{
    color:#cb0b0b;
    font-size:2.5rem;
    margin-top:40px;
    margin-bottom:40px;
    text-align:center;
}

.settlor-name{
    color:#cb0b0b;
    margin-top:0;
    margin-bottom:15px;
    font-size:2rem;
    font-weight:bold;
}

.settlor-quals{
    font-size:0.65em;
    font-style:italic;
    font-weight:normal;
    margin-left:12px;
}

.settlor-photo{
    float:right;
    width:220px;
    height:280px;
    object-fit:cover;
    margin:0 0 20px 25px;
    border:2px solid firebrick;
    border-radius:10px;
    box-shadow:0 4px 12px rgba(0,0,0,0.20);
}

.settlor-text{
    flex:1;
    color:#cb0b0b;
    font-size:1.2rem;
    line-height:1.8;
    text-align:justify;
}

.settlor-text h2{
    color:#cb0b0b;
    margin-top:0;
    margin-bottom:10px;
}

.settlor-profile{
    display:flex;
}

.footnote-divider{
    margin-top:40px;
    margin-bottom:20px;
    border:none;
    border-top:1px solid firebrick;
}

.footnotes{
    font-size:1rem;
    color:#cb0b0b;
    line-height:1.6;
    width:90%;
    text-align:justify;
}

.footnotes p{
    margin:0 0 10px 0;
}

.footnotes sup{
    font-weight:bold;
}

/* ==================================
   DOCUMENT PAGES
================================== */

.document-hero{
    width:100%;
    padding-top:30px;
    margin-top:140px;
    text-align:center;
}

.document-hero-image{
    display:block;
    margin:auto;
    width:30%;
    max-width:400px;
    height:auto;
    border:2px solid firebrick;
    border-radius:10px;
    box-shadow:0 4px 12px rgba(0,0,0,0.20);
}

.vision-divider{
    width:40%;
    border:0;
    border-top:2px solid firebrick;
    margin:20px auto;
}

.document-content{
    width:80%;
    margin:30px auto 60px auto;
    }

.document-title{
    color:#cb0b0b;
    font-family:Gadugi,sans-serif;
    font-size:2.5rem;
    text-align:center;
    margin-bottom:30px;
}

.document-title1{
    color:#cb0b0b;
    font-family:Gadugi,sans-serif;
    font-size:2.5rem;
    text-align:center;
    margin-bottom:4px;
}

.document-byline{
    color:#cb0b0b;
    font-family:Gadugi,sans-serif;
    font-size:1.5rem;
    text-align:center;
    margin-top:1px;
    margin-bottom:4px;
}

.document-dochead{
    width:100%;
    color:blue;
    font-family:Gadugi,sans-serif;
    font-size:2.4rem;
    font-weight:600;
    text-align:center;
    margin-top:4px;
    margin-bottom:8px;
    text-transform:uppercase;
}

.document-subhead{
    color:blue;
    font-family:Gadugi,sans-serif;
    font-size:2rem;
    font-weight:bold;
    text-align:left;
    margin-bottom:4px;
}

.document-content p{
    color:#cb0b0b;
    font-family:Gadugi,sans-serif;
    font-size:1.1rem;
    line-height:1.9;
    text-align:justify;
    margin-top:0;
    padding-top:0;
    border:0;
}

.document-message{
    width:80%;
    margin:30px auto 60px auto;
    font-size:1.4rem;
    font-weight:normal;
    color:#cb0b0b;
    padding-bottom:4px;
}

.document-minorhead{
    color:blue;
    font-family:Gadugi,sans-serif;
    font-size:1.2rem;
    font-weight:bold;
    margin:0;
    padding:0;
    border:0;
    }

    .document-body{
    color:blue;
    font-family:Gadugi,sans-serif;
    font-size:1.2rem;
    line-height:1.9;
    text-align:left;
      margin-bottom:18px;
}

.document-body:last-child{
    margin-bottom:0;
}
.document-blue{
    width:80%;
    margin:0 auto;
    color:blue;
    text-align:left;
}

.document-blue ul{
    margin-left:25px;
    padding-left:20px;
    color:blue;
}

.document-blue li{
    font-family:Gadugi,sans-serif;
    font-size:1.2rem;
    line-height:1.9;
    color:blue;
    margin-bottom:8px;
}

.document-indent1 { margin-left:30px; }
.document-indent2 { margin-left:60px; }

.document-list{
    font-family:Gadugi,sans-serif;
    font-size:1.2rem;
    line-height:1.9;
    color:blue;
}

.document-list li{
    font-family:Gadugi,sans-serif;
    font-size:1.2rem;
    line-height:1.9;
    color:blue;
    margin-bottom:8px;
}

.document-link{
    color:rgb(151, 8, 235);
    font-weight:bold;
    text-decoration:none;
    display:inline-block;
    transition:
        color 0.3s ease, transform 0.3s ease;
}

.document-link:hover{
    color:rgb(255, 2, 2);
    text-decoration:underline;
    transform: scale(1.08);
}

.document-values li{
    margin-bottom:1.8px;
    line-height:1.9;
}

.charter-list{
    list-style:none;
    width:80%;
    margin:30px auto;
    padding:0;
}

.charter-bullet{
    width:28px;
    height:28px;
    flex-shrink:0;
    margin-top:3px;
}

.charter-list li:last-child{
    margin-bottom:0;
}
.document-footnote{
    color:blue;
    font-family:Gadugi,sans-serif;
    font-size:1.2rem;
    font-style:italic;
    text-align:center;
    margin-top:-4px;
    margin-bottom:20px;
}

.pronunciation-item{
    position:relative;
    margin-top:10px;
}

/* Main pronunciation button */

.pronunciation-link{
    display:inline-block;
    background:crimson;
    color:yellow;
    padding:10px 18px;
    border-radius:4px;
    text-decoration:none;
    font-family:Gadugi,sans-serif;
    font-weight:600;
    letter-spacing:1px;
    transition:all .3s ease;
}

.pronunciation-link:hover{
    background:blueviolet;
}

/* Guide panel */

.pronunciation-panel{
    display:none;
    margin-top:12px;
    max-width:500px;
    background:rgb(247, 205, 205);
    border-left:4px solid crimson;
    border-radius:6px;
    padding:16px;
    box-shadow:0 4px 12px rgba(0,0,0,.15);
}

.panel-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    color:crimson;
    font-weight:700;
    margin-bottom:10px;
}

.panel-close{
    border:none;
    background:none;
    font-size:24px;
    cursor:pointer;
    color:#666;
}

.panel-close:hover{
    color:blueviolet;
}

.pronunciation-text{
    margin:0 0 14px 0;
    font-size:0.95rem;
    line-height:1.5;
    color:#333;
}

/* Play button */

.play-btn{
    background:crimson;
    color:yellow;
    border:none;
    padding:10px 18px;
    border-radius:4px;
    cursor:pointer;
    font-weight:600;
    font-size:0.95rem;
    transition:background .3s;
}

.play-btn:hover{
    background:blueviolet;
}

.sanskrit-title{
    color:gold;
    font-weight:700;
    font-size:1.05em;
}

.guide-title{
    font-weight:700;
}

.guide-divider{
    color:blue;
    padding:0 4px;
}

/* ==================================
        TRUSTEE PAGE
================================== */

.trustees-page{
    width:80%;
    margin:30px auto 60px auto;
}

.trustee-photo{
    width:100%;
    max-width:180px;
    height:auto;
    display:block;
    margin:0 auto;
    border:2px solid firebrick;
    border-radius:8px;
}

.trustee-divider{
    width:200px;
    border:none;
    border-top:2px solid firebrick;
    margin:15px auto;
}

.trustee-featured{
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    margin-bottom:35px;
}

.trustees-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:40px;
}

.trustee-card{
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    text-decoration:none;
    color:inherit;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.trustee-card:hover{
    transform:translateY(-5px);
}

.trustee-name{
    color:#cb0b0b;
    font-family:Gadugi,sans-serif;
    font-size:1.6rem;
    font-weight:bold;
    margin-top:6px;
    margin-bottom:2px;
}

.trustee-quals{
    font-size:1.2rem;
    font-style:italic;
    font-weight:normal;
    margin-left:12px;
}

.trustee-occupation{
    display:block;
    font-size:1.2rem;
    font-style:italic;
    font-weight:normal;
    color:#cb0b0b;
    margin-top:2px;
  }

  .trustee-back{
    color:#cb0b0b;
    font-family:Gadugi,sans-serif;
    font-size:1rem;
    margin:10px 0 0 0;
    padding:0;
    text-align:left;
}

@media screen and (max-width:768px){
    .trustees-grid{
        grid-template-columns:1fr;
    }
    .trustee-featured .trustee-photo{
        max-width:220px;
    }
    .trustee-photo{
        max-width:180px;
    }
}

.document-values li{
    margin-bottom:1.8px;
    line-height:1.9;
}

.charter-list li{
    display:flex;
    align-items:flex-start;
    gap:16px;
    margin-bottom:28px;
    color:rgb(160, 4, 160);
    font-family:Gadugi,sans-serif;
    font-size:1.2rem;
    line-height:1.6;
    text-align:justify;
}

/* ====================
    EVENTS PAGE
======================= */

.event-heading{

    color:#cb0b0b;

    font-family:Gadugi,sans-serif;

    font-size:2rem;

    font-weight:bold;

    margin-bottom:15px;
}

.event-subheading{
    margin-top:1.2rem;
    margin-bottom:0.5rem;
    font-size:1.3rem;
    font-weight:600;
    color:#8b0000;   /* or your BPV theme colour */
}

.event-description,
.event-description p,
.event-description ol,
.event-description li{
    font-weight: 400 !important;
}

.event-box{

    width:fit-content;
    clear:both;
    background:#fde7a8;
    border:3px solid firebrick;
    border-radius:12px;
    padding:12px 24px;
    margin-bottom:25px;
    box-shadow:0 4px 10px rgba(0,0,0,0.15);
}

.event-box p{

    margin:6px 0;
    color:#cb0b0b;
    font-family:Gadugi,sans-serif;
    font-size:1.35rem;
    font-weight:700;
}

.event-box strong{

    color:blue;

    font-weight:900;
}

.events-divider{

    width:50%;

    margin:10px 0 10px 0;

    border:none;

    border-top:2px solid firebrick;
}

.past-events-container{

    margin-bottom:30px;
}

.past-events-box{

    display:flex;

    align-items:center;

    justify-content:center;

    width:220px;

    aspect-ratio:1 / 1;

    background:
        linear-gradient(    
            rgba(253,231,168,0.88),
            rgba(253,231,168,0.88)
        ),
        url("../images/holding.png");

    background-size:100%;

    background-repeat:no-repeat;

    background-position:center;

    background-clip:border-box;

    border:2px solid firebrick;

    border-radius:12px;

    color:#cb0b0b;

    font-family:Gadugi,sans-serif;

    font-size:2rem;

    font-weight:900;

    text-decoration:none;

    text-align:center;

    box-shadow:0 4px 10px rgba(0,0,0,0.15);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.past-events-box:hover{

    background:
        linear-gradient(
            rgba(243, 192, 133, 0.95),
            rgba(243, 192, 133, 0.95)
        ),
        url("../images/holding.png");

    background-size:100%;

    background-repeat:no-repeat;

    background-position:center;

    transform:translateY(-3px);

    box-shadow:0 6px 14px rgba(0,0,0,0.20);
}

.contact-row{
    display:flex;
    align-items:flex-start;
    gap:30px;
}

.contact-address{
    line-height:1.6;
}

/* =========================================
        CODES FOR MAKING WEBPAGE RESPONSIVE
============================================ */

/* HAMBURGER MENU */

.menu-toggle{
    display:none;
    background:none;
    border:none;
    color:white;
    font-size:2rem;
    cursor:pointer;
    padding:5px 10px;
}

img{
    max-width:100%;
    height:auto;
}

@media screen and (max-width:1024px){
    .navbar{
        width:95%;
    }
    .document-content,
    .document-blue,
    .document-message,
    .page-content,
    .trustees-page{
        width:92%;
    }

    .intro-text{
        width:90%;
    }

    .hero-title{
        font-size:2.5rem;
        margin-bottom:180px;
    }

    .hero-tagline{
        width:100%;
        left:50%;
        transform:translateX(-50%);
        font-size:1.4rem;
    }

}

@media screen and (min-width:769px){

    .nav-menu{
        display:flex !important;
    }

    .menu-toggle{
        display:none;
    }

}

@media screen and (max-width:768px){

     .header{
        position:fixed;
        top:0;
        width:100%;
        z-index:1000;
    }

.navbar{
    width:100%;
    padding:2px 2px;
    box-sizing:border-box;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

    .logo{
        height:180px;
        width:auto;
    }

    .logo-container{
        gap:6px;
    }

    .logo-text{
        position:relative;
        top:4px;
    }

    .logo-text h1{
        font-size:0.75rem;
        line-height:1.1;
        margin:0;
        padding:0;
    }

.logo-text p{
    margin:0;
    font-size:0.45rem;
    line-height:1.1;
        margin:0;
        padding:0;
    color:yellow;
  }

.menu-toggle{
    display:block;
}

.navbar{
    position:relative;
}

.nav-menu{
    display:none;
    flex-direction:column;
    position:absolute;
    top:100%;
    left:0;
    width:100%;
    background:blue;
    padding:10px 0;
    margin:0;
    z-index:1000;
}

.nav-menu.active{
    display:flex;
}

.nav-menu li{
    list-style:none;
    margin:6px 0;
}

.nav-menu a{
    display:block;
    text-align:center;
    font-size:1rem;
    padding:10px;
}

/* Mobile Foundation submenu */

.submenu{
    width:100%;
}

.documents-panel{
    display:none;
    position:static;
    width:100%;
    min-width:0;
    background:#fac871;
    border:none;
    box-shadow:none;
    margin-top:4px;
}

.documents-panel.mobile-open{
    display:block !important;
}

.documents-panel a{
    display:block;
    padding:8px 8px 8px 30px;
}

    .nav-menu a{
        font-size:1rem;
    }

    .hero{
        margin-top:40px;
        padding:20px 0;
    }

    .hero::before{
        width:95%;
    }

    .hero-title{
        margin-bottom:40px;
    }

    .hero-tagline{
        position:relative;
        top:auto;
        left:auto;
        transform:none;
        width:95%;
        white-space:normal;
        margin:auto;
        font-size:1rem;
    }

    .intro-text{
        width:95%;
    }

    .document-hero{
        margin-top:70px;
        padding-top:10px;
    }

    .document-hero-image{
        width:80%;
    }

    .settlor-photo{
        float:none;
        display:block;
        width:180px;
        height:auto;
        margin:20px auto;
    }

    .trustees-grid{
        grid-template-columns:1fr;
    }

    .trustee-photo{
        width:180px;
        height:auto;
        object-fit:cover;;
    }

}

@media screen and (max-width:768px){

    .event-box p{

        font-size:1.15rem;
    }

    .past-events-box{

        width:180px;

        height:180px;

        font-size:1.6rem;
    }

    .events-divider{

        width:70%;
    }

}

@media screen and (max-width:480px){

    .logo{
        height:24px;
    }

    .logo-text h1{
        font-size:0.65rem;
        line-height:1.1;
    }

    .logo-text p{
        font-size:0.40rem;
        line-height:1.1
    }

    .hero{
        margin-top:40px;
        min-height:auto;
        padding:20px 0;
    }  

    .hero-title{
        font-size:1.2rem;
        margin-top:0;
        margin-bottom:40px;
    }

    .hero-tagline{
        font-size:.85rem;
    }

    .document-title,
    .page-title{
        font-size:1.7rem;
    }

    .document-dochead{
        font-size:1.5rem;
    }

    .document-subhead{
        font-size:1.3rem;
    }

    .document-body,
    .document-list,
    .document-list li{

        font-size:.9rem;
    }

    .document-hero-image{
        width:90%;
    }

    .document-hero{
        margin-top:70px;
        padding-top:10px;
    }

    .settlor-photo{
        width:160px;
        height:auto;
    }

    .btn{
        display:block;
        width:90%;
        margin:10px auto;
    }

    .trustee-photo{
        width:160px;
        height:auto;
        object-fit:cover;
    }

    .trustee-name{
        font-size:1.1rem;
    }

    .trustee-occupation{
        font-size:0.9rem;
    }

}

@media screen and (max-width:480px){

    .event-heading{

        font-size:1.6rem;
    }

    .event-box{

        padding:10px 16px;
    }

    .event-box p{

        font-size:1rem;
    }

    .past-events-box{

        width:150px;

        height:150px;

        font-size:1.3rem;

        background-size:100%;
    }

    .events-divider{

        width:80%;
    }

}
