/* color palette: #1d274a, #00adb5, #ffffff */

p {
    font-size: 1.1rem;
    font-weight: 500;
}

.home-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 60px;
}

.home-hero h1 {
    font-size: 2.5rem;
    color: #00adb5;
    text-shadow: 0 10px 10px rgba(0, 173, 181, 0.2);
    max-width: 600px;
    margin-bottom: 20px;
}

.hero-content {
    background-color: rgba(239, 254, 255, 0.3);
    width: 50%;
    padding: 20px 30px;
    border-radius: 25px;
}

@media (max-width: 768px) {
    .hero-content {
        width: 100%;
    }

    .home-hero h1 {
        font-size: 2rem;
    }

    .hero-content h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 1024px) {
    .home-hero h1 {
        font-size: 2rem;
    }

    .hero-content h3 {
        font-size: 1.5rem;
    }
    
}

.hero-content h3 {
    font-size: 1.5rem;
}

.hero-content div p,
.about-text p {
    text-align: justify;
    margin-bottom: 10px;
}

.hero-image {
    position: relative;
    right: 20px;
    top: 20px;
}

.hero-image img {
    position: relative;
    width: clamp(400px, 50vw, 600px);
    height: auto;
    padding-left: 60px;
    z-index: -1;
    filter: drop-shadow(0 10px 10px rgba(0, 173, 181, 0.5));
}

.glance-section {
    color: #ffffff;
    padding: 0px 20px;
    text-align: center;
    position: relative;
}

.glance-section h2 {
    font-size: clamp(1rem, 3vw, 2.5rem);
    margin-bottom: 20px;
    color: #00adb5;
}

.glance-cards {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.card {
    background-color: #ffffff;
    color: #1d274a;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    flex: 1;
    max-width: 300px;
    text-align: center;
    transition: all 0.3s ease;
}

.card p {
    font-size: clamp(.5rem, 2vw, 1rem);
}



.card img {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
}

.card h3 {
    color: #00adb5;
    margin-bottom: 10px;
    font-size: clamp(1rem, 2vw, 1.5rem);
}

.card:hover {
    filter: drop-shadow(10px 20px 40px rgba(0, 173, 181, 0.8));
}


.mission-card {
    position: relative;
    background-color: #ffffff;
    color: #1d274a;
    margin: 40px auto;
    padding: 40px 20px;
    width: 80%;
    max-width: 800px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.mission-card img {
    position: relative;
    width: 100px;
    height: auto;
    border-radius: 10px;
}


.about-section {
    padding: 0px 200px;
    position: relative;
    padding-left: 10px;
    width: 100%;
}

@media (max-width: 1024px) {
    .about-section {
        padding: 0px 100px;
        padding-left: 10px;
        width: 1020px;
    }
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-direction: row;
    gap: 40px;

}

.about-content h1 {
    font-size: clamp(2.5rem, 5vw, 500px);
    color: #00adb5;
    margin-bottom: 30px;
    width: 100%;
    font-weight: 900;
    text-align: center;
}

@media (max-width: 768px) {
    .about-content h1 {
        margin-bottom: auto;
    }    
}

.about-content h2 {
    font-size: 2.5rem;
    color: #00adb5;
    max-width: 600px;
}

.about-content {
    margin-bottom: 40px;
}

.about-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #00adb5;
    color: #ffffff;
    text-decoration: none;
    border-radius: 25px;
    transition: background-color 0.3s ease;
}

.about-button:hover {
    background-color: transparent;
    color: #00adb5;
    border: 1.5px solid #00adb5;
    box-shadow: 0 10px 20px #00adb5;
}



.consortium {
    padding: 0px 20px;
    color: #484848;
    display: flex;
    flex-direction: column;
    align-items: center;

}

.consortium h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #00adb5;
    margin-bottom: 10px;
    width: 100%;
    font-weight: 900;
    text-align: center;
}

.consortium p {
    text-align: center;
    max-width: 80%;
}


.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.partner-item {
    background: transparent;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.partner-item a {
    text-decoration: none;
    display: block;
}

.partner-item img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    transition: opacity 0.3s ease;
}

.partner-item:hover img {
    opacity: 0.9;
}


.master-node {
    color: #ffffff;
    font-weight: 900;
    font-size: 2rem;
}


.star {
    position: absolute;
    z-index: -1;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 8px 2px white;
    animation: fall linear forwards, blink 1.5s infinite;
}

