body {
    font-family: 'Merriweather', serif;
    background-color: #0f172a;
    color: #ffffff;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    scroll-snap-type: y mandatory;
    -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, .display-font {
    font-family: 'Playfair Display', serif;
}

.full-screen-section {
    position: relative;
    min-height: 100vh;
    min-height: 100svh; 
    width: 100%;
    display: flex;
    overflow: hidden;
    scroll-snap-align: start;
    justify-content: flex-start; 
    align-items: flex-end; 
    padding-bottom: 8vh; 
    padding-left: 5vw; 
    padding-right: 5vw; 
}

.hero-section {
    justify-content: center;
    align-items: center;
    padding-bottom: 0;
    padding-left: 0;
}

.bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 10s ease;
    will-change: transform;
    backface-visibility: hidden;
}

@media (hover: hover) {
    .full-screen-section:hover .bg-image {
        transform: scale(1.05);
    }
}

.overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.3), rgba(15, 23, 42, 0.8));
    z-index: 1;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.content-card {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px; 
    width: 100%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    cursor: pointer;
    max-height: 70vh; 
    overflow-y: auto;
}

.inner-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.hover-vanish {
    position: relative;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    cursor: pointer;
}

.num-highlight {
    color: #facc15 !important;
    font-weight: bold;
}

.text-justify-custom { text-align: justify; }

@media (max-width: 768px) {
    .full-screen-section {
        padding: 0;
        align-items: flex-end;
        padding-bottom: 20px;
    }

    .content-card, .hover-vanish {
        margin: 0 3px !important;
        width: calc(100% - 6px) !important;
        max-width: 100% !important;
        max-height: 35vh !important;
        overflow-y: auto;
        padding: 0.8rem !important;
        background: rgba(15, 23, 42, 0.85) !important;
        backdrop-filter: none;
        border-left: none !important;
    }
    
    img[alt="Logo E-Magazine"] {
        width: 80px !important;
        top: 10px !important;
        left: 10px !important;
    }

    .bg-image { 
        transition: none !important;
        transform: translate3d(0, 0, 0);
    }

    h1.display-font { font-size: 1.4rem !important; line-height: 1.2; margin-bottom: 0.5rem !important; }
    h2.display-font { font-size: 1.2rem !important; margin-bottom: 0.5rem !important; }
    .text-3xl { font-size: 1.3rem !important; }
    .text-2xl { font-size: 1.1rem !important; }
    .text-xl { font-size: 1rem !important; }
    p, .text-base, .text-lg, li { font-size: 0.85rem !important; line-height: 1.35; }
    .text-sm { font-size: 0.75rem !important; }
    .text-xs { font-size: 0.7rem !important; }

    .grid-cols-2 { gap: 0.5rem !important; }
    .p-3, .p-4 { padding: 0.5rem !important; }
    .mb-4 { margin-bottom: 0.5rem !important; }
    
    .hero-section .hover-vanish {
        max-height: 50vh !important;
    }
}

@media (hover: hover) {
    body .content-card:hover,
    body .hover-vanish:hover {
        opacity: 0 !important;
        transition: opacity 2s ease-in-out 2s !important;
    }
    body section:has(.content-card:hover) .overlay-gradient,
    body section:has(.hover-vanish:hover) .overlay-gradient {
        opacity: 0 !important;
        transition: opacity 2s ease-in-out 2s !important;
    }
}

.clicked-hide {
    opacity: 0 !important;
    transition: opacity 0.5s ease-in-out !important; 
    pointer-events: auto !important;
}
body section:has(.clicked-hide) .overlay-gradient {
    opacity: 0 !important;
    transition: opacity 0.5s ease-in-out !important;
}

.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}
.reveal-up.active:not(:hover):not(.clicked-hide) {
    opacity: 1 !important;
}