﻿/* ===========================
   Default Styles
   =========================== */

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* ===========================
   Headline Styles
   =========================== */
#headline, #headline2 {
    color: #1c4494;
    font-family: Franklin Gothic Heavy;
    font-weight: bolder;
    line-height: 0.8;
    margin-top: -40px;
}

#headline {
    font-size: clamp(50px, 8vw, 70px);
}

#headline2 {
    margin-top: 20px;
    font-size: clamp(40px, 8vw, 60px);
}

/* ===========================
   Main Content Section
   =========================== */
#section-1 {
    height: auto;
    background-image: url('/img/template/about-cover.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-bottom: 180px !important;
    margin-top: 220px;
    padding-top: 120px !important;
}

.section-1-contents {
    height: auto;
}

/* ===========================
   Sub-headlines and Terms
   =========================== */
.sub_headline {
    color: #1c4494;
    font-family: Franklin Gothic Heavy;
    font-weight: bolder;
    font-size: clamp(25px, 3vw, 55px);
    display: block;
    margin-bottom: 1rem;
}

.terms {
    color: #025994;
    font-weight: bold;
    text-decoration: underline;
    font-size: clamp(15px, 2vw, 25px);
    display: block;
    margin-bottom: 0.5rem;
}

.terms_def {
    color: black;
    font-size: 20px;
    margin-bottom: 1.5rem;
    display: block;
}

.resp_text {
    color: black;
    font-size: clamp(15px, 2vw, 25px);
}

/* ===========================
   Headings and Horizontal Rule
   =========================== */
h5 {
    color: black;
    font-size: 18px;
    text-align: justify;
    text-justify: inter-word;
}

#hr-fade {
    border-radius: 20px;
    opacity: 1;
    border: 0;
    height: 40px;
    width: auto;
    background-image: linear-gradient(to left, #103a8f, #cedff1);
    margin-top: 25px;
    margin-bottom: 25px;
}

/* ===========================
   Awards Section
   =========================== */
#section-3 {
    text-align: center;
    background-image: url('/img/home/award-bg.jpg');
    background-size: cover;
    height: 900px;
    width: 100%;
    z-index: -9999!important;
}

.award_img {
    width: 250px;
}

.awards-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

/* ===========================
   Button Styles
   =========================== */
.btn-info {
    font-family: Franklin Gothic Heavy;
    width: 430px;
    color: white;
    background-color: #30a4ac;
    border-radius: 40px;
    padding: 15px;
    font-size: clamp(20px, 5vw, 40px);
}

/* ===========================
   Pillar Images and Containers
   =========================== */
.pillar-img, .bottom-pillar {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

/* Three Pillars Container */
.pillars-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    padding: 0 1rem;
}

/* Individual Pillar */
.pillar {
    flex: 1;
    min-width: 0;
    max-width: 350px; /* Adjust as needed */
    text-align: center;
    padding: 1rem 0.5rem;
    position: relative;
}

/* Pillar Content Box */
.pillar-content {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 1rem;
    margin: 0 0.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pillar-section {
    margin-bottom: 1rem;
}

/* Bottom Pillars */
.bottom-pillars {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: -60px;
    padding: 0 1rem;
}

.bottom-pillar-item {
    flex: 1;
    text-align: center;
}

/* ===========================
   Responsive Pillar Display
   =========================== */
/* Desktop View - Show by default */
.pillars-desktop {
    display: flex;
}
/* Mobile View - Hide by default */
.pillars-mobile {
    display: none;
}

/* ===========================
   Carousel Controls
   =========================== */
.carousel-control-prev,
.carousel-control-next {
    width: 8% !important;
    background-color: rgba(28, 68, 148, 0.7) !important;
    border-radius: 5px !important;
    height: 50px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    opacity: 0.8 !important;
}

    .carousel-control-prev:hover,
    .carousel-control-next:hover {
        background-color: rgba(28, 68, 148, 0.9) !important;
        opacity: 1 !important;
    }

.carousel-control-prev {
    left: -15px !important;
}

.carousel-control-next {
    right: -15px !important;
}

/* Center carousel items */
.pillars-mobile .carousel-item.active {
    justify-content: center;
    align-items: center;
    text-align: center;
}

.pillars-mobile .carousel-item {
    text-align: center;
}

    .pillars-mobile .carousel-item .pillar {
        margin: 0 auto;
        max-width: 90%;
    }

/* ===========================
   Media Queries for Responsiveness
   =========================== */
@media only screen and (max-width: 767px) {
    .pillar {
        height: 1000px !important;
    }

    #section-3 {
        margin-top: -20px;
    }
    #hr-fade {
        height:20px!important;
    }
}

@media only screen and (max-width: 525px) {
    .pillar {
        height: 1100px !important;
    }

    #section-3 {
        margin-top: -20px;
    }
    .terms_def {
        font-size:20px!important;
    }
    .terms {
        font-size: 20px !important;
    }
}
/* Mobile optimizations for 992px and below */
@media only screen and (max-width: 992px) {
    .pillar {
        flex: 1;
        min-width: 0;
        max-width: 350px;
        text-align: center;
        padding: 1rem 0.5rem;
        height: 900px;
        overflow: hidden;
        box-sizing: border-box;
    }

    .about-definition {
        font-size: 17px !important;
    }

    .pillars-desktop {
        display: none !important;
    }

    .pillars-mobile {
        display: block !important;
    }

    .pillars-container {
        gap: 0.5rem;
        padding: 0 0.5rem;
    }

    .pillar::before {
        width: 6px;
    }

    .pillar-content {
        padding: 0.75rem 0.5rem;
        margin: 0 0.1rem;
    }

    .terms {
        font-size: clamp(12px, 3vw, 16px);
        margin-bottom: 0.25rem;
    }

    .pillar-img {
        width: auto;
        height: auto;
        margin-bottom: 0.5rem;
    }

    .bottom-pillars {
        gap: 0.5rem;
        margin-top: -40px;
    }

    .award_img {
        width: 150px;
    }

    .awards-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

@media only screen and (max-width: 480px) {
    #section-3 {
        margin-top: -50px;
    }

    .pillar {
        height: 980px !important;
    }

    .terms {
        font-size: clamp(10px, 3vw, 14px);
    }

    .terms_def {
        font-size: 15px;
    }

    .pillar-img {
        width: auto;
        height: auto;
    }

    .btn-info {
        width: 250px;
        font-size: clamp(16px, 4vw, 20px);
    }
}

@media only screen and (max-width: 500px) {
    #hr_css {
        margin: 0;
    }
}
@media only screen and (max-width: 500px) {
    /* Make top and bottom pillar images the same size in mobile carousel */
    .pillars-mobile .pillar-img,
    .pillars-mobile .bottom-pillar {
        display: block !important;
        margin: 0 auto 0.5rem auto !important;
        width: 150px !important; /* Set desired size */
        max-width: 150px !important;
        height: auto !important;
    }

    .pillars-mobile .carousel-item .pillar {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        padding-bottom: 40px !important;
    }
}


@media only screen and (max-width: 645px) {
    .btn-info {
        width: 270px;
        height: 55px;
        padding: 0;
        font-size: 25px;
    }
}

@media only screen and (min-width: 1243px) {
    .section-1-contents {
        width:1000px;
    }
}
