/*
Front Page Specific Styles - Slider
*/
/* --- 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 */
     /*background: linear-gradient(to right, #141e30, #243b55); */

    /* Ensure content doesn't get hidden behind any fixed backgrounds or margins */
    overflow-x: hidden; /* Prevents horizontal scrollbar if elements slightly exceed width */
}
.image-slider {
    position: relative;
    width: 100%;
    max-width: 1400px; /* Adjust max width as needed */
    margin: 0 auto 40px auto; /* Center the slider and add bottom margin */
    overflow: hidden; /* Hide overflowing slides */
    border-radius: 8px; /* Rounded corners for the slider container */
    background-color: #f0f0f0; /* Placeholder background */
    /* --- NEW 3D BOX-SHADOW EFFECT --- */
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3), /* Main shadow for depth */
        0 -5px 10px rgba(0, 0, 0, 0.1), /* Subtle top shadow for "lift" */
        10px 10px 20px rgba(0, 0, 0, 0.15), /* Right-bottom shadow */
        -10px 10px 20px rgba(0, 0, 0, 0.15); /* Left-bottom shadow */

    /* --- ADDED FOR TOP & BOTTOM BORDERS --- */
    padding-top: 15px;    /* Space for 15px border + 20px internal padding */
    padding-bottom: 15px; /* Space for 15px border + 20px internal padding */
}

/* --- Top Border Image for IMAGE SLIDER --- */
.image-slider::before {
    content: ''; /* Required for pseudo-elements */
    position: absolute; /* Position relative to .image-slider */
    top: 0;
    left: 0;
    width: 100%;
    height: 25px; /* <--- ADJUST THIS: Height of your top border image strip (e.g., 15px) */
    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%; /* Scales image height to fit pseudo-element, width auto */
    background-repeat: repeat-x; /* Repeats horizontally */
    border-top-left-radius: 8px; /* Matches .image-slider's border-radius */
    border-top-right-radius: 8px; /* Matches .image-slider's border-radius */
    z-index: 1; /* Ensure it's above background, below slider content */
}

/* --- Bottom Border Image for IMAGE SLIDER --- */
.image-slider::after {
    content: ''; /* Required for pseudo-elements */
    position: absolute; /* Position relative to .image-slider */
    bottom: 0;
    left: 0;
    width: 100%;
    height: 25px; /* <--- ADJUST THIS: Height of your bottom border image strip (e.g., 15px) */
    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%; /* Scales image height to fit pseudo-element, width auto */
    background-repeat: repeat-x; /* Repeats horizontally */
    border-bottom-left-radius: 8px; /* Matches .image-slider's border-radius */
    border-bottom-right-radius: 8px; /* Matches .image-slider's border-radius */
    z-index: 1; /* Ensure it's above background, below slider content */
}

.slides-container {
    display: flex;
    width: 100%;
    height: 500px; /* Fixed height for the slider, adjust as needed */
    position: relative;
}

.slide {
    min-width: 100%; /* Each slide takes full width of container */
    height: 100%;
    display: none; /* Hidden by default */
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out; /* Fade transition */
    background-color: #eee; /* Fallback background */
    display: flex; /* For caption positioning */
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.slide.active {
    display: block; /* Show active slide */
    opacity: 1;
    position: relative; /* Bring active slide into flow for layout */
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the slide area, cropping if necessary */
    display: block;
    border-radius: 8px; /* Match container border-radius */
}

/* Responsive adjustments for slider */
@media (max-width: 768px) {
    .slides-container {
        height: 260px; /* Smaller height for mobile */
        width: 100%;
    }
}

@media (max-width: 480px) {
    .slides-container {
        height: 200px; /* Even smaller height for very small screens */
    }
}

/* --- Notice Board Section (Horizontal Auto-Scrolling) - Smaller Trending News Style --- */
.notice-board-section {
    background: #954C2E;
    padding: 25px; /* Reduced padding */
    border-radius: 8px; /* Slightly less rounded */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); /* Lighter shadow */
    /*border-top: 5px solid #d75f09; /* Thinner accent border */

    max-width: 1200px; /* Reduced max width for the section */
    margin: 30px auto; /* Reduced margins */
    box-sizing: border-box;
    text-align: center;
    /* --- NEW BACKGROUND IMAGE STYLES --- */
    /* IMPORTANT: Replace 'path/to/your/image.jpg' with the actual URL of your background image */
    background-image: url('https://nibeditapublicschool.com/wp-content/uploads/2025/07/empty-blackboard-1-scaled.jpg');
    background-size: cover; /* Ensures the image covers the entire section */
    background-position: center center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents image from repeating */
    position: relative; /* Needed for potential future z-index or pseudo-element overlay */

}

