/* --- 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 */
}

/* --- Fee Structure Page Styles --- */

.fee-structure-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 65px 25px; /* Added top/bottom padding for the border */
    text-align: center;
    position: relative; /* CRITICAL: For positioning the pseudo-elements */
    overflow: hidden; /* Ensures borders stay within rounded corners */

    
}

/* --- Top Border Image for Fee Structure Section --- */
.fee-structure-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15px; /* <--- ADJUST THIS: Height of your top border image strip */
    background-image: url('#'); /* <--- 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 Fee Structure Section --- */
.fee-structure-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15px; /* <--- ADJUST THIS: Height of your bottom border image strip */
    background-image: url('#'); /* <--- 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 */
.fee-structure-wrapper > * {
    position: relative;
    z-index: 2;
}

.fee-structure-wrapper .page-title {
    font-family: 'Arial', sans-serif;
    font-size: 2.5em;
    color: #e1e1e1;
    margin-bottom: 30px;
}

.fee-cards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.fee-card {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.class-title {
    font-family: 'Roboto', sans-serif;
    font-size: 1.2em;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.fee-details {
    margin-bottom: 20px;
    text-align: left;
    flex-grow: 1;
}

.fee-item {
    margin-bottom: 10px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1em;
    line-height: 1.4;
}

.fee-label {
    font-weight: bold;
    color: #555;
    font-size: 0.8em;
}

.fee-amount {
    float: right;
    font-weight: bold;
    color: #007bff;
    font-size: 0.7em;
}

.fee-button {
    display: block;
    padding: 10px 18px;
    background: linear-gradient(to right, #4b6cb7, #182848);
    color: #fff;
    text-decoration: none;
    font-family: 'Open Sans', sans-serif;
    font-weight: bold;
    font-size: 0.8em;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.fee-button:hover {
    background-color: #0056b3;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .fee-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .fee-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .class-title {
        font-size: 1.3em;
    }
}

@media (max-width: 480px) {
    .fee-structure-wrapper .page-title{
        font-size: 1.5em;
    }
    .fee-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .fee-card {
        padding: 20px;
    }
    .class-title {
        font-size: 0.8em;
    }
    .fee-amount{
        font-size: 0.6em;
    }
    .fee-label{
        font-size: 0.6em;
    }
    .fee-button{
        padding: 8px 12px;
        font-size: 0.6em;
    }
}