/** This Style css used for Master page div box for display faculty Department student and courses**/

.mycon1 {
    position: relative;
}

.my-main-container {
    position: absolute;
    top: -120px;
    z-index: 5;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    background: rgba(220, 192, 192, 0.26);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    /* border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); */
}

.my-student-box {
    background: rgba(33, 35, 37, 0.047);
    backdrop-filter: blur(5px);
    color: rgb(45, 42, 42);
    border: none;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease-in-out, box-shadow 0.3s ease-in-out;
    flex: 1;
    min-width: 200px;
    max-width: 25%;
}

.my-student-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

@media (max-width: 1024px) {
    .my-student-box {
        max-width: 50%;
    }
}

@media (max-width: 768px) {
    .my-main-container {
        flex-direction: column;
        align-items: center;
    }

    .my-student-box {
        max-width: 100%;
    }
}

/** This Css style used fo Whatsapp integration**/
.whatsapp-float {
    position: fixed;
    bottom: 120px;
    right: 40px;
    width: 60px;
    height: 60px;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: blink 1.5s infinite;
}

.whatsapp-float img {
    width: 100%;
    border-radius: 50%;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Wave Effect */
.whatsapp-float .wave-effect {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.5);
    opacity: 0.6;
    animation: wave-animation 2s infinite ease-out;
}

.whatsapp-float .wave-effect:nth-child(2) {
    animation-delay: 0.5s;
}

.whatsapp-float .wave-effect:nth-child(3) {
    animation-delay: 1s;
}