@keyframes fall {
    0% {
        top: -30px;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100vh;
        opacity: 0;
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}



/* SCROLL ANIMATION */
.scroll-animate {
    opacity: 0;
    transform: translateY(70px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.scroll-animate.show {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delay */
.scroll-animate:nth-child(1) {
    transition-delay: 0.1s;
}

.scroll-animate:nth-child(2) {
    transition-delay: 0.2s;
}

.scroll-animate:nth-child(3) {
    transition-delay: 0.3s;
}

.scroll-animate:nth-child(4) {
    transition-delay: 0.4s;
}

.scroll-animate:nth-child(5) {
    transition-delay: 0.5s;
}


.training {
    padding: 0px 40px;
    text-align: center;
}

.training h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #00adb5;
    margin-bottom: 10px;
    width: 100%;
    font-weight: 900;
    text-align: center;
}

.training p {
    font-size: clamp(.8rem, 3vw, 1rem);
    margin-bottom: 10px;
    width: 100%;
    font-weight: 500;
    text-align: left;
}

.training ul li {
    font-size: clamp(.8rem, 3vw, 1rem);
    font-weight: 500;
}


.section {
    background: white;
    color: #1d274a;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.section:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 173, 181, 0.8);
}

.section h2 {
    color: #00adb5;
    font-size: 1.8em;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section h2 .toggle-icon {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.section h2 .toggle-icon.active {
    transform: rotate(180deg);
}

.content {
    display: none;
    padding: 10px 0;
}

.content.active {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    animation: fadeIn 0.5s ease-in-out;
}

ul li {
    font-family: 'Inter', sans-serif;
}

.content ul {
    list-style: none;
    padding-left: 20px;
}

.content ul li {
    text-align: left;
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.content ul li::before {
    content: '●';
    color: #00adb5;
    position: absolute;
    left: 0;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #00adb5;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #1d274a;
}



@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}



.policy-impact {
    padding: 50px 100px;
}

.policy-impact h2 {
    font-size: clamp(1rem, 5vh, 48px);
    margin-bottom: 20px;
    border-bottom: 2px solid #00adb5;
}

@media (max-width: 768px) {
    .policy-impact h2 {
        font-size: clamp(1rem, 5vh, 36px);
    }
}

.policy-impact-section {
    padding: 50px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sparc-policy-flip-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    /* Slightly smaller min-width */
    gap: 20px;
    /* Reduced gap for mobile */
    margin-bottom: 20px;
}

.sparc-policy-flip-card-item {
    perspective: 1000px;
    height: 500px;
    /* Reduced height for better mobile fit */
}

.sparc-policy-flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    /* Slightly faster flip */
    transform-style: preserve-3d;
}

.sparc-policy-flip-card-item:hover .sparc-policy-flip-card-inner {
    transform: rotateY(180deg);
}

.sparc-policy-flip-card-front,
.sparc-policy-flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    /* Smaller radius */
    padding: 10px;
    /* Tighter padding */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    /* Lighter shadow */
    overflow: hidden;
}

.sparc-policy-flip-card-front {
    background-color: #ffffff;
    color: #1d274a;
}

.sparc-policy-flip-card-back {
    background-color: transparent;
    color: black;
    box-shadow: 0 6px 15px rgba(0, 173, 181, 0.8);
    border: 2px solid #00adb5;
    transform: rotateY(180deg);
}

.sparc-policy-flip-card-title {
    font-size: 1.3em;
    /* Smaller title */
    margin-bottom: 8px;
    color: #00adb5;
}

.sparc-policy-flip-card-back .sparc-policy-flip-card-title {
    color: black;
}

.sparc-policy-flip-card-title {
    font-size: clamp(1rem, 5vh, 32px);
}

.sparc-policy-flip-card-front p {
    margin-bottom: 10px;
    font-size: 0.9em;
    /* Smaller teaser text */
}

.sparc-policy-flip-card-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 8px;
    text-align: left;
    flex-grow: 1;
    overflow-y: auto;
    max-height: 150px;
    /* Tighter list height */
}

.sparc-policy-flip-card-list li {
    margin-bottom: 5px;
    /* Tighter spacing */
    position: relative;
    padding-left: 18px;
    font-size: 0.85em; /* Match the font size of <p> elements */
}

.sparc-policy-flip-card-list li::before {
    content: '★';
    color: #00adb5;
    position: absolute;
    left: 0;
    font-size: 1em;
}

.sparc-policy-flip-card-back .sparc-policy-flip-card-list li::before {
    color: white;
}

.sparc-policy-back-image {
    width: 100%;
    height: 100px;
    /* Smaller for mobile */
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.sparc-policy-front-image {
    width: 100%;
    /* Smaller for mobile */
    height: 300px;
    object-fit: cover;
    border-radius: 6px;
    margin: 8px auto;
    display: block;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .sparc-policy-front-image {
        max-width: 400px;
        height: 250px;
        /* Smaller square image */
    }
    
}

.sparc-policy-back-content {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 5px;
}

.sparc-policy-back-content p {
    margin-bottom: 8px;
    font-size: 0.85em;
    /* Smaller font */
}

.sparc-policy-action-link {
    display: inline-block;
    padding: 6px 12px;
    /* Smaller button */
    background-color: transparent;
    color: #00adb5;
    text-decoration: none;
    border: 2px solid #00adb5;
    border-radius: 6px;
    margin-top: auto;
    transition: all 0.3s ease;
    align-self: center;
    flex-shrink: 0;
    font-size: 0.9em;
}

.sparc-policy-flip-card-back .sparc-policy-action-link {
    background-color: white;
    color: #00adb5;
    border-color: white;
}

.sparc-policy-action-link:hover {
    background-color: #00adb5;
    color: white;
}

.sparc-policy-action-link {
    width: 200px;
    height: auto;
    font-size: 1.1rem;
}

.sparc-policy-flip-card-back .sparc-policy-action-link:hover {
    background-color: #1d274a;
    color: white;
    border-color: #1d274a;
}

@keyframes sparc-policy-hero-pulse {
    from {
        box-shadow: 0 0 15px rgba(0, 173, 181, 0.3);
    }

    to {
        box-shadow: 0 0 30px rgba(29, 39, 74, 0.5);
    }
}

@keyframes sparc-policy-hero-shine {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

@media (max-width: 768px) {
    .sparc-policy-main-wrapper {
        padding: 10px;
    }

    .sparc-policy-hero-banner {
        padding: 30px 15px;
    }

    .sparc-policy-hero-banner h1 {
        font-size: 1.8em;
    }

    .sparc-policy-flip-card-title {
    font-size: clamp(1rem, 5vh, 32px);
}

    .sparc-policy-hero-banner p {
        font-size: 0.9em;
    }

    .sparc-policy-flip-card-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .sparc-policy-flip-card-item {
        height: 450px;
        /* Reduced height for mobile */
        max-height: 90vh;
        /* Slightly more viewport space */
    }

    .sparc-policy-back-image {
        height: 80px;
        /* Smaller image */
    }

    .sparc-policy-front-image {
        max-width: 550px;
        height: 300px;
        /* Smaller square image */
    }

    .sparc-policy-flip-card-title {
        font-size: 1.2em;
    }

    .sparc-policy-flip-card-front p {
        font-size: 0.85em;
    }

    .sparc-policy-flip-card-list {
        max-height: 120px;
        /* Tighter list height */
    }

    .sparc-policy-flip-card-list li {
        font-size: 0.8em;
    }

    .sparc-policy-back-content p {
        font-size: 0.8em;
    }

    .sparc-policy-action-link {
        padding: 5px 10px;
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {
    .sparc-policy-flip-card-item {
        height: 400px;
        /* Even smaller for very small screens */
    }

    .sparc-policy-front-image {
        height: 150px;
    }

    .sparc-policy-back-image {
        height: 70px;
    }

    .sparc-policy-flip-card-list {
        max-height: 100px;
    }
}



.result-section {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: stretch;
    gap: 20px;
    padding: 50px 100px;
}

.headed-result {
    text-align: center;
    max-width: 40%;
    margin-bottom: 40px;
}

.headed-result h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #00adb5;
    margin-bottom: 10px;
    width: 100%;
    font-weight: 900;
    text-align: center;
}

.sparc-result-panel-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.sparc-result-panel {
    color: #1d274a;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    transition: width 0.4s ease, box-shadow 0.3s ease;
    width: 300px;
    /* Compact preview width */
    cursor: pointer;
    animation: sparc-result-panel-slide 1s ease-in-out forwards;
    height: auto;
    /* Dynamic height */
}

.sparc-result-panel:nth-child(1) {
    animation-delay: 0.2s;
}

.sparc-result-panel:nth-child(2) {
    animation-delay: 0.4s;
}

.sparc-result-panel:nth-child(3) {
    animation-delay: 0.6s;
}

.sparc-result-panel.active {
    width: 100%;
    /* Full width when expanded */
    box-shadow: 0 6px 15px rgba(0, 173, 181, 0.8);
}

.sparc-result-panel-header {
    background-color: #00adb5;
    color: white;
    padding: 10px;
    text-align: center;
}

.sparc-result-panel-header h2 {
    font-size: 1.3em;
}

.sparc-result-panel-content {
    display: none;
    padding: 10px;
}

.sparc-result-panel.active .sparc-result-panel-content {
    display: block;
    animation: sparc-result-content-slide 0.5s ease-in-out;
}

.sparc-result-content-list {
    list-style: none;
    padding-left: 0;
    text-align: left;
    
    /* Removed max-height and overflow-y to avoid scrollbars */
}

.sparc-result-content-list li {
    margin-bottom: 5px;
    position: relative;
    padding-left: 18px;
    font-size: 1.1rem;
    font-weight: 500;
}

.sparc-result-content-list li::before {
    content: '➤';
    color: #00adb5;
    position: absolute;
    left: 0;
    font-size: 1em;
}

.sparc-result-content-text {
    margin-bottom: 8px;
}

.sparc-result-action-button {
    display: inline-block;
    padding: 6px 12px;
    background-color: #00adb5;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    margin-top: 8px;
    transition: background-color 0.3s ease;
    font-size: 0.85em;
    text-align: center;
}

.sparc-result-action-button:hover {
    background-color: #1d274a;
}

@keyframes sparc-result-hero-slide {
    0% {
        transform: translateX(-20px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes sparc-result-panel-slide {
    0% {
        transform: translateX(-20px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes sparc-result-content-slide {
    0% {
        transform: translateX(-10px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}



/* Responsive adjustments */
@media (max-width: 768px) {
    .background-heading {
        font-size: 3rem;
    }

    .home-hero {
        flex-direction: column;
        padding: 30px 20px;
        text-align: center;
    }

    .hero-image {
        right: 0;
        top: 10px;
        margin-top: 20px;
    }

    .hero-image img {
        width: clamp(250px, 90vw, 400px);
    }

    .glance-section {
        padding: 30px 10px;
    }

    .glance-cards {
        gap: 10px;
    }

    .card {
        min-width: 280px;
        margin: 5px;
    }

    .mission-card {
        width: 90%;
        padding: 15px;
    }

    .about-section {
        padding: 10px 0;
        width: 100%;
    }

    .about-content {
        flex-direction: column;
        gap: 20px;
        padding: 0px 20px;
    }

    .objective-section {
        padding: 20px 10px;
        width: 100%;
    }

    .objective-cards {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .obj-card {
        width: 90%;
        transform: none;
    }

    .obj-card:hover {
        transform: scale(1.02);
    }

    

    .training {
        padding: 40px 20px;
    }

    .section h2 {
        font-size: 1.4em;
    }

    .content.active {
        flex-direction: column;
    }

    .graphic svg {
        width: 150px;
        height: 150px;
    }

    .policy-impact {
        padding: 30px 20px;
    }

    .result-section {
        flex-direction: column;
        padding: 20px;
    }

    .headed-result {
        width: 100%;
        margin-bottom: 20px;
    }

    .headed-result h1 {
        font-size: 3rem;
    }

    .headed-result p {
        font-size: 1rem;
        width: 280px;
    }
}

@media (max-width: 480px) {
    .hero-image img {
        width: clamp(200px, 85vw, 300px);
    }

    .card {
        min-width: 240px;
    }

    .mission-card {
        width: 95%;
        padding: 10px;
    }

    .about-button {
        padding: 8px 15px;
        font-size: 0.9em;
    }

    .obj-card {
        width: 95%;
        padding: 15px;
    }

    .obj-card h2 {
        font-size: 1.8em;
    }

    .tree {
        --spacing: 1.2rem;
    }

    .tree .node {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .training {
        padding: 30px 15px;
    }

    .section h2 {
        font-size: 1.2em;
    }

    .graphic svg {
        width: 120px;
        height: 120px;
    }
}



@media (max-width: 768px) {
    .sparc-result-main-container {
        padding: 10px;
    }

    .sparc-result-hero-section {
        padding: 30px 15px;
    }

    .sparc-result-hero-section h1 {
        font-size: 1.8em;
    }

    .sparc-result-hero-section p {
        font-size: 0.9em;
    }

    .sparc-result-panel {
        width: 100%;
        /* Full width even in preview for mobile */
    }

    .sparc-result-panel.active {
        width: 100%;
    }

    .sparc-result-panel-header h2 {
        font-size: 1.2em;
    }

    .sparc-result-content-list li,
    .sparc-result-content-text {
        font-size: 1em;
    }

    .sparc-result-action-button {
        padding: 5px 10px;
        font-size: 0.8em;
    }

    .about-text {
        font-size: 0.9em;
        line-height: 1.4;
        margin-bottom: 10px;
        text-align: justify;
    }
}

@media (max-width: 480px) {
    .sparc-result-hero-section {
        padding: 20px 10px;
    }

    .sparc-result-hero-section h1 {
        font-size: 1.6em;
    }

    .sparc-result-panel-header h2 {
        font-size: 1.1em;
    }

    .sparc-result-content-list li,
    .sparc-result-content-text {
        font-size: 1em;
        /* Slightly smaller for very small screens */
    }
}