/* ===================== GALLERY CONTAINER (GLASS + SHADOW) ===================== */
.container-gallery {
    position: relative;
    padding: 35px 20px;
    border-radius: 24px;
    /*margin-right: 40px;*/
    /*margin-left: 40px;*/

    background: rgba(255, 255, 255, 0.10);

    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);

    box-shadow:
        0 0 0 2px rgba(255, 120, 0, 0.45),
        0 0 18px rgba(255, 69, 0, 0.45),
        0 0 32px rgba(255, 215, 0, 0.35),
        0 20px 45px rgba(0, 0, 0, 0.40),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);

    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.container-gallery:hover {
    box-shadow:
        0 0 0 2px rgba(255, 140, 0, 0.65),
        0 0 26px rgba(255, 69, 0, 0.65),
        0 0 45px rgba(255, 215, 0, 0.55),
        0 28px 55px rgba(0, 0, 0, 0.50),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.container-gallery::before {
    content: none;
}

/* ===================== GALLERY CARD ===================== */
.card.hover-shadow {
    background: rgba(255, 255, 255, 0.88);
    border-radius: 18px;
    overflow: hidden;
    border: none;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.card.hover-shadow:hover {
    transform: translateY(-10px) scale(1.015);
    box-shadow:
        0 22px 45px rgba(0, 0, 0, 0.28);
}

/* ===================== IMAGE FRAME (REDUCED HEIGHT + FLAME BORDER) ===================== */
.card-img {
    position: relative;
    padding: 3px;

    /* Solid flame border */
    border: 2px solid #ff4500;  /* bright flame red */
    border-radius: 14px;
    box-shadow:
        0 0 8px rgba(255, 69, 0, 0.6),
        0 0 16px rgba(255, 140, 0, 0.45),
        0 0 24px rgba(255, 215, 0, 0.35);
}

.card-img::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.25);
    pointer-events: none;
}

/* IMAGE */
.card-img img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 180px;  /* reduced from 250px */
    /*object-fit: cover;*/

    background: rgba(255,255,255,0.9);
    /*border-radius: 12px;*/
    padding: 6px;

    transition: transform 0.35s ease;
}

.card.hover-shadow:hover img {
    transform: scale(1.04);
}

/* ===================== TEXT AREA ===================== */
.card > div:last-child {
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.card > div:last-child a {
    color: #222;
    text-decoration: none;
}

/* ===================== SECTION TITLE ===================== */
.section-title h2 a {
    text-decoration: none;
    font-weight: 800;
    position: relative;
    color: inherit;
}

.section-title h2 a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 48px;
    height: 3px;
    border-radius: 4px;
    background: #ff4500;
}

/* ===================== GRID SPACING ===================== */
.custom-div {
    margin-bottom: 25px;
}

/* ===================== MOBILE ===================== */
@media (max-width: 768px) {
    .card.hover-shadow:hover {
        transform: none;
    }

    .card-img img {
        height: auto;
    }
}

/* ===================== GALLERY TEXT (GLOSSY BLUE) ===================== */
#gallery {
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding: 6px 10px;
    line-height: 1.2;

    color: #0a3cff;  /* glossy blue */
    text-shadow:
        0 1px 0 rgba(255,255,255,0.9),
        0 2px 4px rgba(10,60,255,0.35),
        0 0 8px rgba(0,120,255,0.45);

    transition: transform 0.3s ease;
}

#gallery::after {
    content: "";
    position: absolute;
    left: 10%;
    bottom: -5px;
    width: 80%;
    height: 3px;
    background: rgba(10, 60, 255, 0.8);
    border-radius: 8px;
    opacity: 0;
    transform: scaleX(0.6);
    transition: all 0.3s ease;
}

#gallery:hover {
    transform: scale(1.06);
}

/*#gallery:hover::after {*/
/*    opacity: 1;*/
/*    transform: scaleX(1);*/
/*}*/