.notice-board-section h2 {
    font-family: 'Arial', sans-serif;
    font-size: 2em; /* Smaller heading */
    color: #FAF7F3;
    margin-top: 0;
    margin-bottom: 20px; /* Reduced margin */
    padding-bottom: 10px; /* Reduced padding */
    border-bottom: 1px solid #ddd; /* Thinner separator */
    display: inline-block;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px; /* Reduced letter spacing */
}

.notices-scroll-container {
    height: 300px; /* Significantly reduced height for the visible scrolling area */
    overflow: hidden;
    position: relative;
    background-color: transparent;
    /*border: 1px solid #e0e0e0;*/
    border-radius: 5px; /* Slightly less rounded */
    padding: 10px; /* Reduced padding */
    margin-bottom: 15px; /* Reduced space above "View All" button */
}

.notices-horizontal-list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    position: absolute;
    top: 10px; /* Adjust for new padding */
    left: 10px; /* Adjust for new padding */
    height: calc(100% - 20px); /* Fill container height minus new padding */
    will-change: transform;
    min-width: 100%;
    padding-right: 20px; /* Reduced padding for scroll effect */
}

.notice-item-horizontal {
    flex-shrink: 0;
    width: 260px; /* Significantly reduced width for each notice card */
    height: 100%;
    margin-right: 20px; /* Reduced space between cards */
    background-color: #FFF9E5;
    border: 1px solid #f0f0f0;
    border-radius: 5px; /* Slightly less rounded */
    padding: 18px; /* Reduced padding inside each card */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* Lighter shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    text-align: left;
    position: relative;

}

.notice-item-horizontal:hover {
    transform: translateY(-5px); /* Less pronounced lift effect */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Lighter shadow on hover */
    background-color: #fdfdfd;
}

.notice-item-horizontal h3 {
    font-family: 'Georgia', serif;
    font-size: 1.3em; /* Smaller headline */
    color: FAF7F3;
    margin-top: 0;
    margin-bottom: 8px; /* Reduced margin */
    line-height: 1.3;
}

.notice-item-horizontal h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.notice-item-horizontal h3 a:hover {
    color: #e74c3c;
}

