/* Ticker Container */
.ticker-wrap {
    width: 100%;
    overflow: hidden; /* Hides content outside the strip */
    white-space: nowrap; /* Keeps text in one line */
}

/* The Moving Strip */
.ticker-move {
    display: inline-block;
    white-space: nowrap;
    /* Speed of the ticker: increase 's' to go slower, decrease to go faster */
    animation: ticker-slide 150s linear infinite; 
}

/* The Individual Text Item */
.ticker-item_down,.ticker-item_up {
    display: inline-block;
    padding: 0 10px;
    font-size: medium;
    font-weight: 100;
    font-family: 'Gill Sans MT', sans-serif !important;
}
.ticker-item_down {
    color: #fff;
    margin-left: 100px !important;
}
.ticker-item_up {
    color: #fff;
    margin-left: 100px !important;
}

/* 
    Animation Keyframes
    MOVES LEFT TO RIGHT: Starts at -100% (left) and moves to 0% (center)
    To reverse direction (Standard Marquee), change:
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-100%, 0, 0); }
*/
@keyframes ticker-slide {
    from {
        transform: translate3d(-100%, 0, 0);
    }
    to {
        transform: translate3d(0, 0, 0);
    }
}
/* background: linear-gradient(to left, #0f2027, #203a43, #2c5364); */
/* .holder-pooja {
    background: linear-gradient(to left, #0d2115, #153c28, #126443);
    padding: 20px 100px 0px 100px;
}

.img-container-pooja {
    display: grid;
    grid-template-columns: 60% 40%;
    max-height: 400px;
    align-items: center;
    justify-content: center;
}
.img-container-pooja > span {
    color: #fff;
    width: 100%;
    text-align: justify;
    font-size: medium;
    font-family: 'Gill Sans MT', sans-serif;
}
.pooja-name {
    font-size: 40px;
}
.img-container-pooja > div {
    width: 100%;
    height: 100%;
    overflow: hidden;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}
.img-container-pooja:hover div {
    filter: grayscale(0);
}
.img-container-pooja > div > img {
    object-fit: contain;
    width: 100%;
}
.quote {
    padding: 10px 20px;
    margin-top: 10px;
    color: white;
    font-style: italic;
} */