/*latest*/
/* ===================== 3D GLASS CONTAINER ===================== */
#threeD-container {
    border-radius: 25px;
    border: 3px solid #010218;
    padding: 20px;

    /* FIXED SIDE MARGINS */
    margin-left: 24px;
    margin-right: 24px;
    width: calc(100% - 48px); /* critical for Bootstrap */

    /* UPDATED BACKGROUND GRADIENT */
    background: linear-gradient(
        145deg,
        #120016,
        #2a002e,
        #5c0038,
        #ff4a6d
    );

    box-shadow:
        0 15px 35px rgba(0,0,0,0.4),
        inset 0 -2px 10px rgba(255,74,109,0.2);

    transition: transform 0.5s ease, box-shadow 0.5s ease;

    perspective: 1000px;
    /*transform-style: preserve-3d;*/
    position: relative;
}

/* ===================== HOVER TILT ===================== */
#threeD-container:hover {
    transform: rotateY(5deg) rotateX(3deg);
    box-shadow:
        0 25px 45px rgba(0,0,0,0.5),
        inset 0 -2px 15px rgba(255,74,109,0.35);
}

/* ===================== BOOTSTRAP ROW FIX ===================== */
#threeD-container > .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform-style: preserve-3d;
}


/* ===================== BLOCKQUOTE ===================== */
.blockquote {
    border-radius: 15px;
}

/* ===================== ALERT + CAROUSEL 3D ===================== */
.alert-flicker-full,
.carousel-inner .carousel-item img {
    box-shadow:
        0 10px 25px rgba(0,0,0,0.25),
        0 4px 10px rgba(255,74,109,0.1);

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
}

/* ===================== LIFT ON HOVER ===================== */
.alert-flicker-full:hover,
.carousel-inner .carousel-item img:hover {
    transform: translateZ(15px) rotateX(2deg) rotateY(-2deg);
    box-shadow:
        0 20px 35px rgba(0,0,0,0.35),
        0 8px 15px rgba(255,74,109,0.2);
}

/* ===================== SMOOTH CAROUSEL ===================== */
.carousel-inner .carousel-item img {
    transition:
        transform 0.5s ease,
        box-shadow 0.5s ease;
}

/* ===================== GLOW GRADIENT BORDER ===================== */
/*#threeD-container::before {*/
/*    content: "";*/
/*    position: absolute;*/
/*    top: -3px;*/
/*    left: -3px;*/
/*    right: -3px;*/
/*    bottom: -3px;*/

/*    border-radius: 28px;*/

/*    background: linear-gradient(*/
/*        135deg,*/
/*        #FF4A6D,*/
/*        #ff7a18*/
/*    );*/

/*    filter: blur(8px);*/
/*    z-index: -1;*/
/*}*/

/* ===================== RESPONSIVE ===================== */
/*@media (max-width: 768px) {*/
/*    #threeD-container {*/
/*        margin-left: 12px;*/
/*        margin-right: 12px;*/
/*        width: calc(100% - 24px);*/
/*    }*/

/*    #threeD-container:hover {*/
/*        transform: none;*/
/*        box-shadow:*/
/*            0 15px 35px rgba(0,0,0,0.3),*/
/*            inset 0 -2px 10px rgba(255,74,109,0.2);*/
/*    }*/
/*}*/


/* ===================== WRAPPER ===================== */
.modern-wrapper {
    padding: 20px;
}

/* ===================== GLASS + ANIMATED + NEON + 3D CARD ===================== */
.glass-animated.neon-3d {
    border-radius: 25px;
    padding: 26px;

    /*margin-left: 24px;*/
    /*margin-right: 24px;*/
    width: calc(100% - 48px);

     /*Light black → Yellow → Orange → Red gradient */
    /*background: linear-gradient(*/
    /*    145deg,*/
    /*    rgba(26,26,26,0.25),*/
    /*    rgba(255,215,0,0.25),*/
    /*    rgba(255,140,0,0.25),*/
    /*    rgba(0,0,0,0.0)*/
    /*);*/
    background-size: 400% 400%;

    /* GLASS + NEON + 3D EFFECTS */
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    /* FLAME COLOR BORDER */
    border: 2px solid #FF4500;

    /* NEON GLOW */
    box-shadow:
        0 0 12px rgba(255,69,0,0.5),
        0 25px 50px rgba(0,0,0,0.25),
        inset 0 0 15px rgba(255,140,0,0.3);

    perspective: 1000px;
    transform-style: preserve-3d;

    /* TRANSITIONS & ANIMATION */
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    animation: gradientFlow 10s ease infinite;
}

