﻿/* ==========================================================================
   1. Core Resets & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    padding: 20px;
    display: flex;
    justify-content: center;
}

/* Main Container Wrapper */
.container {
    width: 100%;
    max-width: 1200px;
    background-color: #ffffff;
    border: 2px solid #ffffff;
    display: flex;
    flex-direction: column;
}

/* Helper Shared Styles for Wireframe Look */
.header, .nav-menu, .image-slider, .message-box, .grid-item, .staff-slider, .about-university {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px;
    font-size: 16px;
    color: #000000;
}

/* ==========================================================================
   2. Header Section Styles
   ========================================================================== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: #ffffff;
    border-bottom: 2px solid #ffffff;
    font-family: Arial, sans-serif;
}

.leftheader {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.logo {
    max-height: 80px;
    width: auto;
}

.centerheader {
    flex: 2;
    display: flex;
    justify-content: center;
    text-align: center;
}

.centerheader table {
    border-collapse: collapse;
    margin: 0 auto;
}

.centerheader td {
    padding: 3px 0;
}

.lblheader1 {
    font-size: 24px;
    font-weight: bold;
    color: #1a365d;
    letter-spacing: 1px;
}

.lblheader2 {
    font-size: 14px;
    color: #4a5568;
    font-weight: 500;
    display: block;
}

.rightheader {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.rightheader table td {
    padding: 0 8px;
}

.icon {
    width: 32px;
    height: 32px;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.icon:hover {
    transform: scale(1.1);
}

/* ==========================================================================
   3. Navigation & Upper Containers Layouts
   ========================================================================== */
.nav-menu {
    height: 50px;
    border-bottom: 2px solid #ffffff;
    background-color: #f1f1f1;
}

.slider-message-container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    border-bottom: 2px solid #ffffff;
}

.image-slider {
    min-height: 200px;
    border-right: 2px solid #ffffff;
}

.message-sidebar {
    display: flex;
    flex-direction: column;
}

.message-sidebar .message-box {
    flex: 1;
}

.message-sidebar .message-box:not(:last-child) {
    border-bottom: 1px solid #ffffff;
}

.staff-about-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    border-bottom: 2px solid #ffffff;
}

.staff-slider {
    min-height: 180px;
    border-right: 2px solid #ffffff;
}

.about-university {
    min-height: 180px;
}

/* ==========================================================================
   4. Generic 4-Column Responsive Grid (Inherited & Applied to Footer)
   ========================================================================== */
.four-col-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 15px;
    background-color: #44bbc2; /* aqua gray background from image */
    color: #ffffff;
}

.four-col-grid .grid-item {
    min-height: 120px;
    display: block; /* Overriding default center flex for layout alignment */
    text-align: left;
    padding: 10px;
}

.container > .four-col-grid:last-child {
    border-bottom: none;
}

/* ==========================================================================
   5. Custom Footer Inside Components Styles
   ========================================================================== */
.footer-title {
    background-color: #fef08a; /* Yellow label banner */
    color: #000000;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 20px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-img {
    width: 100%;
    max-height: 150px;
    object-fit: cover;
    border: 2px solid #ffffff;
    margin-bottom: 12px;
}

.footer-subtitle {
    font-weight: bold;
    font-size: 13px;
    margin: 10px 0;
    color: #ffffff;
}

.course-list {
    list-style: none;
    padding: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #ffffff;
}

.vertical-menu {
    display: flex;
    flex-direction: column;
}

.vertical-menu a {
    background-color: #cbd5e1; /* Gray items background */
    color: #000000 !important;
    text-decoration: none;
    text-align: center;
    padding: 8px;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #788896;
}

.vertical-menu a:hover {
    background-color: #94a3b8;
}

.enquiry-form {
    background-color: #cbd5e1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-radius: 2px;
}

.enquiry-form input, 
.enquiry-form textarea {
    width: 100%;
    padding: 6px;
    border: 1px solid #94a3b8;
    font-size: 13px;
    color: #000000;
}

.btn-send {
    background-color: #ffffff !important;
    color: #000000 !important;
    font-weight: bold;
    border: 1px solid #000000 !important;
    padding: 5px 15px !important;
    align-self: center;
    margin-top: 10px;
    cursor: pointer;
    width: auto !important;
}

.location-details {
    font-size: 14px;
    line-height: 1.6;
    color: #ffffff;
}

.location-details .address {
    margin-bottom: 25px;
    font-weight: 500;
}

.location-details .contact-info {
    margin-top: 15px;
}

.location-details a {
    color: #ffffff;
    text-decoration: underline;
}

/* ==========================================================================
   6. Global Media Queries (Responsive Styling)
   ========================================================================== */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .leftheader, .centerheader, .rightheader {
        justify-content: center;
        flex: none;
        width: 100%;
    }

    .slider-message-container, 
    .staff-about-container {
        grid-template-columns: 1fr;
    }
    
    .four-col-grid {
        grid-template-columns: 1fr; /* Automatically stacks grid items into 1 full column */
        gap: 25px;
    }
    
    .image-slider, .staff-slider {
        border-right: none;
        border-bottom: 2px solid #000000;
    }
}

@media (max-width: 480px) {
    body {
        padding: 5px;
    }
}