/* Base Styles (Mobile First) */
.holder-pooja {
    background: linear-gradient(to left, #0d2115, #153c28, #126443);
    /* Reduced padding for mobile screens */
    padding: 40px 20px 0px 20px;
}

.img-container-pooja {
    display: grid;
    /* Stack elements vertically on mobile */
    grid-template-columns: 1fr;
    height: auto; /* Allow height to grow with content */
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.img-container-pooja > span {
    color: #fff;
    width: 90%;
    justify-self: center;
    /* Left align usually looks better on mobile than justify */
    text-align: justify;
    font-size: 1rem;
    font-family: 'Gill Sans MT', sans-serif;
    line-height: 1.5;
}

.pooja-name {
    font-size: 25px; /* Smaller font for mobile */
    /* display: block;
    margin-bottom: 10px; */
}

.img-container-pooja > div {
    width: 320px;
    height: 100%;
    justify-self: center;
    /* max-height: 450px; Prevent image from becoming infinitely tall */
    overflow: hidden;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

/* On mobile/touch devices, hover is less relevant, 
   but we keep it for consistency */
.img-container-pooja:hover div {
    filter: grayscale(0);
}

.img-container-pooja > div > img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    display: block;
}

.quote {
    padding: 20px 0;
    color: white;
    font-style: italic;
    font-size: 0.9rem;
    text-align: center;
}

/* Tablet and Desktop Styles */
@media (min-width: 768px) {
    .holder-pooja {
        padding: 50px 60px 0px 60px;
    }

    .img-container-pooja {
        grid-template-columns: 60% 40%;
        gap: 0;
    }
    .img-container-pooja > span {
        text-align: justify;
        padding-right: 40px;
    }

    .pooja-name {
        font-size: 40px;
    }

    .quote {
        text-align: left;
        padding: 10px 20px;
        margin-top: 10px;
    }
}

/* Wide Screens */
@media (min-width: 1200px) {
    .holder-pooja {
        padding: 50px 100px 0px 100px;
    }
    .img-container-pooja {
        width: calc(100% - 200px);
        justify-self: center;
    }
}

.main-member {
    display: grid;
    grid-template-columns: 40% 60%;
    align-items: flex-start;
    justify-content: center;
    box-sizing: border-box;
    padding: clamp(10px, 2vw, 20px) 0 0 0;
    gap: clamp(10px, 2vw, 20px);
    margin-top: clamp(10px, 2vw, 20px);
    height: auto;
    min-height: 530px;
    justify-self: center;
    z-index: 996;
}

.member-details {
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: fit-content;
    height: auto;
    position: relative;
    padding: clamp(10px, 2vw, 20px);
    box-sizing: border-box;
    border: clamp(3px, 0.8vw, 5px) solid #00613a;
    background: #00613a;
    border-radius: clamp(12px, 3vw, 20px);
    transition: border 0.3s ease;
}

.member-details:hover img,
.img-container:hover img,
.img-container > img:hover {
    transform: scale(1.05);
}

.details > p {
    color: rgb(128, 70, 0);
    box-sizing: border-box;
    width: 100%;
}
.details > p > span:first-child {
    background: transparent !important;
    color: white;
    text-align: justify;
}
.details > p > span {
    border-radius: 15px;
    background: #F7E396;
    margin-bottom: 10px;
    box-sizing: border-box;
    padding: clamp(8px, 2vw, 10px) clamp(12px, 3vw, 20px);
    display: inline-block;
}

.info-tab-container {
    width: 100%;
    min-width: 100%;
    height: 100%;
    min-height: 530px;
    margin: 0;
    padding: 0;
    display: grid;
    /* grid-template-columns: clamp(120px, 20%, 150px) 1fr; */
    grid-template-rows: 20% 80% !important;
    /* grid-template-rows: repeat(2,1fr) !important; */
    align-items: flex-start;
    justify-content: center;
    gap: clamp(8px, 1.5vw, 10px);
}

.controls-section {
    /* border: 2px solid #97A87A; */
    /* padding: clamp(8px, 1.5vw, 10px); */
    border-radius: clamp(12px, 3vw, 20px);
    width: 100%;
    min-width: 100%;
    box-sizing: border-box;
    height: 100%;
}

.controls-section > ul {
    display: flex;
    /* flex-flow: column nowrap; */
    flex-flow: row wrap !important;
    align-items: center;
    justify-content: center;
    gap: clamp(4px, 1vw, 5px);
    /* height: 100%; */
    height: fit-content !important;
}

.controls-section > ul > li {
    border-radius: clamp(12px, 3vw, 20px);
    box-sizing: border-box;
    color: white;
    background: #00613a;
    padding: clamp(8px, 1.5vw, 10px) clamp(12px, 3vw, 20px);
    transition: background 0.3s ease, color 0.3s linear, transform 0.2s ease;
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 800;
    font-size: clamp(13px, 2.5vw, 16px);
    min-height: 48px;
    text-align: center;
}

.controls-section > ul > li:hover {
    color: #00341f;
    background: #00834e;
    transform: translateY(-2px);
}

.img-container > img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.img-container {
    height: clamp(120px, 20vw, 150px);
    width: clamp(120px, 20vw, 150px);
    border: clamp(3px, 0.8vw, 5px) solid #00613a;
    border-radius: 50%;
    overflow: hidden;
    position: absolute;
    top: calc(clamp(120px, 20vw, 150px) / -2);
    left: 50%;
    transform: translateX(-50%);
    transition: border 0.3s ease;
}

.details {
    padding-top: clamp(70px, 15vw, 80px);
    text-align: center;
    width: 100%;
}

.info-tab {
    border-radius: clamp(12px, 3vw, 20px);
    height: 100%;
    /* min-height: 530px; */
    width: 100%;
    min-width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    box-sizing: border-box;
    background-color: #00613a;
}

.info-tab * {
    color: white;
    transition: opacity 0.3s ease;
}

.info {
    /* padding: clamp(16px, 3vw, 30px) clamp(16px, 3vw, 30px); */
    padding: clamp(16px, 3vw, 30px) clamp(16px, 3vw, 30px) 0 clamp(16px, 3vw, 30px);
    box-sizing: border-box;
    height: 100%;
    width: 90vw;
    max-height: 530px;
    overflow: hidden auto;
    scrollbar-width: thin;
    scrollbar-color: #3a481e transparent;
}

.info::-webkit-scrollbar {
    width: 6px;
}

.info::-webkit-scrollbar-track {
    background: transparent;
}

.info::-webkit-scrollbar-thumb {
    background: #3a481e;
    border-radius: 3px;
}

.info > p {
    font-size: clamp(15px, 2.5vw, 18px);
    line-height: 1.6;
}

.info > ul {
    padding-top: clamp(8px, 1.5vw, 10px);
    box-sizing: border-box;
    padding-left: clamp(16px, 3vw, 20px);
}

.info > ul > li {
    font-size: clamp(14px, 2.5vw, 18px);
    line-height: 1.8;
    margin-bottom: 8px;
}

.info > ul > li > strong {
    font-weight: 600;
}

/* Tablet Breakpoint */
@media (max-width: 1024px) {
    .main-member {
        /* grid-template-columns: 45% 55%; */
        grid-template-columns: 1fr;
        grid-template-rows: repeat(auto-fit, 1fr);
        gap: 15px;
    }
    .controls-section {
        width: 100%;
    }
    /* .info-tab-container {
        grid-template-columns: 130px 1fr;
    } */
}

/* Tablet Portrait / Large Mobile */
@media (max-width: 768px) {
    .main-member {
        grid-template-columns: 1fr;
        gap: 80px;
        height: auto;
        min-height: auto;
        padding: 0px 20px;
    }

    .member-details {
        min-height: 400px;
    }

    .info-tab-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        min-height: auto;
        gap: 15px;
    }

    .controls-section {
        height: auto;
        width: 100%;
    }

    .controls-section > ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }

    .controls-section > ul > li {
        flex: 1 1 calc(50% - 10px);
        /* min-width: 120px; */
        min-width: fit-content;
    }

    .info-tab {
        min-height: 400px;
    }

    .info {
        max-height: 400px;
    }

    .img-container {
        height: 130px;
        width: 130px;
        top: -65px;
    }

    .details {
        padding-top: 70px;
    }
}