.glass-animated.neon-3d:hover {
    transform: rotateY(5deg) rotateX(3deg);
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.1),   /* soft drop shadow */
        0 8px 20px rgba(0, 0, 0, 0.15),  /* deeper shadow */
        inset 0 0 0 rgba(0, 0, 0, 0);    /* no inner glow */
}


/* ===================== GRADIENT ANIMATION ===================== */
@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===================== LATEST ALERT ===================== */
.modern-alert {
    border-radius: 12px;
    font-size: 16px;
    letter-spacing: 0.4px;

    /* Red → Yellow glossy gradient background */
    background: linear-gradient(
        145deg,
        #FF4500,
        #FFD700
    ); 
    color: #000000 !important; /* dark text for contrast */

    border: 1px solid #000000;


    text-align: left;
    padding: 10px 15px;
    font-weight: 600;

    box-shadow:
        0 4px 15px rgba(0,0,0,0.3),
        inset 0 0 10px rgba(255,255,255,0.1);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    transition: all 0.3s ease;
}

.modern-alert:hover {
    background: linear-gradient(
        145deg,
        #FF6347, /* lighter red */
        #FFB600  /* brighter yellow */
    );
    border: 1px solid #ffffff;
    box-shadow:
        0 6px 20px rgba(0,0,0,0.4),
        inset 0 0 15px rgba(255,255,255,0.2);
    color: #1a1a1a; /* readable on hover */
}

/* ===================== MESSAGE HEADING ===================== */
#msg1_head {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 22px;
    margin-bottom: 12px;
    color: #FF4500; /* flame color heading */
    text-shadow:
        0 0 5px #FF6347,
        0 0 10px #FF7F50,
        0 0 20px rgba(255,69,0,0.5);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

/* ===================== MESSAGE BODY ===================== */
#msg1 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: #333333;
    text-align: justify;
    padding-left: 8px;
    padding-right: 8px;
    text-shadow: none;
    transition: all 0.3s ease;
}

/* ===================== MESSAGE HOVER ===================== */
.modern-blockquote:hover #msg1 {
    color: #ff4500;
    font-weight: 500;
    text-shadow: none;
}

/* ===================== BLOCKQUOTE / MESSAGE BACKGROUND ===================== */
.modern-blockquote {
    background: #f5f5f5; /* light gray background */
    padding: 20px 24px;
    border-left: 4px solid #FF4500; /* flame color border */
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.modern-blockquote:hover {
    box-shadow: 0 12px 28px rgba(0,0,0,0.25);
    border-left-color: #FF6347;
    background: #f0f0f0;
}

/* ===================== GLASSY 3D IMAGE ===================== */
.modern-carousel img {
    width: 100%;
    /*height: 350px;*/
    object-fit: cover;
    /*border-radius: 18px;*/

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow:
        0 8px 20px rgba(0,0,0,0.25),
        inset 0 0 15px rgba(0,123,255,0.2);

    transition: transform 0.5s ease, box-shadow 0.5s ease;
    perspective: 1000px;
    transform-style: preserve-3d;
}

/* Hover 3D tilt effect for image */
.modern-carousel img:hover {
    transform: rotateY(5deg) rotateX(3deg);
    box-shadow:
        0 12px 28px rgba(0,0,0,0.35),
        inset 0 0 25px rgba(0,123,255,0.4);
}

/* ===================== CAROUSEL CONTROLS ===================== */
.carousel-indicators li {
    background-color: #FF4500; /* flame color indicators */
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: drop-shadow(0 0 8px rgba(0,0,0,0.5));
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
    .modern-carousel img {
        height: 260px;
    }

    #msg1_head {
        font-size: 20px;
    }

    #msg1 {
        font-size: 15px;
    }
}

