/* ===== Base Styles ===== */
body {
    font-family: 'Open Sans', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container-fluid {
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* ===== Downloads Banner ===== */
#downloads {
    padding-top: 100px;
    margin-top: 163px;
    color: #fff;
    background-image: url("../downloads/images/download.jpg");
    background-size: cover;
    background-position: center;
    height: 350px;
    display: flex;
    align-items: center;
    position: relative;
}

#downloads::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

#downloads h1 {
    position: relative;
    z-index: 1;
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    padding-left: 60px;
}

/* ===== Section Headings ===== */
.text-center h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 15px;
}

.text-center h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    /* background: #e74c3c; */
}

/* ===== Brochures Section ===== */
.brochure {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.brochure > div {
    flex: 1 1 200px;
    max-width: 250px;
    margin-bottom: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.brochure > div:hover {
    transform: translateY(-5px);
}

.brochure img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
}

.brochure center {
    display: block;
    margin-top: 10px;
    font-weight: 600;
    color: #2c3e50;
}

/* ===== Souvenir Section ===== */
.divBook {
    perspective: 1000px;
    margin-bottom: 30px;
}

.front, .back {
    width: 85%;
    margin: 0 auto;
    backface-visibility: hidden;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 5px;
}

.front {
    position: relative;
    z-index: 2;
}

.back {
    position: absolute;
    top: 0;
    left: 7.5%;
    transform: rotateY(180deg);
    background: #fff;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.divBook:hover .front {
    transform: rotateY(180deg);
}

.divBook:hover .back {
    transform: rotateY(0deg);
}

.bookname {
    text-align: center;
    margin-top: 15px;
}

.bookname a {
    font-weight: 600;
    color: #2c3e50;
}

/* ===== e-NEWS Section ===== */
#e-NEWS {
    background-color: #f5f5f5;
    padding: 60px 0;
}

.paddingbottom {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.divpadding {
    flex: 1 1 250px;
    max-width: 280px;
}

.img-frontview {
    width: 85%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* ===== NISTIANS Section ===== */
#NISTIANS {
    padding: 60px 0;
    background-color: #fff;
}

/* ===== Buttons ===== */
.btn-warning {
    background-color: #e67e22;
    border-color: #e67e22;
    color: white;
    padding: 10px 20px;
    font-weight: 600;
    margin: 20px;
    transition: all 0.3s ease;
     float: right !important;   /* force to right */
}

.btn-warning:hover {
    background-color: #d35400;
    border-color: #d35400;
    transform: translateY(-2px);
}

/* ===== Responsive Adjustments ===== */

@media (max-width: 992px) {
    .text-center h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
   
    .paddingtop, .paddingbottom, .paddingtopbottom {
        padding: 40px 0;
    }
    
    .brochure > div {
        flex: 1 1 150px;
    }
}

@media (max-width: 576px) {

    .text-center h1 {
        font-size: 1.8rem;
    }
    
    .brochure > div {
        flex: 1 1 100%;
        max-width: 300px;
    }
    
    .divpadding {
        flex: 1 1 100%;
        max-width: 300px;
    }
}


@media (min-width: 769px) and (max-width: 950px) {
    #downloads h1 {

        display: none;
    }

    #downloads {
        margin-top: -80px;
        background-repeat: no-repeat;
        background-size: 100%;
    
        position: static;
    }
}

@media (min-width: 577px) and (max-width: 768px) {

    #downloads h1 {

        display: none;
    }

    #downloads {
        margin-top: -80px;
        background-repeat: no-repeat;
        background-size: 100%;
        height: 200px;
      
        position: static;
    }
}

@media (min-width: 280px) and (max-width: 576px) {
    #downloads h1 {

        display: none;
    }

    #downloads {
        margin-top: -45px;
        background-repeat: no-repeat;
        background-size: 100%;
        height: 150px;
        /* //border:solid red 1px; */
    }

    .container {
        width: 100%;
        padding: 0px;
        margin: 0px;
    }

}










/* ===== Animation Enhancements ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.brochure > div, .divBook, .divpadding {
    animation: fadeIn 0.6s ease-out forwards;
}

.brochure > div:nth-child(1) { animation-delay: 0.1s; }
.brochure > div:nth-child(2) { animation-delay: 0.2s; }
.brochure > div:nth-child(3) { animation-delay: 0.3s; }
.brochure > div:nth-child(4) { animation-delay: 0.4s; }