/* Base Styles */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body,
html {
    font-family: Georgia, 'Times New Roman', Times, serif;
    background: #f0f3fa;
    overflow-x: hidden;
}

.width-100 {
    width: 100%;
}

.margin-top-30 {
    margin-top: 30px;
}

.margin-top-50 {
    margin-top: 50px;
}

.container {
    width: 100%;
    max-width: 1500px;
    padding: 0 15px;
    margin: 0 auto;
}

/* Navbar */
.navbar {
    background-color: #343a40 !important;
    padding: 15px 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.navbar-nav .nav-link {
    padding: 8px 15px;
    font-size: 1rem;
}

/* Carousel */
.slider-width {
    width: 100%;
    height: calc(100vh - 25vh);
    /* Reduced height */
    margin-bottom: 80px;
    overflow: hidden;
}

.carousel-item img {
    width: 100%;
    height: calc(100vh - 25vh);
    object-fit: cover;
    /* Ensures image covers the entire area */
    display: block;
}



/* About Section */
.about-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
    position: relative;
    text-align: center;
}

.section-title::after {
    content: "";
    width: 80px;
    height: 4px;
    background: #3498db;
    display: block;
    margin: 10px auto;
    border-radius: 2px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.02);
}

.about-content h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.about-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1rem;
}

.highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-5px);
}

.highlight-item i {
    font-size: 24px;
    color: #3498db;
}

.highlight-item span {
    font-weight: 500;
    color: #2c3e50;
}

/* Content Section */
.content-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 50px;
    gap: 20px;
}

.content-card {
    flex: 1 1 48%;
    min-width: 300px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    height: auto;
    min-height: 350px;
}

.content-card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.heading-sect {
    background: #34495e;
    color: #fff;
    padding: 10px;
    border-radius: 5px 5px 0 0;
    text-align: center;
}

.head-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: bold;
}

.welcome-text {
    font-size: 1rem;
    line-height: 1.8;
    margin-top: 10px;
    text-align: justify;
}

/* Latest Notices */
.latest-events {
    height: fit-content;
    overflow: hidden;
    position: relative;
}

.latest-events-ul {
    padding-left: 1rem;
}

.latest-events-ul li {
    list-style-type: none;
    border-bottom: 1px solid #ccc;
    padding: 8px 0;
}

/* Principal's Desk */
.principal-desk {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start; /* Ensures items align from the top */
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 60px;
    gap: 30px;
}


.principal-photo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1 1 200px;
}

.principal-photo {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.principal-name {
    font-size: 1.125rem;
    font-weight: bold;
    color: #4b4848;
    margin-top: 10px;
}

.principal-desk-content {
    flex: 2 1 60%;
}

.principal-desk-content h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #4b4848;
}

.principal-desk-content p {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
}

/* Mission & Vision */
.mission-vision-section {
    padding: 60px 20px;
    text-align: center;
    background: #f9f9f9;
}

.content-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.mission-box,
.vision-box {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    flex: 1 1 45%;
    min-width: 300px;
    text-align: left;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.mission-box h3,
.vision-box h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 700;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
}

.mission-box p,
.vision-box p {
    font-size: 1rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 20px;
}

.mission-box:hover,
.vision-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Courses */
.courses-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.courses-item {
    width: 200px;
    text-align: center;
    margin-bottom: 20px;
}

.courses-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
}

.course-name {
    font-size: 0.875rem;
    color: #4b4b4b;
    margin-top: 10px;
    font-weight: 500;
}

/* Key Stats */
.key-stats-section {
    background: #ecf0f1;
    padding: 60px 20px;
    text-align: center;
}

.stats-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.stat-box {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    flex: 1 1 200px;
    max-width: 250px;
    text-align: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.stat-box h3 {
    font-size: 2rem;
    color: #2980b9;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-box p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

.stat-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.15);
    background-color: #f9f9f9;
}

/* Recruiters */
.recruiter-slider {
    overflow: hidden;
    width: 100%;
    margin-top: 20px;
    position: relative;
}

.recruiter-track {
    display: flex;
    gap: 40px;
    animation: scrollLoop 30s linear infinite;
}

.recruiter-logo {
    flex: 0 0 auto;
    height: 80px;
    width: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recruiter-logo img {
    max-height: 70px;
    max-width: 100%;
    object-fit: contain;
}

@keyframes scrollLoop {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.recruiter-slider:hover .recruiter-track {
    animation-play-state: paused;
}

/* Footer */
footer {
    background-color: #343a40;
    color: white;
    padding: 30px 0;
    margin-top: 50px;
}

footer h5 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

footer p,
footer li {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.social-links a {
    color: white;
    margin-right: 15px;
    font-size: 1.2rem;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .about-content h3 {
        font-size: 1.3rem;
    }

    .principal-desk-content h2 {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image img {
        height: 350px;
    }

    .highlights {
        grid-template-columns: 1fr;
    }

    .mission-box,
    .vision-box {
        flex: 1 1 100%;
    }

    .courses-item {
        width: 180px;
    }

    .slider-width {
        width: 100%;
        height: 50vh;
        /* Reduced height */
        margin-bottom: 80px;
        overflow: hidden;
    }

    .carousel-item img {
        width: 100%;
        height: 50vh;
        object-fit: cover;
        /* Ensures image covers the entire area */
        display: block;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
    }

    .principal-desk {
        flex-direction: column;
        align-items: flex-start;
    }

    .principal-photo-container {
        align-items: flex-start;
    }

    .stat-box {
        max-width: 100%;
    }

    .courses-container {
        gap: 10px;
    }

    .courses-item {
        width: 100%;
    }

    .slider-width {
        width: 100%;
        height: 30vh;
        /* Reduced height */
        margin-bottom: 80px;
        overflow: hidden;
    }

    .carousel-item img {
        width: 100%;
        height: 30vh;
        object-fit: cover;
        /* Ensures image covers the entire area */
        display: block;
    }
}