/* Mobile Breakpoint */
@media (max-width: 480px) {
    .main-member {
        gap: 70px;
        padding-top: 5px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .member-details {
        border-radius: 16px;
        padding: 15px;
        min-height: 350px;
    }

    .info-tab-container {
        gap: 12px;
        grid-template-rows: 220px 1fr !important;
    }

    .controls-section {
        padding: 8px;
        border-radius: 16px;
    }

    .controls-section > ul {
        gap: 8px;
    }

    .controls-section > ul > li {
        flex: 1 1 100%;
        /* padding: 12px 16px; */
        padding: 6px 8px;
        /* font-size: 14px; */
        font-size: 12px;
        min-height: 44px;
        border-radius: 12px;
    }

    .img-container {
        height: 110px;
        width: 110px;
        top: -55px;
        border-width: 4px;
    }

    .details {
        padding-top: 60px;
    }

    .info-tab {
        border-radius: 16px;
        min-height: 350px;
    }

    .info {
        padding: 16px 20px;
        max-height: 350px;
    }

    .info > p {
        font-size: 15px;
    }

    .info > ul > li {
        font-size: 14px;
        line-height: 1.7;
    }
}

/* Reduce Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}






.certificate *,.certificate-section * {
    color: white !important;
}
.certificate {
    box-sizing: border-box;
    padding-top: 20px;
    padding-bottom: 20px;
}
.certificate-section > div:first-child {
    font-size: clamp(32px, 5vw, 60px);
    font-weight: 600;
    padding-top: clamp(30px, 5vh, 50px);
    margin-bottom: clamp(30px, 5vh, 50px);
    width: 100%;
    text-align: center;
}
.certificate > div:first-child {
    margin-top: clamp(20px, 3vh, 30px);
    padding-left: 20px;
    padding-bottom: 20px;
    box-sizing: border-box;
    font-size: clamp(24px, 4vw, 35px);
    font-weight: 600;
    width: 100%;
}
.cert-holder {
    justify-self: center;
    width: 90%;
    display: grid;
    grid-template-columns: repeat(3, 33.33%);
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding: 20px 0px;
    position: relative;
    z-index: 3;
}
.certificate-prints {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 3/4;
    height: auto;
    margin: 0 auto;
    padding: 0 !important;
    box-sizing: border-box;
    background-color: white;
    border-radius: clamp(15px, 3vw, 30px);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    z-index: 2;
}
.certificate-prints:hover {
    transform: scale(1.05);
}

.show {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    height: 100%;
    width: 100%;
    background: #0000005f;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}
.show:hover {
    opacity: 1;
}



.certificate-prints > img {
    object-fit: fill;
}




.certificate-section {
    position: relative;
    z-index: 3;
    overflow: hidden;
}
.svg-container {
    width: 100%;
    max-width: 2160px;
    height: auto;
    position: absolute;
    z-index: 1;
    object-fit: fill;
}

/* Circle Animations */
.circle-1 {
    animation: float-1 6s ease-in-out infinite;
}

.circle-2 {
    animation: float-2 8s ease-in-out infinite;
}

.circle-3 {
    animation: float-3 7s ease-in-out infinite;
}

.circle-4 {
    animation: float-1 9s ease-in-out infinite reverse;
}

/* Rectangle Animations */
.rect-1 {
    animation: rotate-float-1 10s linear infinite;
    transform-origin: center;
}

.rect-2 {
    animation: rotate-float-2 12s linear infinite;
    transform-origin: center;
}

.rect-3 {
    animation: rotate-float-1 11s linear infinite reverse;
    transform-origin: center;
}

/* Triangle Animation */
.triangle {
    animation: spin-pulse 8s ease-in-out infinite;
    transform-origin: center;
}

.triangle-2 {
    animation: spin-pulse 9s ease-in-out infinite reverse;
    transform-origin: center;
}

/* Hexagon Animation */
.hexagon {
    animation: morph-scale 6s ease-in-out infinite;
    transform-origin: center;
}

/* Star Animation */
.star {
    animation: twinkle 4s ease-in-out infinite;
    transform-origin: center;
}

.star-2 {
    animation: twinkle 5s ease-in-out infinite;
    transform-origin: center;
}

/* Keyframe Animations */
@keyframes float-1 {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(30px, -50px);
    }
}