.notice-item-horizontal .notice-date {
    font-family: 'Verdana', sans-serif;
    font-size: 0.8em; /* Smaller date font */
    color: #95a5a6;
    margin-bottom: 12px; /* Reduced margin */
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notice-item-horizontal p {
    font-family: 'Roboto', sans-serif;
    font-size: 0.9em; /* Smaller paragraph text */
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px; /* Reduced space before read more */
    flex-grow: 1;
}

.notice-item-horizontal .notice-read-more {
    align-self: flex-end;
    font-size: 0.8em; /* Smaller read more button text */
    color: #e74c3c;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease, transform 0.2s ease;
    margin-top: auto;
}

.notice-item-horizontal .notice-read-more:hover {
    text-decoration: underline;
    color: #c0392b;
    transform: translateX(2px); /* Less pronounced slide on hover */
}

/* "View All Notices" Button */
.view-all-notices {
    text-align: center;
    margin-top: 20px; /* Reduced space below the scrolling section */
}

.view-all-notices-button {
    display: inline-block;
    background: linear-gradient(to right, #4b6cb7, #182848);
    color: #fff;
    padding: 10px 20px; /* Smaller button */
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em; /* Smaller font for button */
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.view-all-notices-button:hover {
    background-color: #2980b9;
    transform: translateY(-1px); /* Less pronounced lift on hover */
}

/* --- Responsive Adjustments for Notice Board --- */
@media (max-width: 900px) {
    .notice-board-section {
        padding: 20px;
        margin: 25px auto;
        max-height: 300px;
        max-width: 100%; /* Adjust max width for section */
    }
    .notice-board-section h2 {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .notices-scroll-container {
        height: 280px; /* Adjusted height */
        padding: 8px;
    }
    .notices-horizontal-list {
        top: 8px;
        left: 8px;
        height: calc(100% - 16px);
    }
    .notice-item-horizontal {
        width: 240px; /* Adjusted card width */
        margin-right: 18px;
        padding: 15px;
    }
    .notice-item-horizontal h3 {
        font-size: 1.2em;
    }
    .notice-item-horizontal p {
        font-size: 0.85em;
    }
    .view-all-notices-button {
        padding: 8px 18px;
        font-size: 0.9em;
    }
}

@media (max-width: 768px) {
    .notice-board-section {
        padding: 15px;
        margin: 20px auto;
    }
    .notice-board-section h2 {
        font-size: 0.8em;
        padding-top: 2px;
        padding-bottom: 2px;

    }
    .notices-scroll-container {
        height: 180px; /* Adjusted height */
        padding: 4px;
    }
    .notices-horizontal-list {
        top: 4px;
        left: 6px;
        height: calc(100% - 8px);
    }
    .notice-item-horizontal {
        width: 180px; /* Adjusted card width */
        margin-right: 15px;
        padding: 12px;
    }
    .notice-item-horizontal h3 {
        font-size: 0.8em;
    }
    .notice-item-horizontal .notice-date {
        font-size: 0.45em;
    }
    .notice-item-horizontal p {
        font-size: 0.6em;
    }
    .notice-item-horizontal .notice-read-more {
    font-size: 0.6em; /* Smaller read more button text */
}
    .view-all-notices-button {
        padding: 6px 16px;
        font-size: 0.7em;
        
    }
}

@media (max-width: 480px) {
    .notice-board-section {
        padding: 10px;
        margin: 15px auto;
    }
    .notice-board-section h2 {
        font-size: 1em;
        margin-bottom: 12px;
    }
    .notices-scroll-container {
        height: 200px; /* Further adjusted height for mobile */
        padding: 5px;
    }
    .notices-horizontal-list {
        top: 5px;
        left: 5px;
        height: calc(100% - 5px);
    }
    .notice-item-horizontal {
        width: 60vw; /* Use viewport width for better fit on small screens */
        max-width: 160px; /* Cap width */
        margin-right: 10px;
        padding: 10px;
    }
    .notice-item-horizontal h3 {
        font-size: 0.8em;
    }
    .notice-item-horizontal p {
        font-size: 0.65em;
        line-height: 1.5;
    }
}


/* --- About Section --- */
.about-section {
    max-width: 1200px;
    margin: 40px auto;
    /* Adjust padding to account for the new "border" height, e.g., if border height is 15px: */
    padding: 65px 25px; /* Original 50px + 15px (border height) */
    background: #fefae0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-radius: 8px;

    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;

    position: relative; /* CRUCIAL: Enables absolute positioning of ::before and ::after */
    overflow: hidden; /* Ensures borders stay within the rounded corners if they slightly overlap */

    /* Remove these old border properties */
    /* border-width: 15px; */
    /* border-style: solid; */
    /* border-image: url('path/to/your/border-pattern.png') 30 round; */
}

/* --- NEW: Top Border Image using pseudo-element --- */
.about-section::before {
    content: ''; /* Required for pseudo-elements */
    position: absolute; /* Position relative to .about-section */
    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%; /* Scales image height to fit pseudo-element, width auto */
    background-repeat: repeat-x; /* Repeats horizontally */
    border-top-left-radius: 8px; /* Match main section's radius */
    border-top-right-radius: 8px; /* Match main section's radius */
    z-index: 1; /* Ensures it's above background, below content */
}

/* --- NEW: Bottom Border Image using pseudo-element --- */
.about-section::after {
    content: ''; /* Required for pseudo-elements */
    position: absolute; /* Position relative to .about-section */
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15px; /* <--- 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%; /* Scales image height to fit pseudo-element, width auto */
    background-repeat: repeat-x; /* Repeats horizontally */
    border-bottom-left-radius: 8px; /* Match main section's radius */
    border-bottom-right-radius: 8px; /* Match main section's radius */
    z-index: 1; /* Ensures it's above background, below content */
}

/* Ensure the content of the about section stays above these pseudo-elements */
.about-section .about-left,
.about-section .about-right {
    position: relative; /* Gives them a z-index context */
    z-index: 2; /* Higher than the pseudo-elements' z-index */
}

/* --- Keep the rest of your .about-section, .about-left, .about-right, etc. styles as is --- */

.about-left {
    flex: 1; /* Allows this column to grow and take available space */
    min-width: 300px; /* Ensures a minimum width before wrapping occurs */
    text-align: left; /* Align text within the left column */
}

.about-right {
    flex: 1; /* Allows this column to grow and take available space */
    min-width: 300px; /* Ensures a minimum width before wrapping occurs */
    text-align: center; /* Centers the image within its column */
}

.about-section .school-logo {
    max-width: 200px; /* Max width for the logo */
    height: auto;
    margin-bottom: 20px;
    display: block; /* Ensures margin works correctly */
}

.about-section h2 {
    font-family: 'Arial', sans-serif;
    font-size: 2.2em;
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.2;
}

.about-section p {
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
}

.about-section .cta-button {
    display: inline-block;
    background: linear-gradient(to right, #4b6cb7, #182848);
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95em;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.about-section .cta-button:hover {
    background-color: #c0392b; /* Darker on hover */
    transform: translateY(-2px);
}

.about-section .about-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px; /* Match section's border-radius */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for the image */
}

/* --- Responsive Adjustments for About Section --- */
@media (max-width: 768px) {
    .about-section {
        flex-direction: column; /* Stack columns vertically on smaller screens */
        padding: 40px 20px;
        margin: 30px auto;
        gap: 30px; /* Space between stacked items */
    }

    .about-left,
    .about-right {
        min-width: unset; /* Remove min-width constraint */
        width: 100%; /* Take full width when stacked */
        text-align: center; /* Center content when stacked */
    }

    .about-section .school-logo {
        margin: 0 auto 20px auto; /* Center logo when stacked */
    }
}

@media (max-width: 480px) {
    .about-section {
        padding: 30px 15px;
        margin: 20px auto;
        gap: 20px;
    }
    .about-section h2 {
        font-size: 1.2em;
    }
    .about-section p {
        font-size: 0.8em;
    }
    .about-section .cta-button {
        padding: 10px 20px;
        font-size: 0.6em;
    }
}

/* --- Courses Section --- */
.courses-section {
    max-width: 1200px; /* Adjust to match the width of your other main sections */
    margin: 40px auto; /* Spacing above and below */
    padding: 65px 25px; /* Adjusted padding-top/bottom for the 15px border height */
    background: #fefae0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* Subtle shadow for depth */
    border-radius: 8px; /* Rounded corners */

    position: relative; /* CRUCIAL: Enables absolute positioning of ::before and ::after */
    overflow: hidden; /* Ensures border images stay within the rounded corners */
}

/* --- Top Border Image for COURSES Section (Specific Styling) --- */
.courses-section::before {
    content: ''; /* Required for pseudo-elements */
    position: absolute; /* Position relative to .courses-section */
    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%; /* Scales image height to fit pseudo-element, width auto */
    background-repeat: repeat-x; /* Repeats horizontally */
    border-top-left-radius: 8px; /* Match main section's radius */
    border-top-right-radius: 8px; /* Match main section's radius */
    z-index: 1; /* Ensure it's above background, below content */
}

/* --- Bottom Border Image for COURSES Section (Specific Styling) --- */
.courses-section::after {
    content: ''; /* Required for pseudo-elements */
    position: absolute; /* Position relative to .courses-section */
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15px; /* <--- 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%; /* Scales image height to fit pseudo-element, width auto */
    background-repeat: repeat-x; /* Repeats horizontally */
    border-bottom-left-radius: 8px; /* Match main section's radius */
    border-bottom-right-radius: 8px; /* Match main section's radius */
    z-index: 1; /* Ensure it's above background, below content */
}

/* Section Heading */
.courses-section h2 {
    font-family: 'Arial', sans-serif;
    font-size: 2.2em;
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 30px; /* Space below heading */
    text-align: center;
    border-bottom: 1px solid #eee; /* Subtle underline effect */
    padding-bottom: 10px;
    display: inline-block; /* Allows border-bottom to fit content width */
    position: relative; /* Ensure heading is above pseudo-elements */
    z-index: 2;
}

/* Courses Grid Container */
.courses-grid {
    display: grid; /* Use CSS Grid for a robust column layout */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Responsive grid: at least 220px wide, max 1fr */
    gap: 25px; /* Space between grid items */
    justify-content: center; /* Center items if less than a full row */
    position: relative; /* Ensure grid is above pseudo-elements */
    z-index: 2;
}

/* Individual Course Card */
.course-card {
    background-color: #FAF9EE;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* Subtle card shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effects */
    display: flex; /* Use flexbox for vertical alignment within card */
    flex-direction: column; /* Stack contents vertically */
    justify-content: space-between; /* Push CTA button to bottom if content varies */
}

.course-card:hover {
    transform: translateY(-5px); /* Lift card on hover */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Enhanced shadow on hover */
}

/* Course Icon */
.course-icon, .course-icon-emoji {
    font-size: 2em; /* Large icon size */
    color: #3498db; /* Icon color (e.g., a blue accent) */
    margin-bottom: 15px;
    display: block; /* Ensure it takes its own line */
}

.course-icon-emoji {
    line-height: 1; /* Adjust line height for emojis to prevent extra spacing */
}

/* Course Title */
.course-card h3 {
    font-family: 'Georgia', serif; /* A more classic font for titles */
    font-size: 1.4em;
    color: #333;
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.3;
    text-align: center;
}

/* Course Description */
.course-card p {
    font-family: 'Roboto', sans-serif;
    font-size: 0.95em;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1; /* Allows paragraph to take available space */
}

/* Call-to-Action Button */
.course-cta-button {
    display: inline-block;
    background: linear-gradient(to right, #4b6cb7, #182848);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: auto; /* Pushes button to the bottom of the card */
}

.course-cta-button:hover {
    background-color: #c0392b; /* Darker on hover */
    transform: translateY(-2px); /* Slight lift on hover */
}

/* --- Responsive Adjustments for Courses Section --- */
@media (max-width: 900px) {
    .courses-section {
        padding: 40px 20px;
        margin: 30px auto;
    }
    .courses-section h2 {
        font-size: 2em;
        margin-bottom: 25px;
        
    }
    .courses-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Adjust grid for tablets */
        gap: 20px;
    }
    .course-card {
        padding: 18px;
    }
    .course-icon, .course-icon-emoji {
        font-size: 3em;
    }
    .course-card h3 {
        font-size: 1.3em;
    }
    .course-card p {
        font-size: 0.9em;
    }
    .course-cta-button {
        padding: 8px 18px;
        font-size: 0.85em;
    }
}

@media (max-width: 768px) {
    .courses-section {
        padding: 30px 15px;
        margin: 25px auto;
    }
    .courses-section h2 {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .courses-grid {
        grid-template-columns: repeat(2, 1fr); /* Two columns for most mobile sizes */
        gap: 15px;
    }
    .course-card {
        padding: 15px;
    }
    .course-icon, .course-icon-emoji {
        font-size: 2.8em;
    }
    .course-card h3 {
        font-size: 1.2em;
    }
    .course-card p {
        font-size: 0.85em;
    }
    .course-cta-button {
        padding: 8px 15px;
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .courses-section {
        padding: 20px 10px;
        margin: 20px auto;
    }
    .courses-section h2 {
        margin-top: 20px;
        font-size: 1.2em;
        margin-bottom: 15px;
    }
    .courses-grid {
        grid-template-columns: repeat(2, 1fr); /* STILL TWO COLUMNS: For consistent mobile layout */
        gap: 15px;
    }
    .course-icon, .course-icon-emoji {
        font-size: 1.5em;
    }
    .course-card h3 {
        font-size: 0.6em;
    }
    .course-card p {
        font-size: 0.6em;
    }
    .course-cta-button {
        padding: 8px 15px;
        font-size: 0.6em;
    }
}

/* --- Principal's Message Section --- */

.principal-message-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 65px 25px; /* Padding remains for top/bottom borders */
    /* Fallback background color if image cannot be loaded */
    background-color: #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-radius: 8px;

    text-align: center;
    position: relative;
    overflow: hidden;

    /* --- STATIC BACKGROUND IMAGE & OVERLAY --- */
    /* This layers a semi-transparent black gradient OVER your image */
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://nibeditapublicschool.com/wp-content/uploads/2025/07/empty-blackboard-1-scaled.jpg'); /* <--- REPLACE THIS PATH */
    background-size: cover; /* Ensures the image covers the entire section */
    background-position: center center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents image from repeating */
    /* background-attachment: fixed; /* Uncomment for a parallax scrolling effect */
}

/* --- Top Border Image for PRINCIPAL'S MESSAGE Section (Specific Styling) --- */
.principal-message-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('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;
}

/* --- Bottom Border Image for PRINCIPAL'S MESSAGE Section (Specific Styling) --- */
.principal-message-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15px; /* <--- 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 */
.principal-message-section .principal-content {
    position: relative;
    z-index: 2;
}

/* Adjust text colors for readability over a potentially dark background image */
.principal-message-section .principal-name {
    font-family: 'Georgia', serif;
    font-size: 1.8em;
    color: #ffffff; /* White text for name */
    margin-top: 0;
    margin-bottom: 15px;
}

.principal-message-section .principal-message-text {
    max-width: 900px;
    margin: 0 auto;
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
    color: #f0f0f0; /* Slightly off-white for message */
    line-height: 1.7;
    text-align: justify;
}

/* Keep the principal-photo styles the same, or adjust border color if needed */
.principal-message-section .principal-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff; /* Consider changing border color to white/light for dark background */
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.principal-message-section .principal-message-text p:last-child {
    margin-bottom: 0;
}


/* --- Responsive Adjustments for Principal's Message Section --- */
@media (max-width: 768px) {
    .principal-message-section {
        padding: 40px 20px;
        margin: 30px auto;
    }
    .principal-message-section .principal-photo {
        width: 120px;
        height: 120px;
        margin-bottom: 15px;
    }
    .principal-message-section .principal-name {
        font-size: 1.6em;
        margin-bottom: 10px;
    }
    .principal-message-section .principal-message-text {
        font-size: 0.95em;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .principal-message-section {
        padding: 30px 15px;
        margin: 20px auto;
    }
    .principal-message-section .principal-photo {
        width: 80px;
        height: 80px;
        margin-bottom: 10px;
    }
    .principal-message-section .principal-name {
        font-size: 1em;
        margin-bottom: 8px;
    }
    .principal-message-section .principal-message-text {
        font-size: 0.6em;
        line-height: 1.6;
        text-align: center;
    }
}

/* --- Teachers & Staffs Section --- */
.teachers-staffs-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 65px 25px; /* Adjusted padding for 15px border height */
    background: #fefae0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-radius: 8px;

    position: relative; /* For pseudo-element borders */
    overflow: hidden; /* Ensures borders stay within rounded corners */
    text-align: center; /* Center the heading */
    
}

/* --- Top Border Image for TEACHERS & STAFFS Section (Specific Styling) --- */
.teachers-staffs-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;
}

/* --- Bottom Border Image for TEACHERS & STAFFS Section (Specific Styling) --- */
.teachers-staffs-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15px; /* <--- 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 */
.teachers-staffs-section h2 {
    font-family: 'Arial', sans-serif;
    font-size: 2.2em;
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    display: inline-block;
    position: relative; /* Ensure heading is above pseudo-elements */
    z-index: 2;
}

/* Staff Grid Container */
.staffs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* 4 columns for larger screens, responsive down to 200px min */
    gap: 25px;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* Individual Staff Card */
.staff-card {
    background-color: #FAF9EE;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; /* Use flex for vertical stacking */
    flex-direction: column;
    align-items: center; /* Center items horizontally within the card */
}

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

.staff-photo {
    width: 120px; /* Size of the photo */
    height: 120px;
    border-radius: 50%; /* Make it circular */
    object-fit: cover; /* Ensures image covers the area */
    border: 3px solid #3498db; /* A border around the photo */
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.staff-card h3 {
    font-family: 'Georgia', serif;
    font-size: 1.3em;
    color: #333;
    margin-top: 0;
    margin-bottom: 5px;
    line-height: 1.3;
}

.staff-subject {
    font-family: 'Roboto', sans-serif;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
    font-style: italic;
}

.staff-qualification {
    font-family: 'Roboto', sans-serif;
    font-size: 0.85em;
    color: #777;
    margin-bottom: 0;
}

/* --- Responsive Adjustments for Teachers & Staffs Section --- */
@media (max-width: 900px) {
    .teachers-staffs-section {
        padding: 40px 20px;
        margin: 30px auto;
    }
    .teachers-staffs-section h2 {
        font-size: 2em;
        margin-bottom: 25px;
    }
    .staffs-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Often results in 3 columns here */
        gap: 20px;
    }
    .staff-photo {
        width: 100px;
        height: 100px;
        margin-bottom: 12px;
    }
    .staff-card h3 {
        font-size: 1.2em;
    }
    .staff-subject {
        font-size: 0.85em;
    }
    .staff-qualification {
        font-size: 0.8em;
    }
}

@media (max-width: 768px) {
    .teachers-staffs-section {
        padding: 30px 15px;
        margin: 25px auto;
    }
    .teachers-staffs-section h2 {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .staffs-grid {
        grid-template-columns: repeat(2, 1fr); /* Two columns for smaller tablets/large mobiles */
        gap: 15px;
    }
    .staff-photo {
        width: 90px;
        height: 90px;
        margin-bottom: 10px;
    }
    .staff-card h3 {
        font-size: 1.1em;
    }
    .staff-subject {
        font-size: 0.8em;
    }
    .staff-qualification {
        font-size: 0.75em;
    }
}

@media (max-width: 480px) {
    .teachers-staffs-section {
        padding: 20px 10px;
        margin: 20px auto;
    }
    .teachers-staffs-section h2 {
        font-size: 1.2em;
        margin-bottom: 15px;
        margin-top: 15px;
    }
    .staffs-grid {
        grid-template-columns: repeat(2, 1fr); /* Two columns for mobile phones */
        gap: 15px;
    }
    .staff-photo {
        width: 60px;
        height: 60px;
        margin-bottom: 8px;
    }
    .staff-card h3 {
        font-size: 0.6em;
    }
    .staff-subject {
        font-size: 0.55em;
    }
    .staff-qualification {
        font-size: 0.5em;
    }
}

/* --- Events & Activities Section --- */
.events-activities-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 65px 25px;
    background: #fefae0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-radius: 8px;

    position: relative;
    overflow: hidden;
    text-align: center;
}

/* --- Top Border Image for EVENTS & ACTIVITIES Section (Specific Styling) --- */
.events-activities-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;
}

/* --- Bottom Border Image for EVENTS & ACTIVITIES Section (Specific Styling) --- */
.events-activities-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15px; /* <--- 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 */
.events-activities-section h2 {
    font-family: 'Arial', sans-serif;
    font-size: 2.2em;
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    display: inline-block;
    position: relative;
    z-index: 2;
}

/* Events Grid Container */
.events-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* <--- CHANGED: Exactly 4 columns on large screens */
    gap: 20px; /* <--- Adjusted gap for smaller cards */
    justify-content: center;
    position: relative;
    z-index: 2;
}
/* Individual Event Card */
.event-card {
    background-color: #FAF9EE;;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding-bottom: 15px; /* <--- Adjusted padding */
    text-align: left;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.event-thumbnail-link {
    display: block;
    line-height: 0;
    margin-bottom: 10px; /* <--- Adjusted margin */
}

.event-image {
    width: 100%;
    height: 150px; /* <--- CHANGED: Smaller image height */
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
.event-title {
    font-family: 'Georgia', serif;
    font-size: 1.2em; /* <--- Adjusted font size */
    color: #333;
    margin: 0 15px 8px 15px; /* <--- Adjusted spacing */
    line-height: 1.3;
}

.event-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.event-title a:hover {
    color: #3498db;
}

.event-excerpt {
    font-family: 'Roboto', sans-serif;
    font-size: 0.85em; /* <--- Adjusted font size */
    color: #666;
    line-height: 1.5; /* Adjusted line height */
    margin: 0 15px 15px 15px; /* <--- Adjusted spacing */
    flex-grow: 1;
}

.event-readmore-button {
    display: inline-block;
    background: linear-gradient(to right, #4b6cb7, #182848);
    color: #fff;
    padding: 8px 15px; /* <--- Adjusted padding */
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.8em; /* <--- Adjusted font size */
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-left: 15px; /* <--- Adjusted margin */
    margin-right: 15px;
    margin-top: auto;
    text-align: center;
}

.event-readmore-button:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

/* --- Responsive Adjustments for Events & Activities Section --- */
@media (max-width: 900px) {
    .events-activities-section {
        padding: 40px 20px;
        margin: 30px auto;
    }
    .events-activities-section h2 {
        font-size: 2em;
        margin-bottom: 25px;
    }
    .events-grid {
        grid-template-columns: repeat(3, 1fr); /* <--- CHANGED: 3 columns for tablets */
        gap: 20px;
    }
    .event-image {
        height: 140px; /* Adjusted smaller */
    }
    .event-title {
        font-size: 1.1em; /* Adjusted smaller */
        margin: 0 10px 8px 10px;
    }
    .event-excerpt {
        font-size: 0.8em; /* Adjusted smaller */
        margin: 0 10px 10px 10px;
    }
    .event-readmore-button {
        padding: 7px 14px; /* Adjusted smaller */
        font-size: 0.75em; /* Adjusted smaller */
        margin-left: 10px;
    }
}

@media (max-width: 768px) {
    .events-activities-section {
        padding: 30px 15px;
        margin: 25px auto;
    }
    .events-activities-section h2 {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .events-grid {
        grid-template-columns: repeat(2, 1fr); /* <--- CHANGED: 2 columns for large mobiles */
        gap: 15px;
    }
    .event-image {
        height: 130px; /* Adjusted smaller */
    }
    .event-title {
        font-size: 1em; /* Adjusted smaller */
    }
    .event-excerpt {
        font-size: 0.75em; /* Adjusted smaller */
    }
    .event-readmore-button {
        padding: 6px 12px; /* Adjusted smaller */
        font-size: 0.7em; /* Adjusted smaller */
    }
}

@media (max-width: 480px) {
    .events-activities-section {
        padding: 20px 10px;
        margin: 20px auto;
    }
    .events-activities-section h2 {
        font-size: 1.2em;
        margin-bottom: 15px;
        margin-top: 15px;
    }
    .events-grid {
        grid-template-columns: 1fr; /* <--- Changed to 1 column for very small screens for readability */
        gap: 15px;
    }
    .event-image {
        height: 150px; /* Slightly larger image for single column */
    }
    .event-title {
        font-size: 1em;
        margin: 0 10px 8px 10px;
    }
    .event-excerpt {
        font-size: 0.7em;
        margin: 0 10px 10px 10px;
    }
    .event-readmore-button {
        margin-left: 10px;
    }
}

/* --- YouTube Video Gallery Section --- */
.youtube-gallery-section {
    max-width: 1200px; /* Consistent with other sections */
    margin: 40px auto;
    padding: 65px 25px; /* Padding for border images and content */
    background: #fefae0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-radius: 8px;

    position: relative; /* For pseudo-element borders */
    overflow: hidden; /* Ensures borders stay within rounded corners */
    text-align: center; /* Center the heading and button */
}

/* --- Top Border Image for YOUTUBE GALLERY Section --- */
.youtube-gallery-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;
}

/* --- Bottom Border Image for YOUTUBE GALLERY Section --- */
.youtube-gallery-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 */
.youtube-gallery-section h2 {
    font-family: 'Arial', sans-serif;
    font-size: 2.2em;
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    display: inline-block;
    position: relative;
    z-index: 2; /* Ensure heading is above borders */
}

/* Video Grid Container */
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns for desktop */
    gap: 20px; /* Space between videos */
    justify-content: center;
    margin-bottom: 30px; /* Space before the button */
    position: relative;
    z-index: 2; /* Ensure videos are above borders */
}

/* Individual Video Card (container for the responsive thumbnail) */
.video-card {
    background-color: #FAF9EE;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden; /* Hide anything outside rounded corners */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; /* For flex layout of image and title */
    flex-direction: column;
}

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

/* Link container for thumbnail and play icon */
.video-card .video-thumbnail-link {
    position: relative;
    display: block; /* Make the link a block to contain the image and icon */
    overflow: hidden;
    /* Maintain 16:9 aspect ratio for the image area */
    padding-bottom: 56.25%; /* (9 / 16) * 100 */
    height: 0;
}

.video-card .youtube-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure image covers the area */
    display: block;
    transition: transform 0.3s ease;
}

.video-card .video-thumbnail-link:hover .youtube-thumbnail {
    transform: scale(1.05); /* Subtle zoom effect on hover */
}

/* Play Icon Overlay */
.video-card .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px; /* Size of the play icon */
    height: 42px; /* Aspect ratio for YouTube play button */
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 12px / 20%; /* Rounded corners like YouTube button */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    /* Custom SVG play icon using a background image */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 68 48"><path fill="%23fff" fill-opacity="0.9" d="M66.52 7.74c-.78-2.93-2.93-5.08-5.86-5.86C55.94 0 34 0 34 0S12.06 0 7.34 1.88c-2.93.78-5.08 2.93-5.86 5.86C0 12.06 0 24 0 24s0 11.94 1.48 16.26c.78 2.93 2.93 5.08 5.86 5.86C12.06 48 34 48 34 48s21.94 0 26.66-1.48c2.93-.78 5.08-2.93 5.86-5.86C68 35.94 68 24 68 24s0-11.94-1.48-16.26z"/><path fill="%23e62117" d="M45 24L27 14v20z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 10;
}

.video-card .video-thumbnail-link:hover .play-icon {
    background-color: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1); /* Slightly enlarge on hover */
}

/* Style for the video title (below the thumbnail) */
.video-card .video-title {
    font-family: 'Roboto', sans-serif;
    font-size: 1.1em;
    color: #333;
    padding: 10px 15px;
    margin: 0;
    text-align: left;
    flex-grow: 1; /* Allow title to take up remaining space */
    white-space: nowrap; /* Prevent title from wrapping */
    overflow: hidden; /* Hide overflow */
    text-overflow: ellipsis; /* Add ellipsis for overflow */
}

/* YouTube Button Styles (remain unchanged from previous step) */
.youtube-button-wrapper {
    text-align: center;
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

.youtube-channel-button {
    display: inline-block;
    background-color: #FF0000; /* YouTube Red */
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.youtube-channel-button:hover {
    background-color: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* --- Responsive Adjustments for YouTube Gallery --- */
@media (max-width: 992px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
    .youtube-gallery-section {
        padding: 55px 20px;
    }
    .video-card .video-title {
        font-size: 1em;
    }
    .video-card .play-icon {
        width: 50px;
        height: 35px;
    }
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .youtube-gallery-section {
        padding: 45px 15px;
    }
    .youtube-gallery-section h2 {
        font-size: 2em;
        margin-bottom: 25px;
    }
    .youtube-channel-button {
        padding: 10px 20px;
        font-size: 1em;
    }
    .video-card .video-title {
        font-size: 0.9em;
    }
    .video-card .play-icon {
        width: 45px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .youtube-gallery-section {
        padding: 35px 10px;
    }
    .youtube-gallery-section h2 {
        font-size: 1.2em;
        margin-bottom: 20px;
    }
    .youtube-channel-button {
        padding: 8px 18px;
        font-size: 0.9em;
    }
    .video-card .video-title {
        font-size: 0.85em;
    }
    .video-card .play-icon {
        width: 40px;
        height: 28px;
    }
}

