﻿/* ===============================
   GLOBAL
==================================*/
body {
    font-family: "Segoe UI", Arial, sans-serif;
    background-color: #fdfdfd;
    color: #1a1a1a;
    line-height: 1.5;
}

.desc1 {
    font-size: 1.7rem;
    margin: 5px 2px;
    text-align: left;
    font-family: 'Georgia', serif;
    color: #2b2b2b;
}

.input-main-content {
    border-radius: 0.4rem;
    margin-right: 1rem;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    padding: 0.5rem;
    transition: box-shadow 0.25s ease;
}

    .input-main-content:focus {
        outline: none;
        box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }

/* ===============================
       HEADER IMAGE & TEXT
    ==================================*/
.header-img {
    position: relative;
    height: auto;
    border-radius: 0.6rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    background-color: #f9f9f9;
}

.image1 {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 0.6rem 0.6rem 0 0;
}

.text-on-img {
    position: absolute;
    width: 100%;
    padding: 1rem 2rem;
    top: 1rem;
}

.text-bottom-img {
    position: absolute;
    bottom: 1rem;
}

.text1 {
    font-weight: 600;
    color: #133eaf;
    font-size: 3vw;
    padding-bottom: 0.5rem;
}

.text2, .text3 {
    font-weight: 400;
    color: #0a044a;
    font-size: 2.3vw;
}

.text4 {
    font-weight: 400;
    color: white;
    font-size: 2vw;
}

.video-top-right {
    position: absolute; /* relative to header-img */
    top: 2rem; /* small gap from top edge */
    right: 1rem; /* small gap from right edge */
    width: 250px;
    height: 150px;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background-color: black;
    z-index: 10;
}
/* ===============================
       ICONS OVER IMAGE
    ==================================*/
.icons-on-img-right {
    display: flex;
    flex-direction: column;
    color: #0a044a;
    position: absolute;
    font-weight: 400;
    font-size: 1.8vw;
    right: 2vw;
    top: 2vw;
}

.icons-on-img-center {
    display: none;
    position: absolute;
    flex-direction: column;
    color: #133eaf;
    font-weight: bold;
    font-size: 2.5vw;
    left: 18vw;
    top: 40%;
}

    .icons-on-img-center > div {
        margin-bottom: 5px;
    }
/* ===============================
       ALL IN ONE and COURSE OFFERING HEADING
    ==================================*/
.icons-below-img {
    display: flex;
    justify-content: space-between; /* evenly spread horizontally */
    margin-top: 1rem; /* short gap below image */
    color: #1a1a1a; /* clean modern black */
    font-weight: 500;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 2rem;
}

    .icons-below-img .icon-item {
        display: flex;
        align-items: center;
        gap: 0.4rem; /* spacing between icon and text */
    }

#offering {
    font-size: 2.5rem; /* larger, clean font */
    font-weight: 600;
    text-align: center;
    margin-top: 7rem; /* more space from the All-in-One icons */
    margin-bottom: 2rem; /* keep it closer to course cards */
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.2;
}
/* ===============================
       COURSE GRID
    ==================================*/
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 0; /* remove auto centering */
    padding: 0; /* remove extra padding */
    width: 100%; /* take full width of container */
    box-sizing: border-box;
}

.default-course-item {
    background-color: #ffffff;
    border-radius: 0.6rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08); /* soft normal shadow */
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* Ensure the middle content (heading + text) fills space */
.default-course-item-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* fills remaining space between image and button */
    justify-content: start;
}
.courses-grid .default-course-item {
    width: 100%; /* fill the column */
    box-sizing: border-box; /* include padding in width */
}

.default-course-item:hover {
    transform: translateY(-4px); /* slight lift */
    box-shadow: 0 8px 20px rgba(0,0,0,0.12); /* subtle modern shadow */
    background-color: #ffffff; /* ensure background stays white */
}

.default-course-item-img {
    width: 100%;
    border-radius: 0.4rem;
    display: block;
    margin-bottom: 1rem;
}

.theme_header {
    text-align: center;
    font-family: "Segoe UI", sans-serif;
    font-weight: 600;
    color: darkblue;
    margin: 0.5rem 0; 
    min-height: 6rem; /* increased to comfortably fit 2 lines */
    line-height: 3rem; /* space between lines */
}

.button {
    background-color: #133eaf;
    color: white; /* keep text white */
    border: none;
    border-radius: 0.35rem;
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    font-size: 16px;
    text-align: center;
    text-decoration: none; /* remove underline */
    display: inline-block;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .button:hover {
        transform: scale(1.02); /* subtle zoom effect */
        box-shadow: 0 6px 12px rgba(19, 62, 175, 0.3); /* soft, colored shadow */
        color: white; /* force text to stay white */
        text-decoration: none;
    }

    .button:active {
        transform: scale(0.98); /* subtle press feedback */
    }
/* ===============================
       RESPONSIVE
    ==================================*/
@media screen and (max-width:700px) {
    .text1 {
        font-size: 4vw;
        width: 100%;
    }

    .text2 {
        font-size: 3vw;
        width: 100%;
    }

    .text3 {
        font-size: 3vw;
        width: 90%;
    }

    .text4 {
        font-size: 3vw;
        width: 100%;
    }

    .icons-on-img-right {
        display: none;
    }

    .icons-on-img-center {
        display: flex;
        left: 5vw;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .default-course-item {
        min-height: auto;
    }
}

@media screen and (max-width:1000px) {
    .video-top-right {
        display: none; /* hide on smaller screens */
    }
}

@media screen and (max-width:450px) {
    .text1 {
        font-size: 3.5vw;
    }

    .text2, .text3 {
        font-size: 2.8vw;
    }
}