/* --- Global Styles for Entire --- */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6; /* background - Light gray */
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    padding: 20px 0;
}


/* --- Header and Nav --- */
header {
    background-color: #004c99; /* header color - Primary Blue */
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /*position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;*/
}
header .container {
    display: flex;
    justify-content: space-between; /* For auto align of nav buttons - push logo left, nav right */
    align-items: center;
    width: 100%;
    max-width: none;
    padding: 10px 0 5px 0px;
}

header h1 {
    margin: 0;
    font-size: 24px;
    white-space: nowrap;
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

header nav ul li a:hover,
header nav ul li a.active {
    background-color: #003366;
}

/* nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end; /* Align links to the right */
}
*/

nav ul li {
    margin-left: 20px;
    white-space: nowrap;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: #003366; /* Darker Blue on hover/active - for cursor */
}

/* --- Main Content Layout --- */
main {
    padding: 40px 0;
    flex-grow: 1;
}

section {
    background-color: white;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

h2 {
    color: #004c99; /* Primary Blue - for headings */
    border-bottom: 2px solid #004c99;
    padding-bottom: 5px;
    margin-top: 0;
}

/* --- Forms and Inputs --- */
form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

form input[type="text"],
form input[type="email"],
form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Include padding/border in object total width/height */
}

form textarea {
    resize: vertical;
    height: 100px;
}

form button {
    background-color: #ff6600; /* Form button color - Accent Orange */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: #cc5200; /* Darker orange on hover - for cursor */
}

section a {
    text-decoration: none;
}

section a:hover {
    text-decoration: underline;
}

/* --- Image and List Styling --- */
.service-list {
    list-style: disc;
    margin-left: 20px;
}

.university-card {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    display: flex;
    align-items: center;
}

.university-card img {
    max-width: 80px;
    height: auto;
    margin-right: 15px;
    border-radius: 4px;
}

/* --- Footer --- */
footer {
    background-color: #333; /* color - Dark gray */
    color: white;
    text-align: center;
    padding: 20px 0;
}

footer a {
    color: #ff6600; /* Orange links in footer - for Contact Us */
    text-decoration: none;
    margin: 0 5px;
}

footer a:hover {
    text-decoration: underline;
}

.social-icon {
    width: 20px;
    height: 20px;
    margin-right: 5px;
    vertical-align: middle;
}

.logo-top-for-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-top-for-title .logo {
    width: 45px;
    height: auto;
}


/* --- Side-by-Side Layout --- */
.side-by-side {
    display: flex;
    align-items: center; 
    gap: 20px;          
    flex-wrap: wrap;     
}

.side {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;          
    flex-wrap: wrap;     
}

.side-by-side img {
    flex: 1;          /* image as the first block */ 
    max-width: 100%;
    height: auto;
    display: block;      
}

.side-by-side-content {
    flex: 2;         /* Text as the second block */
}

.side-by-side2 {
    display: flex;
    align-items: center; 
    gap: 20px;          
    flex-wrap: wrap;     
}

.side-by-side2 img {
    flex: 2;          /* image as the second block */ 
    max-width: 100%;
    height: auto;
    display: block;      
}

.side-by-side-content2 {
    flex: 1;         /* Text as the first block */
}

/*
.facilities {
  display: flex;
  flex-wrap: wrap;
  padding: 0 4px;
}

.fac-column {
    flex: 50%;
    max-width: 50%;
    padding: 0 4px;
}

.fac-column img {
    margin-top: 8px;
    vertical-align: middle;
}
*/

/* --- MOBILE RESPONSIVENESS (Screens 768px and smaller) - <IS WORKING> experiment for mobile device, sticky header removed --- */
@media (max-width: 768px) {
    
 /* 1. Stack Header Elements/Parts */
    /*header .container {
        flex-direction: column;  comment out - Stack the logo (h1) and navigation (nav) vertically  
        align-items: flex-start;
        padding: 10px 5%;
        width: 100%;
        max-width: none;
    }*/

    header {
        padding: 10px 0 20px 0; /* add some bottom space - for alignment */
        background-color: #004c99; /* ensure color stays visible - extra part don't remove */
        /*position: relative;
        top: auto;*/
    }

    header .container {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        padding: 10px 5%;
    }

/* 2. Navigation Button Alignment */
    nav ul {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        margin-top: 10px;
    }

    nav ul li {
        margin: 5px 0;
        margin-left: 0;
        width: 100%;
    }
    
    nav ul li a {
        display: block;
    }

    /* 3. Adjust Main Content Padding */
    main {
        padding: 20px 0;
    }
    
    /* 4. University Card/Tag Layout Change (If you use this) */
    .university-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .university-card img {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    /* 5. Side-by-Side Layout */
    .side-by-side, .side-by-side2 {
        flex-direction: column; /* Stacks image on top of text on mobile */
    }

    .side-by-side p, .side-by-side2 p,
    .side-by-side-content, .side-by-side-content2 {
        width: 100%; /* Make everything full width on mobile */
        max-width: none;
    }
}

