html,
body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
}

.content-grow {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
    background: white;
    color: #222;
    padding: 16px;
    text-align: center;
    border-top: 1px solid #eee;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: transparent;
    border: 2px solid white;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

.dot.active {
    background-color: white;
}

.truncate {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.truncate.full {
    -webkit-line-clamp: unset;
    line-clamp: unset;
    display: block;
}

.hero {
    align-items: center;
    padding: 40px 80px;
    text-align: center;
}

.read-more {
    background: #007bff;
    color: #000;
    border: none;
    padding: 12px 30px;
    font-weight: bold;
    cursor: pointer;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 999;
}

.login-modal {
    background: #fff;
    width: 380px;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    margin: 15% auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease;
}

.login-modal h3 {
    margin-bottom: 10px;
}

.login-modal p {
    color: #555;
    font-size: 14px;
}

.modal-actions {
    margin-top: 25px;
}

.btn-primary {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: #fff;
    border: none;
    padding: 10px 28px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.8px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 14px rgba(13, 110, 253, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0a58ca, #084298);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.45);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #0d6efd;
    border: 1px solid #0d6efd;
    padding: 10px 28px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.8px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #0d6efd;
    color: #fff;
    box-shadow: 0 6px 14px rgba(13, 110, 253, 0.35);
}

#viewInscriptionBtn {
    text-decoration: underline;
    color: #007bff;
    cursor: pointer;
    display: inline-block;
    font-size: 1.50rem;
    font-weight: 600;
}

#viewInscriptionBtn:hover {
    color: #0056b3;
}


@keyframes slideDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.explore-btn {
    /* background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: #fff;
    border: none; */
    background: transparent;
    color: #0d6efd;
    border: 1px solid #0d6efd;
    padding: 10px 40px;
    font-size: 14px;
    letter-spacing: 1.5px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s ease;
}

.explore-btn:hover {
    /* background: transparent;
    color: #0d6efd;
    border: 1px solid #0d6efd; */
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: #fff;
    border: none;
}

.button-group {
    display: inline-flex;
    gap: 12px;
}

@media (max-width: 992px) {
    .login-modal {
        width: 90%;
        max-width: 360px;
        padding: 30px;
        border-radius: 10px;
        margin: 65% auto;
    }
}

* {
    box-sizing: border-box;
    font-family: Lato, 'Helvetica Neue', Arial, Helvetica, sans-serif;
}

body {
    background: #f6f1ea;
    padding: 40px;
}

.temple-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 12px;
    padding: 0px 80px;
}

/* .temple-card {
    position: relative;
    height: 300px;
    border: 2px solid #d9a441;
    background: #ffffff;
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px;
} */
/* .temple-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--bg);
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}
.temple-card:hover::before {
    opacity: 1;
}
.temple-text {
    position: relative;
    z-index: 2;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: opacity 0.4s ease;
}
.temple-card:hover .temple-text {
    opacity: 0;
}
.temple-text h3 {
    color: #6aa7a7;
    font-size: 22px;
    margin-bottom: 15px;
}
.temple-text p {
    color: #555;
    line-height: 1.6;
    font-size: 15px;
} */
/* .temple-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--bg);
    background-size: cover;
    background-position: center;
    opacity: 1;
    transition: transform 0.5s ease;
    z-index: 1;
}
.temple-card:hover::before {
    transform: scale(1.05);
}
.temple-text {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.4s ease;
    text-align: center;
}
.temple-card:hover .temple-text {
    opacity: 1;
}
.temple-text h3 {
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 10px;
}
.temple-text p {
    color: #f1f1f1;
    line-height: 1.6;
    font-size: 13px;
} */

.temple-card {
    position: relative;
    height: 300px;
    border: 2px solid #d9a441;
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px;
    background: #fff;
}

/* IMAGE */
.temple-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--bg);
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
    z-index: 1;
}

/* .temple-card:hover::before {
    transform: scale(1.08);
} */

/* TEXT PANEL */
.temple-text {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 25px;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;

    clip-path: polygon(0 100%, 0 100%, 0 100%, 0 100%);
    transition: clip-path 0.6s ease;
}

/* .temple-card:hover .temple-text {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 10
    0%);
} */


/* TEXT STYLES */
.temple-text h3 {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 10px;
}

.temple-text p {
    color: #f1f1f1;
    line-height: 1.6;
    font-size: 12px;
}

.temple-card.active .temple-text {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.temple-card.active .tap-hint {
    opacity: 0;
    pointer-events: none;
}
.tap-hint {
    position: absolute;
    bottom: 15px;
    right: 5px;
    background: #d9a441; 
    color: #000;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    z-index: 10;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, opacity 0.3s ease;
}
.tap-hint:active {
    transform: scale(0.95);
}
.close-btn {
    /* margin-top: 12px; */
    background: transparent;
    border: 1px solid #d9a441;
    color: #d9a441;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
}
.welcome-overlay {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2.7rem;
    font-weight: bold;
    text-shadow: 0 0 10px black;
}

@media (max-width: 769px) {
    .login-modal {
        width: 90%;
        max-width: 360px;
        padding: 30px;
        border-radius: 10px;
        margin: 65% auto;
    }

    .welcome-overlay {
        font-size: 1.25rem !important;
        width: 80% !important;
        top: 35% !important;
        margin-left: 3rem;
    }

    .hero {
        padding: 40px 20px !important;
    }

    .hero h2,
    section h2 {
        font-size: 1.75rem !important;
    }

    #protectedPara {
        font-size: 1.1rem !important;
        padding: 0 10px;
    }

    section[style*="padding: 40px 80px"] {
        padding: 30px 15px !important;
    }

    section div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .explore-btn {
        width: 60%;
        max-width: 180px;
        display: inline-block;
        color: #0d6efd !important;
        border: 1px solid #0d6efd !important;
    }

    .explore-btn:hover {
        background: linear-gradient(135deg, #0d6efd, #0a58ca) !important;
        color: #fff;
        border: none;
    }

    .explore-btn:active {
        background: linear-gradient(135deg, #0d6efd, #0a58ca);
        color: #fff;
        border: none;
    }

    #inscriptionPara {
        font-size: 1.1rem !important;
        padding: 0 10px;
    }

    .temple-card {
        position: relative;
        height: 300px;
        width: 94%;
        border: 2px solid #d9a441;
        overflow: hidden;
        cursor: pointer;
        border-radius: 8px;
        background: #fff;
        margin-bottom: 5px;
        margin-left: 10px;
    }

    .temple-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: var(--bg);
        background-size: cover;
        background-position: center;
        transition: transform 0.6s ease;
        z-index: 1;
    }

    /* .temple-card:hover::before {
        transform: scale(1.08);
    } */

    /* TEXT PANEL */
    .temple-text {
        position: absolute;
        inset: 0;
        z-index: 2;
        padding: 25px;
        background: rgba(0, 0, 0, 0.75);
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;

        clip-path: polygon(0 100%, 0 100%, 0 100%, 0 100%);
        transition: clip-path 0.6s ease;
    }

    /* .temple-card:hover .temple-text {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    } */


    /* TEXT STYLES */
    .temple-text h3 {
        color: #ffffff;
        font-size: 14px;
        margin-bottom: 10px;
    }

    .temple-text p {
        color: #f1f1f1;
        line-height: 1.6;
        font-size: 10px;
    }

    .temple-container {
        display: contents;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 12px;
        padding: 0px 80px;
    }
}