@import url('https://fonts.googleapis.com/css2?family=Pacifico&family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    scroll-behavior: smooth;
    list-style: none;
}

body {
    display: flex;
    align-items: center;
    flex-direction: column;
    height: 100vh;
    overflow-x: hidden;
    width: 100%;
    /* background: #000; */
}

.date{
    margin: 14px 0 ;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 15;
}

.date .fa-calendar-days{
    margin: 0 8px;
    font-size: 20px;
}

.home {
    width: 100%;
    height: 100%;
    margin: 80px 0 0 0;
    padding: 100px 0;
    background-image: url(images/image4.jpg);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
    object-fit: cover;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.home::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 15, 65, 0.7); 
    z-index: 0;
}

.alumni_mem {
    width: 100%;
    height: 100%;
    padding: 100px 0;
    position: relative;
    background-image: url(images/logo3.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
    object-fit: cover;
    justify-content: center;
    z-index: 2;
}

.alumni_mem::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 15, 65, 0.8); 
    z-index: 0;
}



.section-tb{
    z-index: 8;
    position: relative;
    color: #fff;
    /* bottom: 50px; */
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    justify-content: center;
}
.section-title{
    font-size: 45px;
    font-weight: 600;
    margin-bottom: 10px;
}

.section-body{
    font-size: 14px;
    text-align: center;
    font-weight: 500;
    margin-bottom: 24px;
}

.action-btns{
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btns button{
    background: #fff;
    padding: 10px 20px;
    margin: 0 8px;
    outline: none;
    border: none;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    border-radius: 8px;
    cursor: pointer;
}


.section-tb button:hover{
    background: #008cff;
    color: #fff;
}

section:nth-child(4){
    width: 100%;
    height: 100vh;
    top: 80px;
    position: relative;
   background: #fff;
}
section .header{
    color: #fff;
    text-align: center;
    display: flex;
    align-items: center;
    flex-direction: column;
    position: relative;
    width: 100%;
    z-index: 6;
}

section .header h1{
    font-size: 45px;
    text-transform: uppercase;
}

section .header .line{
    height: 2px;
    width: 100px;
    border-radius: 4px;
    margin: 5px 0 10px 0;
    background: #fff;
}

section .header h5{
    font-size: 12px;
    margin-bottom: 10px;
}

.container {
    z-index: 5;
    position: relative;
    color: #de4848;
    display: flex;
    gap: 1em;
    justify-content: center;
    background: #fff5;
    padding: 12px;
    border-radius: 8px;
}

.flip-card {
    font-size: 60px;
    position: relative;
    display: inline-flex;
    flex-direction: column;
    box-shadow: 0 2px 3px 0 rgba(0, 0, 0, .2);
    border-radius: .1em;
    font-weight: 500;
}

.flip-card .top, 
.flip-card .bottom {
    width: 80px; /* Set a fixed width */
    min-width: 80px; /* Ensure width remains fixed */
    display: flex;
    justify-content: center;
}


.top,
.bottom,
.flip-card .top-flip,
.flip-card .bottom-flip {
    height: .75em;
    line-height: 1;
    padding: .25em;
    overflow: hidden;
    display: flex;
}

.top,
.flip-card .top-flip {
    background-color: #f7f7f7;
    border-top-right-radius: .1em;
    border-top-left-radius: .1em;
    border-bottom: .5px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
}

.bottom,
.flip-card .bottom-flip {
    background-color: white;
    display: flex;
    align-items: flex-end;
    border-bottom-right-radius: .1em;
    border-bottom-left-radius: .1em;
    justify-content: center;
}

.flip-card .top-flip {
    position: absolute;
    width: 100%;
    animation: flip-top 250ms ease-in;
    transform-origin: bottom;
}

@keyframes flip-top {
    100% {
        transform: rotateX(90deg);
    }
}

.flip-card .bottom-flip {
    position: absolute;
    bottom: 0;
    width: 100%;
    animation: flip-bottom 250ms ease-out 250ms;
    transform-origin: top;
    transform: rotateX(90deg);
}

@keyframes flip-bottom {
    100% {
        transform: rotateX(0deg);
    }
}

.container-segment {
    display: flex;
    flex-direction: column;
    gap: .5em;
    align-items: center;
}

.segment {
    display: flex;
    gap: .2em;
}

.segment-title {
    font-size: 16px;
    font-weight: 700;
    color: #faa831;
}

/* Message box  */
.messagebox{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
    bottom: 50px;
}

.image-back{
    z-index: 8;
    width: 180px;
    height: 180px;
    background: #fff;
    padding: 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.image-back img{
    width: 170px;
    object-fit: cover;
    height: 100%;
    border-radius: 6px;
}

.message{
    text-align: center;
    width: 80%;
}



@media (max-width: 750px) {
   
    .image-back{
        width: 150px;
        height: 160px;
    }

    .messagebox{
        bottom: 25px;
    }

    .image-back img{
        width: 140px;
    }

    .flip-card {
        font-size: 35px; /* Further reduce font size for smaller screens */
    }

    .container {
        gap: 0.5em; /* Further reduce gap between cards */
    }

    .segment-title {
        font-size: 12px;
    }

    .flip-card .top, 
    .flip-card .bottom {
    width: 35px;
    min-width: 35px; /* Ensure width remains fixed */
    }
 
    section .header h1{
        font-size: 25px;
    }
    
    section .header .line{
        width: 50px;
    }
    
    section .header h5{
        font-size: 8px;
        /* margin-bottom: 10px; */
    }

    .section-title{
        font-size: 30px;
    }
    
    .section-body{
        font-size: 12px;
    }
}

