/* Basic Reset and Variables */
:root {
    --primary-color: #004a99; /* Deep Blue - Professional look */
    --accent-color: #ff9900; /* Orange/Gold - Used for CTAs */
    --text-color: #333;
    --light-bg: #f4f7f6;
    --font-family: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}
h2 {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
}
a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s;
}
a:hover {
    color: var(--accent-color);
}

/* Buttons (Call-to-Action) */
.cta-primary, .cta-button, .view-all-button {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--accent-color);
    color: white !important;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.cta-primary:hover, .cta-button:hover, .view-all-button:hover {
    background-color: #e68a00; /* Slightly darker orange */
}

/* --- Header & Navigation --- */
.main-header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky; /* Sticky Header */
    top: 0;
    z-index: 1000;
}

.logo a {
    /* Logo fix: Use Flexbox to stack the name and unit vertically */
    display: flex; 
    flex-direction: column; 
    line-height: 1.1; 
    text-align: left;
    color: var(--primary-color);
    font-weight: 800;
}

.school-name-main {
    font-size: 1.8em; /* Main name is large and prominent */
    font-weight: 900;
    color: var(--primary-color);
    display: block;
    white-space: nowrap; /* PREVENTS WORD WRAPPING on the main school name */
}

.school-name-sub {
    font-size: 0.8em; /* Sub-text is smaller and subtle */
    font-weight: 400;
    color: #666;
    margin-top: 2px;
    display: block;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.main-nav a {
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

/* --- Hero Slider Section --- */
.hero-slider {
    position: relative;
    height: 60vh; /* Viewport Height for a modern full-bleed look */
    overflow: hidden;
}

.slider-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.slide::after { /* Dark overlay for text readability */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.slide-content {
    z-index: 10;
    color: white;
    max-width: 800px;
    padding: 20px;
}

.slide-content h1 {
    font-size: 3.5em;
    margin-bottom: 15px;
}

.slide-content p {
    font-size: 1.5em;
    margin-bottom: 30px;
    font-weight: 300;
}

.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    z-index: 20;
    font-size: 1.5em;
    border-radius: 5px;
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

.dots-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 10px;
}

.dot {
    height: 12px;
    width: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: white;
}

/* --- Quick Links / CTAs --- */
.quick-links {
    padding: 50px 0;
    background-color: var(--light-bg);
}

.quick-links .container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.link-card {
    flex-basis: 32%;
    background-color: white;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.link-card i {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.link-card h3 {
    font-size: 1.2em;
    color: var(--text-color);
}

/* --- ETHOS SECTION STYLES --- */
.ethos-section {
    padding: 80px 0;
    background-color: #ffffff;
}

/* Centered Layout styles restored, with size reduction */
.chairman-photo {
    text-align: center;
    margin: 0 auto 40px auto; 
    max-width: 300px; /* Reduced container size */
    padding: 15px; /* Reduced padding */
    background-color: var(--light-bg); 
    border-radius: 8px; 
}

.chairman-photo img {
    /* Significantly reduced image size */
    max-width: 200px; 
    width: 100%; 
    height: auto; 
    border-radius: 5px; 
    border: 3px solid var(--primary-color); 
    box-shadow: 0 4px 10px rgba(0,0,0,0.15); 
    object-fit: cover; 
    display: block; 
    margin: 0 auto 10px auto; 
}

.photo-caption {
    margin-top: 0; 
    font-size: 1em; /* Reduced caption size */
    color: var(--primary-color);
    font-weight: 700;
}
/* End Centered Layout styles */

.ethos-content {
    display: flex;
    gap: 40px;
    margin-top: 20px;
}

.ethos-column {
    flex: 1;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.ethos-column h3 {
    color: var(--accent-color);
    font-size: 1.8em;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 5px;
}

.ethos-column p {
    margin-bottom: 20px;
}

.ethos-column ul {
    list-style: none;
    padding-left: 0;
}

.ethos-column ul li {
    background: var(--light-bg);
    margin-bottom: 10px;
    padding: 10px;
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
}

/* --- School Blog Section --- */
.blog-section {
    padding: 80px 0;
    background-color: var(--light-bg); 
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.blog-post {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
    background-color: white; 
}

.blog-post:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.blog-post img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-post h3 {
    padding: 15px 15px 0;
    font-size: 1.4em;
    color: var(--primary-color);
}

.blog-post p {
    padding: 10px 15px;
}

.blog-post a {
    display: block;
    padding: 0 15px 15px;
    font-weight: 500;
}

.view-all-button {
    display: block;
    width: 250px;
    margin: 0 auto;
    text-align: center;
}

/* --- School Gallery Section --- */
.gallery-section {
    padding: 80px 0;
    background-color: #ffffff;
    text-align: center;
}

.gallery-section h2 {
    padding-top: 0;
}

.gallery-section p {
    margin-bottom: 40px;
    font-size: 1.1em;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 5px;
    transition: transform 0.3s;
}

.gallery-item img:hover {
    transform: scale(1.05);
    opacity: 0.9;
}


/* --- Footer --- */
.main-footer {
    background-color: var(--primary-color);
    color: white;
    padding-top: 50px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.footer-col {
    flex-basis: 30%;
}

.footer-col h3 {
    font-size: 1.4em;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-col p {
    margin-bottom: 10px;
}

.footer-col ul {
    list-style: none;
    padding-left: 0;
}

.footer-col a {
    color: white;
    display: block;
    margin-bottom: 8px;
}

.footer-col a:hover {
    color: var(--accent-color);
}

.social-icons a {
    font-size: 1.5em;
    margin-right: 15px;
}

.copyright {
    text-align: center;
    padding: 15px 0;
    background-color: #003874; /* Darker primary color */
    font-size: 0.9em;
}

/* --- Media Queries (Responsiveness) --- */
@media (max-width: 900px) {
    .main-nav ul {
        gap: 15px;
    }
    .slide-content h1 {
        font-size: 2.5em;
    }
    .ethos-content { 
        flex-direction: column;
    }
    .footer-grid {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .main-header {
        flex-direction: column;
    }
    .main-nav ul {
        margin-top: 10px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .hero-slider {
        height: 40vh;
    }
    .slide-content h1 {
        font-size: 2em;
    }
    .slide-content p {
        font-size: 1.1em;
    }
    .quick-links .container {
        flex-direction: column;
    }
    .link-card {
        margin-bottom: 15px;
    }
    h2 {
        font-size: 2em;
    }
    .chairman-photo {
        max-width: 100%;
        padding: 10px;
    }
    .chairman-photo img { 
        max-width: 150px; /* Reduced further for mobile */
    }
}