/***************************************************************************/
/* ===================== MESSAGE ITEM CARD ===================== */
.list-unstyled li {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    
    /* 3D depth */
    box-shadow:
        0 10px 25px rgba(0,0,0,0.35),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

/* Hover lift */
.list-unstyled li:hover {
    transform: translateY(-6px);
    box-shadow:
        0 20px 40px rgba(0,0,0,0.45),
        inset 0 1px 0 rgba(255,255,255,0.08);
}

/* ===================== GLASSY OVERLAY (keeps original color) ===================== */
.list-unstyled li::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.06),
        rgba(255,255,255,0.01)
    );
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    pointer-events: none;
}

/* ===================== LEFT ICON / DATE COLUMN ===================== */
.list-unstyled li .d-md-table-cell.text-center {
    border-radius: 14px;
    position: relative;

    /* depth without color change */
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.15),
        0 6px 14px rgba(0,0,0,0.4);
}

/* subtle shine on icon area */
.list-unstyled li .d-md-table-cell.text-center::after {
    content: "";
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.25),
        transparent
    );
    transform: skewX(-20deg);
    transition: left 0.8s ease;
}

.list-unstyled li:hover .d-md-table-cell.text-center::after {
    left: 130%;
}

/* ===================== MESSAGE CONTENT ===================== */
.list-unstyled li .vertical-align-middle {
    position: relative;
    z-index: 2;
}

/* Headings pop without color change */
.font_head_class {
    text-shadow: 0 2px 4px rgba(0,0,0,0.35);
    letter-spacing: 0.3px;
}

/* Message readability */
.font_message_class {
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* ===================== BORDER ENHANCEMENT (keeps border color) ===================== */
.list-unstyled li {
    border-bottom: none !important;
}

.list-unstyled li::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    pointer-events: none;
}

/* ===================== MOBILE OPTIMIZATION ===================== */
/*@media (max-width: 768px) {*/
/*    .list-unstyled li {*/
/*        text-align: center;*/
/*    }*/

    /*.list-unstyled li .d-md-table-cell {*/
/*        display: block;*/
/*        width: 100%;*/
/*    }*/
/*}*/
/* =========================================================
   SUBSCRIBE CONTAINER – DARK PATTERN BACKGROUND
========================================================= */
.subscribe {
    position: relative;
    padding: 14px 22px;          /* compact height */
    border-radius: 14px;
    background: #0b0f1a;         /* base dark */
    overflow: hidden;
    box-shadow: 0 10px 32px rgba(0,0,0,0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* LEFT VERTICAL ACCENT STRIP */
.subscribe::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #ffcc33, #ff9900);
    border-radius: 14px 0 0 14px;
}

/* DARK-LINED PATTERN OVERLAY */
.subscribe::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            45deg,
            rgba(255,255,255,0.05),
            rgba(255,255,255,0.05) 1px,
            transparent 1px,
            transparent 10px
        );
    opacity: 0.25;
    pointer-events: none;
}

/* KEEP CONTENT ABOVE OVERLAY */
.subscribe > * {
    position: relative;
    z-index: 1;
}

/* HOVER GLOW */
.subscribe:hover {
    transform: translateY(-2px);
    box-shadow:
        0 14px 38px rgba(0,0,0,0.55),
        0 0 28px rgba(255,182,0,0.35);
}

/* TITLE */
.section-sub-title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ICON */
.section-sub-title i {
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffcc33;
    color: #000;
    font-size: 14px;
    box-shadow: 0 5px 14px rgba(255,204,51,0.55);
}

/* AUTO LIGHT BACKGROUND SUPPORT */
@media (prefers-color-scheme: light) {
    .subscribe {
        background: #ffffff;
        box-shadow: 0 10px 24px rgba(0,0,0,0.15);
    }

    .subscribe::before {
        background-image:
            repeating-linear-gradient(
                45deg,
                rgba(0,0,0,0.03),
                rgba(0,0,0,0.03) 1px,
                transparent 1px,
                transparent 10px
            );
        opacity: 0.15;
    }

    .section-sub-title {
        color: #1a1a1a;
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .subscribe {
        padding: 12px 18px;
    }

    .section-sub-title {
        font-size: 16px;
    }

    .section-sub-title i {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }
}
