* {
    margin: 0;
    padding: 0;
    font-family: 'Josefin Sans', sans-serif;
}
.header{
    min-height: 100vh;
    width: 100%;
    background-position: center;
    background-size: cover;
    position: relative;
}
.back-video {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: -1;
}
@media(min-aspect-ratio:16/9) {
    .back-video{
        width: 100%;
        height: auto;
    }
}
@media(max-aspect-ratio:16/9) {
    .back-video{
        width: auto;
        height: 100%;
    }
}
nav {
    display: flex;
    padding: 2% 6%;
    justify-content: space-between;
    align-items: center;
}
nav img {
    width: 70px;

}
.nav-links {
    flex: 1;
    text-align: right;
}
.nav-links ul li {
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}
.nav-links ul li a {
    color: white;
    text-decoration: none;
    font-size: 13px;
}
.nav-links ul li::after {
    content: '';
    width: 0;
    height: 2px;
    background: #f44336;
    display: block;
    margin: auto;
    transition: 0.5s;
}
.nav-links ul li:hover::after {
    width: 100%;

}
.text-box {
    width: 90%;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
}
.text-box h1 {
    font-size: 55px;
    transition: 0.5s;

}
.text-box p {
    margin: 10px 0 40px;
    font-size: 20px;
    color: #fff;
}
.hero-btn {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    border: 1px solid #fff;
    padding: 12px 34px;
    font-size: 13px;
    background: transparent;
    position: relative;
    cursor: pointer;
}
.hero-btn:hover {
    border: 1px solid #f44336;
    background: #f44336;
    transition: 1s;
}
nav .fa{
    display: none;
}

.home-donate-section {
    display: flex;
    align-items: center;
    padding: 34px 3%;
    background: linear-gradient(105deg, #ffffff 0%, #ffffff 58%, #eef7f2 100%);
}

.home-donate-container {
    /* width: 100%;
    max-width: 1380px; */
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.85fr);
    align-items: center;
    gap: 60px;
}

.home-donate-content h1 {
    max-width: 760px;
    margin-bottom: 28px;
    color: #2e8b57;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.16;
}

.home-donate-content p {
    max-width: 680px;
    margin-bottom: 46px;
    color: #718096;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.45;
}

.home-donate-image {
    width: min(100%, 620px);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 36px rgba(24, 48, 36, 0.18);
}

.home-donate-image img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.home-donation-card {
    width: 100%;
    max-width: 500px;
    justify-self: center;
    padding: 54px 42px;
    background: #ffffff;
    border-top: 7px solid #2e8b57;
    border-radius: 16px;
    box-shadow: 0 22px 44px rgba(24, 48, 36, 0.14);
}

.home-donation-card h2 {
    margin-bottom: 10px;
    color: #2d3748;
    text-align: center;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.25;
}

.home-donation-card .subtitle {
    margin-bottom: 12px;
    color: #718096;
    text-align: center;
    font-size: 18px;
    font-weight: 400;
}

.home-donation-card .donation-type {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    padding: 7px;
    background: #f8fafc;
    border-radius: 10px;
}

.home-donation-card .type-btn {
    flex: 1;
    min-height: 38px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #718096;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.home-donation-card .type-btn.active {
    background: #2e8b57;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(46, 139, 87, 0.28);
}

.home-donation-card .donation-amounts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.home-donation-card .amt-btn {
    min-height: 45px;
    border: 2px solid #e6f1ea;
    border-radius: 10px;
    background: #ffffff;
    color: #2d3748;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.home-donation-card .amt-btn:hover {
    border-color: #2e8b57;
    color: #2e8b57;
}

.home-donation-card .amt-btn.active {
    border-color: #2e8b57;
    background: #2e8b57;
    color: #ffffff;
}

.home-donation-card .custom-amount-wrapper {
    position: relative;
    margin-bottom: 30px;
}

