@charset "UTF-8";
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}
:root{
    --primary: #FFF;
    --secondary: #000;
    --gray: #f1e9e9;
    --txtColor: #002e63;

    --font75-55: calc(55px + (75 - 55) * ((100vw - 300px) / (1920 - 300)));
    --font64-50: calc(50px + (64 - 50) * ((100vw - 300px) / (1920 - 300)));
    --font36-30: calc(30px + (36 - 30) * ((100vw - 300px) / (1920 - 300)));
    --font32-28: calc(28px + (32 - 28) * ((100vw - 300px) / (1920 - 300)));
    --font24-20: calc(20px + (24 - 20) * ((100vw - 300px) / (1920 - 300)));
    --font20-16: calc(16px + (20 - 16) * ((100vw - 300px) / (1920 - 300)));
    --font20: 20px;
}

h1,
h2,
h3,
h4,
h5 {
    margin: 0;
}
body {
    color: var(--txtColor);
    font-size: var(--font20);
	line-height: 1.4;
    font-family: "Inter", serif; 
    overflow-x: hidden;
    font-weight: 400;
    margin: 0;
    position: relative;
}

a,
a:hover,
a:focus,
a:visited {
    outline: 0;
    text-decoration: none;
    -webkit-transition: all .4s linear;
    -moz-transition: all .4s linear;
    -o-transition: all .4s linear;
    -ms-transition: all .4s linear;
    transition: all .4s linear;
}

button::-moz-focus-inner {
    outline: 0;
}

ul li,
ol li {
    list-style-type: none;
    text-decoration: none;
}
nav {
    background-color: #012f63;
}

nav ul li a {
    color: var(--primary) !important;
    text-decoration: none;
    padding: 10px 15px;
    display: inline-block;
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
}

nav ul li a:hover {
    color: #fff !important;
    transform: scale(1.1);
}

nav ul li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a.active {
    color: #fff !important;
}

nav ul li a.active::after {
    width: 60%;
    height: 2px;
    margin: 0 auto;
    background-color: #fff;
}

.hero-banner {
    background-image: url('../images/background.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    object-fit: cover;
  }

.logo-img img {
    width: 30%;
    max-width: 300px;
}

.introsection {
    padding: 80px 0px;
}

h2.title {
    font-size: 60px;
    line-height: 1;
    font-weight: 600;
    margin-bottom: 18px;
    color: var(--txtColor);
}

img {
    width: 100%;
}

.info-img img{
    border-radius: 25px;
    object-fit: cover;
}

.sec-heading h3 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 20px;
}

#courses .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#courses .col-md-6,
#courses .col-lg-3 {
    padding: 10px;
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 300px;
    text-align: center;
    margin: 20px auto;
    width: 100%;
    height: 100%; /* Ensure cards stretch to fit content */
}

.card img {
    width: 100%;
    height: auto;
}

.card-body {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    font-size: 1.2em;
    margin: 10px 0;
}

.card-text {
    font-size: 1em;
    margin: 10px 0;
}

.card-link {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 0;
    display: block;
    margin-top: auto;
}

.card-link:hover {
    text-decoration: underline;
}


.contact-details p { margin: 5px 0; font-weight: 500; }


.footer {
    background-color: var(--txtColor);
    color: #fff;
    padding: 40px 0;
}

.footer-logo img {
    max-width: 150px;
    margin-bottom: 20px;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-nav li {
    margin: 0;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s, border-bottom 0.3s;
}

.footer-nav a:hover {
    color: #ffcc00; 
    border-bottom: 2px solid #ffcc00; 
}

.footer-rights {
    margin-top: 20px;
    font-size: 14px;
}

@media (max-width: 767px) {
    .footer-logo img {
        margin: 0 auto 20px;
    }
    .footer-nav {
        flex-direction: column;
    }
    .footer-nav li {
        margin: 10px 0;
    }
    .footer-rights {
        margin-top: 20px;
    }
}


@media (max-width: 767px) {
    #courses .row {
        flex-direction: column;
        align-items: center;
    }
    .card {
        margin-bottom: 20px; 
    }
}