@keyframes float-2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-40px, 40px) scale(1.2);
    }
}

@keyframes float-3 {
    0%, 100% {
        transform: translate(0, 0);
    }
    33% {
        transform: translate(25px, 50px);
    }
    66% {
        transform: translate(-35px, -30px);
    }
}

@keyframes rotate-float-1 {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(30px, -40px) rotate(180deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

@keyframes rotate-float-2 {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(-40px, 35px) rotate(-180deg);
    }
    100% {
        transform: translate(0, 0) rotate(-360deg);
    }
}

@keyframes spin-pulse {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.3);
    }
}

@keyframes morph-scale {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.2) rotate(90deg);
    }
    50% {
        transform: scale(0.9) rotate(180deg);
    }
    75% {
        transform: scale(1.1) rotate(270deg);
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.4) rotate(180deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .svg-container {
        max-width: 100%;
    }
}


#showCertificate {
    position: fixed;
    top: 50%;
    left: 0%;
    transform: translate(0%,-50%);
    opacity: 0;
    background: white;
    border-radius: 30px;
    padding: 40px 20px;
    z-index: 5;
    width: fit-content;
    transition: all 0.3s ease;
    z-index: 999;
    height: calc(100vh - 50px);
}
#background{
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    height: 100vh;
    width: 100vw;
    z-index: 998;
    background-color: rgba(0, 0, 0, 0.5);
}