.home-donation-card .currency-symbol {
    position: absolute;
    top: 50%;
    left: 28px;
    transform: translateY(-50%);
    color: #2d3748;
    font-size: 18px;
    font-weight: 700;
}

.home-donation-card .custom-amount {
    width: 100%;
    min-height: 44px;
    padding: 18px 24px 18px 40px;
    border: 2px solid #e6f1ea;
    border-radius: 10px;
    color: #2d3748;
    font-size: 18px;
    font-weight: 700;
    outline: none;
}

.home-donation-card .donor-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 36px;
}

.home-donation-card .input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.home-donation-card .donor-details input {
    width: 100%;
    min-height: 44px;
    padding: 16px 26px;
    border: 2px solid #e6f1ea;
    border-radius: 10px;
    color: #2d3748;
    font-size: 18px;
    outline: none;
}

.home-donation-card .custom-amount:focus,
.home-donation-card .donor-details input:focus {
    border-color: #2e8b57;
}

.home-donation-card .error-message {
    display: none;
    padding-left: 4px;
    color: #e53e3e;
    font-size: 13px;
}

.home-donation-card .error-message.show {
    display: block;
}

.home-donation-card input.error-border {
    border-color: #e53e3e !important;
}

.home-donation-card .submit-donate-btn {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    border-radius: 10px;
    background: #2e8b57;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(46, 139, 87, 0.28);
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.home-donation-card .submit-donate-btn:hover {
    background: #236c44;
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(46, 139, 87, 0.34);
}

.home-donation-card .payment-branding {
    margin-top: 30px;
    color: #718096;
    text-align: center;
    font-size: 16px;
}

.home-donation-card .payment-branding strong {
    color: #3388ff;
    letter-spacing: 0.5px;
}

.donate-btn {
    display: inline-block;
    background: #f44336;
    color: white;
    text-decoration: none;
    padding: 10px 30px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    margin-left: 20px;
    animation: donatePulse 1.8s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.55);
}
.donate-btn:hover {
    background: #da190b;
    transform: scale(1.05);
    animation-play-state: paused;
}

@keyframes donatePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.55);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(244, 67, 54, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0);
    }
}

