/* --- About Us Page Specific Styles --- */
/* --- Full Page Background Image --- */
html, body {
    height: 100%; /* Ensures html and body fill the viewport height */
    margin: 0;
    padding: 0;
}

body {
    /* Set your full-page background image here */
    background-image: url('https://nibeditapublicschool.com/wp-content/uploads/2025/08/full-site-bg.jpg'); /* <--- REPLACE THIS WITH YOUR IMAGE URL */
    background-size: contain; /* Ensures the image covers the entire viewport */
    background-position: center center; /* Centers the image */
    background-repeat: repeat; /* Prevents the image from tiling */
    background-attachment: fixed; /* Makes the background fixed while content scrolls (parallax-like) */

    /* Optional: Fallback background color if image fails to load or for spaces around sections */
    background-color: #0f0f0f; /* A light grey fallback */

    /* Ensure content doesn't get hidden behind any fixed backgrounds or margins */
    overflow-x: hidden; /* Prevents horizontal scrollbar if elements slightly exceed width */
}
/* --- School Intro Section (Single Column) --- */
.school-intro-section {
    max-width: 1200px; /* Adjust width as needed for single column */
    margin: 20px auto;
    padding: 0 15px; /* Padding for border images and content */
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-radius: 8px;

    /* Removed: display: flex; flex-wrap; align-items; justify-content; gap; */
    text-align: center; /* Center content within the section */

    position: relative; /* For pseudo-element borders */
    overflow: hidden; /* Ensures borders stay within rounded corners */
}

/* --- Top Border Image for School Intro Section --- */
.school-intro-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15px; /* <--- ADJUST THIS: Height of your top border image strip */
    /*background-image: url('http://nps-bhatli.local/wp-content/uploads/2025/07/slider-border-image-top.png'); /* <--- REPLACE: Your actual pattern image URL */
    background-size: auto 100%;
    background-repeat: repeat-x;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    z-index: 1;
}

/* --- Bottom Border Image for School Intro Section --- */
.school-intro-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 25px; /* <--- ADJUST THIS: Height of your bottom border image strip */
    background-image: url('https://nibeditapublicschool.com/wp-content/uploads/2025/07/slider-border-image-bottom.png'); /* <--- REPLACE: Your actual pattern image URL */
    background-size: auto 100%;
    background-repeat: repeat-x;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    z-index: 1;
}

/* Ensure content is above the pseudo-elements */
.school-intro-section > * { /* Target direct children of the section */
    position: relative;
    z-index: 2;
}


.intro-school-logo {
    max-width: 300px; /* Adjust logo size */
    height: auto;
    margin: 0 auto 0 auto; /* Center and add space below */
    display: block; /* Ensures margin auto works */
}

.school-intro-section p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.2em;
    color: #555;
    line-height: 1.7;
    margin:20px 20px 20px 20px; /* Space between paragraphs */
    text-align: justify; /* Justify text for readability */
    padding:10px 10px 20px 10px; /* Add some horizontal padding to text */
}

.intro-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin: 10px auto 0 auto; /* Add space above and center */
    display: block; /* Ensures margin auto works */
}

/* --- Responsive Adjustments for School Intro Section --- */
@media (max-width: 992px) {
    .school-intro-section {
        padding: 55px 20px;
    }
}

@media (max-width: 768px) {
    .school-intro-section {
        padding: 45px 15px;
    }
    .intro-school-logo {
        max-width: 150px;
    }
    .school-intro-section p {
        font-size: 0.95em;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .school-intro-section {
        padding: 5px 10px;
    }
    .intro-school-logo {
        max-width: 120px;
    }
    .school-intro-section p {
        font-size: 0.9em;
        padding: 0; /* Remove padding on very small screens if it makes text too narrow */
    }
}

/* --- Keep the rest of your MVV section styles unchanged below this --- */

/* Mission, Vision, Values Cards Section */
.mvv-cards-section {
    max-width: 1200px; /* Consistent with other sections, adjust as needed */
    margin: 40px auto;
    padding: 35px 25px; /* Padding for border images and content */
    background-color: #fcfcfc; /* Lighter background */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-radius: 8px;

    position: relative; /* For pseudo-element borders */
    overflow: hidden;
    text-align: center;
}

/* --- Border Images for MVV Cards Section --- */
.mvv-cards-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 25px; /* <--- ADJUST THIS: Height of your top border image strip */
    background-image: url('https://nibeditapublicschool.com/wp-content/uploads/2025/07/slider-border-image-top.png'); /* <--- REPLACE: Your actual pattern image URL */
    background-size: auto 100%;
    background-repeat: repeat-x;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    z-index: 1;
}

.mvv-cards-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 25px; /* <--- ADJUST THIS: Height of your bottom border image strip */
    background-image: url('https://nibeditapublicschool.com/wp-content/uploads/2025/07/slider-border-image-bottom.png'); /* <--- REPLACE: Your actual pattern image URL */
    background-size: auto 100%;
    background-repeat: repeat-x;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    z-index: 1;
}

/* Section Heading for MVV */
.mvv-cards-section h2 {
    font-family: 'Arial', sans-serif;
    font-size: 2.2em;
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    display: inline-block;
    position: relative;
    z-index: 2;
}

/* Grid for MVV Cards */
.mvv-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns for desktop */
    gap: 30px; /* Space between cards */
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

/* Individual MVV Card */
.mvv-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mvv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.mvv-card h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.6em;
    color: #007bff; /* A primary color */
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid #007bff; /* Underline effect */
    padding-bottom: 8px;
    display: inline-block; /* Makes border-bottom only as wide as text */
}

.mvv-card .card-content {
    font-family: 'Open Sans', sans-serif;
    font-size: 1em;
    color: #555;
    line-height: 1.6;
}

.mvv-card .card-content p {
    margin-bottom: 1em; /* Space between paragraphs in card content */
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .about-hero-section {
        height: 350px;
    }
    .about-hero-section h1 {
        font-size: 3em;
    }
    .about-hero-section p {
        font-size: 1.2em;
    }
    .mvv-cards-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
        gap: 25px;
    }
    .mvv-cards-section, .about-us-content-section {
        margin: 30px auto;
        padding: 55px 20px;
    }
    .mvv-cards-section h2 {
        font-size: 2em;
    }
    .mvv-card h3 {
        font-size: 1.4em;
    }
    .mvv-card .card-content {
        font-size: 0.95em;
    }
}

@media (max-width: 768px) {
    .about-hero-section {
        height: 300px;
    }
    .about-hero-section h1 {
        font-size: 2.5em;
    }
    .about-hero-section p {
        font-size: 1.1em;
    }
    .mvv-cards-grid {
        grid-template-columns: 1fr; /* Single column on smaller tablets/mobiles */
        gap: 20px;
    }
    .mvv-cards-section, .about-us-content-section {
        margin: 25px auto;
        padding: 45px 15px;
    }
    .mvv-cards-section h2 {
        font-size: 1.8em;
    }
    .mvv-card h3 {
        font-size: 1.3em;
    }
    .mvv-card .card-content {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .about-hero-section {
        height: 250px;
    }
    .about-hero-section h1 {
        font-size: 2em;
    }
    .about-hero-section p {
        font-size: 1em;
    }
    .mvv-cards-section, .about-us-content-section {
        margin: 20px auto;
        padding: 35px 10px;
    }
    .mvv-cards-section h2 {
        font-size: 1.6em;
    }
    .mvv-card h3 {
        font-size: 1.2em;
    }
    .mvv-card .card-content {
        font-size: 0.85em;
    }
}