/* --- General Body and Typography (Example) --- */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    color: #333;
    background-color: #fff;
}

h1, h2, h3 {
    color: #2c3e50; /* Dark blue for headings */
}

/* --- Header --- */
header {
    display: flex;
    align-items: center;
    padding: 15px 30px; /* Increased padding */
    background-color: #f8f9fa; /* Light grey background */
    border-bottom: 2px solid #e0e0e0; /* Slightly thicker border */
    /* Centering header content if page is very wide */
    max-width: 1400px;
    margin: 0 auto;
}

header .logo {
    height: 70px; /* Slightly larger logo */
    margin-right: 25px;
}

header .school-title h1 {
    margin: 0;
    font-size: 1.9em; /* Slightly larger */
    color: #1a5276; /* Deeper blue */
}

header .school-title h2 {
    margin: 0;
    font-size: 1.2em; /* Slightly larger */
    color: #566573; /* Muted grey-blue */
    font-weight: normal;
}



/* --- Banner Section --- */
.banner {
    width: 100%; /* Banner container takes full available width */
}

.banner img {
    width: 100%;      /* Make the image take the full width of its parent (.banner section) */
    height: auto;     /* THIS IS KEY: Height will adjust to maintain the image's original aspect ratio,
                         ensuring the full image is visible and not cut. */
    display: block;   /* Good practice: removes extra space below image and allows margin control */
    /* REMOVE or COMMENT OUT the following lines if they exist: */
    /* max-height: 450px; */
    /* object-fit: cover; */
}

/* --- Main Content Area --- */
main {
    max-width: 1200px; /* Constrain width of main content */
    margin: 20px auto; /* Center main content and add top/bottom margin */
    padding: 0 20px;   /* Padding inside the main container */
}

/* --- Combined About Us and Visual Section --- */
#about-us-visual {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
    align-items: flex-start; /* Align items to the top of the flex container */
    gap: 30px;         /* Space between the text and image columns */
    margin-bottom: 40px; /* Space below this combined section */
    padding: 20px 0; /* Padding for the section */
    border-bottom: 1px solid #eee; /* Separator line */
}

.about-text-content {
    flex: 1 1 55%; /* Text takes ~55% of the space, adjust as needed */
    min-width: 300px; /* Prevent text column from becoming too narrow before wrapping */
}

.about-text-content h2 {
    margin-top: 0;
    font-size: 2.2em; /* Prominent heading */
    color: #1a5276;
    margin-bottom: 15px;
}

.about-text-content p {
    font-size: 1.05em;
    line-height: 1.7;
    color: #555;
}

.about-image-content {
    flex: 1 1 40%; /* Image takes ~40% of the space */
    min-width: 280px; /* Prevent image column from becoming too narrow */
    display: flex;
    align-items: center; /* Vertically center image if it's shorter than text */
    justify-content: center; /* Center image if it doesn't fill its flex item width */
}

.about-image-content img {
    max-width: 100%;    /* Image is responsive within its container */
    height: auto;       /* Maintain aspect ratio */
    border-radius: 12px; /* Softer rounded corners */
    box-shadow: 0 8px 16px rgba(0,0,0,0.15); /* More pronounced shadow */
}

/* --- Programs Offered & Core Subjects Sections --- */
#courses-offered, #curriculum-map-courses {
    padding: 30px 0;
    margin-bottom: 30px;
}

#courses-offered h2, #curriculum-map-courses h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 30px;
    color: #1a5276;
}

.course-category {
    margin-bottom: 25px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.course-category h3 {
    font-size: 1.5em;
    color: #2980b9; /* Brighter blue for subheadings */
    margin-top: 0;
    margin-bottom: 10px;
}

.course-category ul {
    list-style: none;
    padding-left: 0;
}

.course-category li {
    padding: 8px 0;
    border-bottom: 1px dotted #ddd;
}
.course-category li:last-child {
    border-bottom: none;
}

.clickable-course {
    font-weight: bold;
    color: #2980b9;
    text-decoration: none;
}
.clickable-course:hover {
    text-decoration: underline;
    color: #1f618d;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.curriculum-course {
    background-color: #eaf2f8; /* Light blue background */
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    color: #2c3e50;
    box-shadow: 0 2px 4px rgba(0,0,0,0.07);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.curriculum-course:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}


/* --- Footer --- */
footer {
    background-color: #2c3e50; /* Darker footer background */
    color: #ecf0f1; /* Lighter text color for footer */
    text-align: center;
    padding: 40px 20px;
    font-size: 0.95em;
}

footer p {
    margin: 10px 0;
}

footer a {
    color: #3498db; /* Bright blue for links in footer */
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
    color: #5dade2;
}


/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    header .logo {
        margin-bottom: 10px;
        margin-right: 0;
    }

    #about-us-visual {
        flex-direction: column; /* Stack text and image vertically */
        align-items: center;    /* Center items when stacked */
    }

    .about-text-content,
    .about-image-content {
        flex-basis: 100%; /* Each item takes full width when stacked */
        width: 95%;      /* Ensure full width within the centered container */
        text-align: center; /* Center the text in the text block */
    }

    .about-text-content h2 {
        font-size: 1.8em;
    }
    .about-text-content p {
        text-align: left; /* Or justify for paragraphs */
        font-size: 1em;
    }

    .about-image-content {
        margin-top: 25px; /* Add some space above the image when stacked */
    }

    #courses-offered h2, #curriculum-map-courses h2 {
        font-size: 1.7em;
    }
}


#vision-mission {
  display: flex;
  justify-content: space-between;
  gap: 30px; /* space between the cards */
  padding: 40px 5%; /* padding on the top/bottom and sides */
  background-color: #f4f4f9; /* A light background to separate the section */
}

.pvm-item {
  flex: 1; /* Allows each item to grow and shrink equally */
  background: #ffffff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  min-width: 250px; /* Prevents items from becoming too narrow */
}

.pvm-item h3 {
  margin-top: 0;
  color: #333; /* Dark color for the heading */
  font-size: 1.5em;
  border-bottom: 2px solid #e0e0e0; /* A light underline for the title */
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.pvm-item p {
  font-size: 1em;
  line-height: 1.7;
  color: #555; /* Slightly lighter text color for readability */
}

/* Media query for responsive design on smaller screens */
@media (max-width: 768px) {
  #vision-mission {
    flex-direction: column; /* Stack the items vertically */
    gap: 20px;
  }
}