@media(max-width:700px) {
    .home-donate-section {
        padding: 40px 18px;
    }

    .home-donate-container {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .home-donate-content h1 {
        font-size: 36px;
    }

    .home-donate-content p {
        font-size: 18px;
        margin-bottom: 30px;
    }

    .home-donation-card {
        padding: 34px 20px;
    }

    .home-donation-card h2 {
        font-size: 26px;
    }

    .home-donation-card .donation-amounts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-donation-card .type-btn,
    .home-donation-card .amt-btn,
    .home-donation-card .submit-donate-btn {
        font-size: 18px;
    }

    .text-box h1{
        font-size: 20px;
    }
    .nav-links lu li { 
        display: block;
    }
    .nav-links {
        position: fixed;
        background: #f44336;
        height: 100vh;
        width: 200px;
        top: 0;
        right: -200px;
        text-align: left;
        z-index: 2;
        transition: 1s;
    }
    nav .fa {
        display: block;
        color: #fff;
        margin: 10px;
        font-size: 22px;
        cursor: pointer;
    }
    .nav-links ul {
        padding: 30px;
    }
    .donate-btn {
        position: static;
        z-index: 3;
        margin-left: auto;
        margin-right: 8px;
        padding: 8px 14px;
        font-size: 11px;
        white-space: nowrap;
    }
    
}
   /*-------Exoplanets part-----------*/


.exoplanets {
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
}
.exoplanets > p{
    font-size: 16px;
}
h1 {
    font-size: 36px;
    font-weight: 600;
}
p {
    color: #777;
    font-size: 14px;
    font-weight: 300;
    line-height: 22px;
    padding: 10px;
}
.row {
    margin-top: 5%;
    display: flex;
    justify-content: space-between;
}
.col {
    flex-basis: 31%;
    background: #efdcd8;
    border-radius: 10px;
    margin-bottom: 5%;
    padding: 20px 12px;
    box-sizing: border-box;
    transition: 0.5s;
}
h3 {
    text-align: center;
    font-weight: 600;
    margin: 10px 0;
}
.col:hover{
    box-shadow: 0 0 20px 0px rgba(0,0,0,0.2);
}
@media(max-width:700px) {
     .row{
        flex-direction: column;

     }
}

/*---------Galaxies part-----------*/

.milkyway {
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 50px;
}
.milkyway > p{
    font-size: 16px;
}
.milky-col {
    flex-basis: 32%;
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}
.milky-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.layer {
    background: transparent;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: 0.5s;
}
.layer:hover {
    background: rgba(226,0,0,0.7);
}
.layer h3 {
    width: 100%;
    font-weight: 500;
    color: #fff;
    font-size: 26px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    opacity: 0;
    transition: 0.5s;
}
.layer:hover h3 {
    bottom: 49%;
    opacity: 1;
}

/*-------blackholes part----------*/

.blackholes {
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
}
.blackholes > p{
    font-size: 16px;
}
.black-col {
    flex-basis: 31%;
    border-radius: 10px;
    margin-bottom: 5%;
    text-align: left;
}
.black-col img{
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 5%;
    transition: 0.3s;
}
.black-col:hover img{
    box-shadow: 0 0 20px 0px black;
}

.black-col p {
    padding: 0;

}
.black-col h3 {
    margin-top: 16px;
    margin-bottom: 15px;
    text-align: left;
}
 /*----------Stars part----------*/


 .stars {
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
 }
 .stars-col {
    flex-basis: 44%;
    border-radius: 10px;
    margin-bottom: 5%;
    text-align: left;
    background: lightgray;
    padding: 25px;
    cursor: pointer;
    display: flex;
    transition: 0.4s;
   
 }
.stars-col img {
    height: 40px;
    margin-left: 5px;
    margin-right: 30px;
    border-radius: 50%;
}

.stars-col:hover {
    box-shadow: 0 0 20px 0px silver;
}
.stars-col p {
    padding: 0;
}
.stars-col h3 { 
    margin-top: 15px;
    text-align: left;
}
.stars-col .fa {
    color: #f44336;
}
@media(max-width: 700px) {
    .stars-col img {
        margin-left: 0px;
        margin-right: 15px;
    }
}

/*---------Call to acton---------*/

.cta {
    margin: 100px auto;
    width: 80%;
    background-image: linear-gradient(rgba(255,182,193,0.5), rgba(255,182,193,0.5)), url(images/childrens.jpg);
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    border-radius: 10px;
    text-align: center;
    padding: 100px 0;

}
.cta h1 {
    color: #36454F; 
    margin-bottom: 40px;
    padding: 0;
}
.cta > h1{
    font-size: 30px;
}
@media(max-width: 700px) {
    .cta h1{
        font-size: 24px;
    }
}

.footer {
    width: 100%;
    text-align: center;
    padding: 30px 0;
}
.footer h3 {
    margin-bottom: 25px;
    margin-top: 20px;
    font-weight: 600;
}
.footer .legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin: 20px auto 8px; padding: 0 18px; }
.footer .legal-links a { color: #5f3b2d; font-size: 14px; text-decoration: none; }
.footer .legal-links a:hover { color: #f44336; text-decoration: underline; }
.icon .fa {
    margin: 0 13px;
    cursor: pointer;
    padding: 18px 0;
}
.fa-heart-o{
    color: #f44336;
}
.sub-header {
    height: 50vh;
    width: 100%;
    background-image: linear-gradient(rgba(255,255,255,0.4),rgba(0,0,0,0.7)),url(images/childrens.jpg);
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    text-align: center;
    color: #fff;
}
.legal-hero { min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 20px 70px; background: linear-gradient(120deg, rgba(73, 40, 35, 0.86), rgba(191, 81, 69, 0.72)), url(images/childrens.jpg) center/cover; color: #fff; text-align: center; }
.legal-hero #navbar-container, .legal-hero nav { width: 100%; }
.legal-hero__inner { max-width: 760px; }
.legal-hero__eyebrow { display: block; margin-bottom: 12px; color: #fff4ef; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.legal-hero h1 { margin: 0; color: #fff; font-size: clamp(34px, 5vw, 56px); }
.legal-hero p { max-width: 620px; margin: 16px auto 0; color: #fff; font-size: 17px; line-height: 1.7; }
.legal-page { width: min(940px, calc(100% - 36px)); margin: -42px auto 70px; position: relative; padding: clamp(28px, 5vw, 58px); border-radius: 16px; background: #fff; box-shadow: 0 15px 45px rgba(65,42,37,.14); }
.legal-page .last-updated { margin: 0 0 30px; color: #7a6a66; font-size: 14px; }
.legal-page h2 { margin: 36px 0 12px; color: #4c3029; font-size: clamp(22px, 3vw, 28px); }
.legal-page h2:first-of-type { margin-top: 0; }
.legal-page p, .legal-page li { color: #4f4b49; font-size: 16px; line-height: 1.8; }
.legal-page a { color: #c33d31; font-weight: 600; }
.legal-page .legal-notice { margin-top: 32px; padding: 20px 22px; border-left: 4px solid #f44336; border-radius: 5px; background: #fff4f1; }
@media (max-width: 700px) { .legal-hero { min-height: 260px; padding-top: 90px; } .legal-hero p { font-size: 15px; } .legal-page { width: min(100% - 24px, 940px); margin-top: -25px; padding: 28px 22px; } .legal-page p, .legal-page li { font-size: 15px; } }
.about-us {
    width: 80%;
    margin: auto;
    padding-top: 80px;
    padding-bottom: 50px;
}
.about-col {
    flex-basis: 48%;
    padding: 30px 2px;

}
.about-col img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 5%;
    transition: 0.4s;
}
.about-col:hover img {
    box-shadow: 0 0 20px 0px brown;
}
.about-col h1{ 
    padding-top: 0;
}
.about-col p {
    padding: 15px 0 25px;
}
.red-btn{
    border: 1px solid #f44336;
    background: transparent;
    color: #f44336;
}
.red-btn:hover {
    color: #fff;
}
.blog-cont {
    width: 80%;
    margin: auto;
    padding: 60px 0;
}
.blog-left {
     flex-basis: 65%;
}
.blog-left img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
    border-radius: 20px;
    transition: 0.4s;
}
.blog-left:hover img {
    box-shadow: 0 0 20px 0px black;
}
.blog-left h2 {
     color: #222;
     font-weight: 600;
     margin: 30px 0;
     text-align: center;
}

.blog-left p {
     color: #999;
     padding: 0;
     text-align: center;
}
.comment {
    border: 1px solid#ccc;
    margin: 50px 0;
    padding: 10px 20px;
}
.comment h3 {
    text-align: left;

}
.comment-form input, .comment-form textarea{
    width: 100%;
    padding: 10px;
    margin: 15px 0;
    box-sizing: border-box;
    border: none;
    outline: none;
    background: #f0f0f0;
}
.comment-form button {
    margin: 10px 0;

}
@media(max-width:700px)
{
    .sub-header {
        font-size: 24px;
    }
}
.location {
    width: 80%;
    margin: auto;
    padding: 80px 0;
}

.home-qr-card {
    max-width: 920px;
    margin: 0 auto;
    padding: 32px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    align-items: center;
    gap: 36px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 6px solid #2E8B57;
    border-radius: 16px;
    box-shadow: 0 18px 35px rgba(45, 55, 72, 0.12);
}

.home-qr-copy span {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eaf4ed;
    color: #236c44;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.home-qr-copy h2 {
    margin-bottom: 12px;
    color: #2d3748;
    font-size: 34px;
    line-height: 1.2;
}

.home-qr-copy p {
    max-width: 480px;
    margin-bottom: 22px;
    color: #718096;
    font-size: 18px;
    line-height: 1.6;
}

.home-qr-frame {
    width: min(100%, 320px);
    aspect-ratio: 1 / 1;
    justify-self: center;
    padding: 16px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 14px 30px rgba(45, 55, 72, 0.12);
}

.home-qr-frame img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

@media (max-width: 768px) {
    .location {
        width: 90%;
        padding: 60px 0;
    }

    .home-qr-card {
        grid-template-columns: 1fr;
        padding: 26px;
        text-align: center;
    }

    .home-qr-copy span {
        margin-left: auto;
        margin-right: auto;
    }

    .home-qr-copy p {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .home-qr-card {
        padding: 22px;
    }

    .home-qr-copy h2 {
        font-size: 28px;
    }
}


.location iframe{
    border-radius: 8px;
}
.contact {
    width: 80%;
    margin: auto;
}
.contact-col {
    flex-basis: 48%;
    margin-bottom: 30px;
}
.contact-col div {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.contact-col div .fa {
    font-size: 28px;
    color: #f44336;
    margin: 10px;
    margin-right: 30px;
}

.contact-col div p{
    padding: 0;
}
.contact-col div h5 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #555;
    font-weight: 400;
}

.email {
    font-size: 18px;
    margin-bottom: 5px;
    color: #555;
    font-weight: 400;
    word-break: break-word;
}

.contact-col input,.contact-col textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 17px;
    outline: none;
    border: 1px solid #ccc;
    box-sizing: border-box;
}


.dropdown-content {
    display: block;
    position: absolute;
    background-color: crimson;
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.dropdown > a {
    display: inline-block;
    transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease;
}

.dropdown:hover > a {
    color: #ffd6d2;
    text-shadow: 0 0 12px rgba(244, 67, 54, 0.8);
    transform: translateY(-2px);
}

.dropdown-content li {
    display: block;
}

.dropdown-content li a {
    padding: 10px;
    color: black;
}

.dropdown-content li a:hover {
    background-color: #ddd;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.donate-us {
    width: 50%;
    margin: auto;
    padding-top: 80px;
    padding-bottom: 50px;
}

.donate-us > p {
    font-size: 18px;
}

.Donate-contact{
    /* width: 30%; */
    margin: auto;
}


.Donate-contact-col {
    flex-basis: 48%;
    margin-bottom: 30px;
}
.Donate-contact-col div {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

.Donate-contact-col div .fa {
    font-size: 28px;
    color: #f44336;
    margin: 10px;
    margin-right: 30px;
}

.Donate-contact-col div p{
    padding: 0;
    text-align: center;
    font-size: 25px;
}
.Donate-contact-col div h5 {
    font-size: 30px;
    margin-bottom: 5px;
    color: #555;
    font-weight: 400;
    text-align: center;
    /* font-size: 20px; */
}
.Donate-contact-col input, .Donate-contact-col textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 17px;
    outline: none;
    border: 1px solid #ccc;
    box-sizing: border-box;
}
.Donate-row {
    margin-top: 5%;
    /* display: flex; */
    justify-content: space-between;
}
.vedant{
    text-decoration-line: none;
    color: #777777;
    cursor: pointer;
}


@import url("https://fonts.googleapis.com/css?family=Cardo:400i|Rubik:400,700&display=swap");
:root {
  --d: 700ms;
  --e: cubic-bezier(0.19, 1, 0.22, 1);
  --font-sans: "Rubik", sans-serif;
  --font-serif: "Cardo", serif;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  display: grid;
  place-items: center;
}

.page-content {
  display: grid;
  grid-gap: 1rem;
  padding: 1rem;
  max-width: 1024px;
  margin: 0 auto;
  font-family: var(--font-sans);
  justify-content: center;
}
@media (min-width: 600px) {
  .page-content {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 800px) {
  .page-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 1rem;
  width: 100%;
  text-align: center;
  color: whitesmoke;
  background-color: whitesmoke;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), 0 2px 2px rgba(0, 0, 0, 0.1), 0 4px 4px rgba(0, 0, 0, 0.1), 0 8px 8px rgba(0, 0, 0, 0.1), 0 16px 16px rgba(0, 0, 0, 0.1);
  min-height: 450px;
  min-width: 300px;
  border-radius: 4px;
}
@media (min-width: 600px) {
  .card {
    height: 350px;
  }
}
.card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 110%;
  background-size: cover;
  background-position: 0 0;
  transition: transform calc(var(--d) * 1.5) var(--e);
  pointer-events: none;
}
.card:after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200%;
  pointer-events: none;
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.009) 11.7%, rgba(0, 0, 0, 0.034) 22.1%, rgba(0, 0, 0, 0.072) 31.2%, rgba(0, 0, 0, 0.123) 39.4%, rgba(0, 0, 0, 0.182) 46.6%, rgba(0, 0, 0, 0.249) 53.1%, rgba(0, 0, 0, 0.32) 58.9%, rgba(0, 0, 0, 0.394) 64.3%, rgba(0, 0, 0, 0.468) 69.3%, rgba(0, 0, 0, 0.54) 74.1%, rgba(0, 0, 0, 0.607) 78.8%, rgba(0, 0, 0, 0.668) 83.6%, rgba(0, 0, 0, 0.721) 88.7%, rgba(0, 0, 0, 0.762) 94.1%, rgba(0, 0, 0, 0.79) 100%);
  transform: translateY(-50%);
  transition: transform calc(var(--d) * 2) var(--e);
}
.card:nth-child(1):before {
  background-image: url('images/Animal.png');
}
.card:nth-child(2):before {
  background-image: url("images/beauty.jpg");
}
.card:nth-child(3):before {
  background-image: url("images/Blood.jpg");
}
.card:nth-child(4):before {
  background-image: url("images/photo5.jpeg");
}

.content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 1rem;
  transition: transform var(--d) var(--e);
  z-index: 1;
}
.content > * + * {
  margin-top: 1rem;
}

.title {
  font-size: 1.3rem;
  font-weight: bold;
  line-height: 1.2;
}

.copy {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-style: italic;
  line-height: 1.35;
  color: #fff;
}

.btn {
  cursor: pointer;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.65rem;
  font-weight: bold;
  letter-spacing: 0.025rem;
  text-transform: uppercase;
  color: white;
  background-color: black;
  border: none;
}
.btn:hover {
  background-color: #0d0d0d;
}
.btn:focus {
  outline: 1px dashed yellow;
  outline-offset: 3px;
}

@media (hover: hover) and (min-width: 600px) {
  .card:after {
    transform: translateY(0);
  }

  .content {
    transform: translateY(calc(100% - 4.5rem));
  }
  .content > *:not(.title) {
    opacity: 0;
    transform: translateY(1rem);
    transition: transform var(--d) var(--e), opacity var(--d) var(--e);
  }

  .card:hover,
.card:focus-within {
    align-items: center;
  }
  .card:hover:before,
.card:focus-within:before {
    transform: translateY(-4%);
  }
  .card:hover:after,
.card:focus-within:after {
    transform: translateY(-50%);
  }
  .card:hover .content,
.card:focus-within .content {
    transform: translateY(0);
  }
  .card:hover .content > *:not(.title),
.card:focus-within .content > *:not(.title) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(var(--d) / 8);
  }

  .card:focus-within:before, .card:focus-within:after,
.card:focus-within .content,
  .card:focus-within .content > *:not(.title) {
    transition-duration: 0s;
  }
}

/* Legal pages must override the campaign gallery's global grid body layout. */
body:has(.legal-page) {
  display: block;
  min-height: 100%;
  background: #faf8f7;
}

body:has(.legal-page) .legal-hero {
  width: 100%;
}