@keyframes wave-animation {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/** Animated Stars Background for Home Page **/
.sky {
    height: 300px;
    background: linear-gradient(to bottom, #1f2c58, #447db6);
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    padding: 10px;
}

/* Star Styling */
.star {
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    animation: twinkle 3s infinite ease-in-out;
    margin: 2px;
    transform: translate(calc(var(--x) * 1px), calc(var(--y) * 1px));
}

/* Bigger Stars */
.star.big {
    width: 6px;
    height: 6px;
    background: #f8f8ff;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

.form-select-my {
    min-width: 300px !important;
}


/**  Here below is MU About Page Css style **/
.banner-top {
    height: 250px;
    background: url('/frontEnd/images/aboutMahsa.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.banner-overlay {
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* semi-transparent overlay */
    text-align: center;
}

/**  MAIC College Style **/
.banner-top-maic {
    position: relative;
    height: 250px;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.banner-top-maic::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #f8f8ff;
    z-index: 1;
}

.banner-top-maic::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url('/frontEnd/images/maic.png') no-repeat center center;
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 2;
}


.angle-bg {
    background: linear-gradient(135deg, #696969 50%, #7364b5 50%);
    color: white;
}

.circle-text {
    width: 200px;
    height: 150px;
    border-radius: 50%;
    border: 6px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

/* Programme Box Base Style */
.programme-box {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    transform: translateY(40px) scale(0.95);
    opacity: 0;
    animation: cardEntry 0.8s forwards;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    /* subtle shadow */
}

.programme-content {
    height: 320px;
    /* Try increasing this */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding: 10px 15px;
    overflow: hidden;
    /* keep if you want to clip extra content */
}

.programme-content-two {
    height: 140px;
    /* Try increasing this */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding: 10px 15px;
    overflow: hidden;
    /* keep if you want to clip extra content */
}


/* Entry Animation */
@keyframes cardEntry {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Hover Effect */
.programme-box:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

/* Image Style */
.img-wrapper img {
    height: 250px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Optional: Image Zoom on Hover */
.img-wrapper:hover img {
    transform: scale(1.05);
}

.programme-divider {
    width: 60px;
    height: 2px;
    background-color: #fff;
    /* or another color */
    margin: 8px auto;
    border: none;
    opacity: 0.5;
}


/* Optional: Staggered Animations (for nice cascade effect) */
.programmes-carousel .programme-box:nth-child(1) {
    animation-delay: 0.1s;
}

.programmes-carousel .programme-box:nth-child(2) {
    animation-delay: 0.2s;
}

.programmes-carousel .programme-box:nth-child(3) {
    animation-delay: 0.3s;
}

.programmes-carousel .programme-box:nth-child(4) {
    animation-delay: 0.4s;
}

/* ... add more as needed */


.img-wrapper img {
    transition: transform 0.5s ease;
    border-radius: 8px;
}

.programme-box:hover .img-wrapper img {
    transform: scale(1.08);
}

.programme-box a {
    text-decoration: none;
    color: inherit;
    /* Keeps text color consistent */
}

.programme-box a:hover {
    text-decoration: none;
}


.programme-name p {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    color: #fff;
    padding: 12px;
    transition: color 0.3s ease;
}

.programme-box:hover .programme-name p {
    color: #fefefe;
}

.mb-20 {
    color: #fff;
    padding: 0 15px 20px;
    font-size: 14px;
    opacity: 0.9;
}

/**   MAIC Why CHoose Us page style css code **/

.reason-row {
    display: flex;
    align-items: center;
    background-color: #fdfdfd;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.reason-row:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.reason-img {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    background-color: #eee;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.img-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.img-wrapper img {
    max-width: 100%;
    max-height: 100%;
}

.reason-no {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    background-color: #ff8c00;
    color: white;
    font-weight: bold;
    border-radius: 50%;
    border: 3px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.reason-text {
    padding-left: 20px;
}

.reason-title {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.reason-description {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .reason-row {
        flex-direction: column;
        text-align: center;
    }

    .reason-text {
        padding-left: 0;
        padding-top: 15px;
    }

    .reason-img {
        margin-bottom: 10px;
    }
}

/* MAHSA INTERNATIONAL SCHOOL Page CSS */
.mahsa-inter-school {
    background-image: url('/frontEnd/images/mahsais.jpg');
    background-size: cover;
    /* Fill the container */
    background-position: center top;
    /* Start from top center */
    background-repeat: no-repeat;
    width: 100%;
    height: 400px;
}

.bg-10-reasons {
    background-image: url('/frontEnd/images/mashsais_student.jpg');
    /* Replace with actual image path */
    background-size: cover;

    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    /* optional rounded corners */
}

.reasons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.reason-button {
    display: inline-block;
    padding: 6px 15px;
    /* Smaller padding */
    margin-bottom: 8px;
    /* Reduced margin */
    font-weight: bold;
    font-size: 14px;
    /* Smaller font size */
    border: 2px solid #fff;
    border-radius: 20px;
    /* Slightly smaller border radius */
    color: #fff;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    min-width: 120px;
    /* Smaller min width */
    text-decoration: none;
}

.reason-button:hover {
    background-color: #fff;
    color: #000;
}

.reason-button:nth-child(1) {
    background-color: #ff7f50;
    /* random orange */
}

.reason-button:nth-child(2) {
    background-color: #32cd32;
    /* random green */
}

.reason-button:nth-child(3) {
    background-color: #1e90ff;
    /* random blue */
}

.reason-button:nth-child(4) {
    background-color: #ffd700;
    /* random yellow */
}

.reason-button:nth-child(5) {
    background-color: #8a2be2;
    /* random purple */
}

.reason-button:nth-child(6) {
    background-color: #ff6347;
    /* random red */
}

.reason-button:nth-child(7) {
    background-color: #20b2aa;
    /* random light teal */
}

.reason-button:nth-child(8) {
    background-color: #ff1493;
    /* random deep pink */
}

.reason-button:nth-child(9) {
    background-color: #ff4500;
    /* random orange-red */
}

.reason-button:nth-child(10) {
    background-color: #b0c4de;
    /* random light steel blue */
}

.reason-button:nth-child(11) {
    background-color: #9acd32;
    /* random yellow-green */
}

.reason-button:nth-child(12) {
    background-color: #f0e68c;
    /* random khaki */
}

.reason-button:nth-child(13) {
    background-color: #adff2f;
    /* random green-yellow */
}

.programme-content2 {
    height: 530px;
    /* Try increasing this */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding: 10px 15px;
    overflow: hidden;
    /* keep if you want to clip extra content */
}


/*This CSS Style for Apply@MAHSA -> Mahsa University page */


.faculty-banner {
    display: flex;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.faculty-banner>div {
    flex: 1 1 50%;
    height: 100%;
    min-width: 0;
    /* Fix flex overflow */
}

.faculty-banner .image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.faculty-banner .text-side {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.faculty-banner .text-side h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    margin: 0;
    padding: 0 20px;
}

/* Responsive: stack vertically on small screens */
@media (max-width: 768px) {
    .faculty-banner {
        flex-direction: column;
        height: auto;
        /* Let height grow */
    }

    .faculty-banner>div {
        flex: none;
        width: 100%;
        height: 250px;
        /* adjust height for smaller screens */
    }

    .faculty-banner .text-side h1 {
        font-size: 2rem;
        padding: 10px;
    }
}











/** Mobile Friendly Carousel Typography and Buttons **/

@media (max-width: 768px) {
    .owl-carousel-item h1 {
        font-size: 1.6rem !important;
        line-height: 1.3 !important;
    }

    .owl-carousel-item h5 {
        font-size: 1rem !important;
    }

    .owl-carousel-item p {
        font-size: 0.87rem !important;
    }

    .owl-carousel-item .btn {
        font-size: 0.80rem !important;
        padding: 10px 16px !important;
    }
}