#showCertificate > div {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    height: 100%;
}
#showCertificate > div > img {
    object-fit: fill;
    height: 100%;
}
#showCertificate > #closeShow {
    position: absolute;
    top: 20px;
    right: 20px;
    height: 30px;
    width: 30px;
    cursor: pointer;
    transform: rotate(45deg);
}
#closeShow::after, #closeShow::before {
    position: absolute;
    content: '';
    background: black;
    border-radius: 3px;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}
#closeShow::after {
    height: 3px;
    width: 100%;
}
#closeShow::before {
    width: 3px;
    height: 100%;
}













/* Css Accordion Panel Styling
.accordion-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 12px;
    padding-top: 20px;
    overflow: hidden;
}

.accordion-container > * {
    margin: 5px 0px;
    border-radius: 20px;
    overflow: hidden;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    padding: 20px 24px;
    box-sizing: border-box;
    border: none;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
    position: relative;
    background: #3a481e;
}

.accordion-header > span:first-child {
    color: #97A87A;
}


.accordion-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 12px;
}

.accordion-icon svg {
    width: 100%;
    height: 100%;
    fill: #97A87A;
}

.accordion-header[aria-expanded="true"] .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #bfd19f;
}

.accordion-content > li {
    list-style: none;
    box-sizing: border-box;
    width: 100%;
    padding: 5px 10px;
}

.accordion-content.active {
    max-height: 500px;
    padding: 20px 24px;
}

.accordion-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
}

.accordion-content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .accordion-header {
        padding: 16px 20px;
        font-size: 15px;
    }

    .accordion-content.active {
        padding: 16px 20px;
    }
}
*/


/* CSS Accordion Panel Styling */
.accordion-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 12px;
    padding: clamp(12px, 3vw, 20px);
    overflow: hidden;
}

.accordion-container > * {
    margin: clamp(3px, 1vw, 5px) 0;
    border-radius: clamp(12px, 3vw, 20px);
    overflow: hidden;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    padding: clamp(16px, 3vw, 24px) clamp(16px, 4vw, 24px);
    box-sizing: border-box;
    border: none;
    text-align: left;
    font-size: clamp(14px, 3vw, 16px);
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: background 0.3s ease;
    position: relative;
    background: #004b2a;
    min-height: 48px; /* Accessibility: minimum touch target */
}

.accordion-header > span:first-child {
    color: #97A87A;
    flex: 1;
    word-break: break-word;
}

.accordion-icon {
    width: clamp(20px, 4vw, 24px);
    height: clamp(20px, 4vw, 24px);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.accordion-icon svg {
    width: 100%;
    height: 100%;
    fill: #97A87A;
}

.accordion-header[aria-expanded="true"] .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #9fd1a0;
}

.accordion-content > li {
    list-style: none;
    box-sizing: border-box;
    width: 100%;
    padding: clamp(4px, 1vw, 10px) clamp(8px, 2vw, 10px);
}

.accordion-content.active {
    max-height: 1000px; /* Increased for better content support */
    padding: clamp(16px, 3vw, 24px) clamp(16px, 4vw, 24px);
}

.accordion-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: clamp(8px, 2vw, 12px);
    font-size: clamp(14px, 2.5vw, 16px);
}

.accordion-content p:last-child {
    margin-bottom: 0;
}

/* Tablet breakpoint */
@media (max-width: 1024px) {
    .accordion-container {
        padding: 16px 12px;
    }
}

/* Mobile breakpoint */
@media (max-width: 768px) {
    .accordion-header {
        padding: 16px 16px;
        font-size: 15px;
        gap: 8px;
    }

    .accordion-content.active {
        padding: 16px 16px;
    }

    .accordion-icon {
        width: 20px;
        height: 20px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .accordion-container {
        border-radius: 8px;
        padding: 10px 8px;
    }

    .accordion-container > * {
        margin: 4px 0;
        border-radius: 12px;
    }

    .accordion-header {
        padding: 14px 12px;
        font-size: 14px;
        min-height: 44px;
    }

    .accordion-content.active {
        padding: 14px 12px;
    }

    .accordion-content p {
        font-size: 13px;
        line-height: 1.5;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .accordion-header,
    .accordion-icon,
    .accordion-content {
        transition: none;
    }
}
