/*
 * File: style.css
 * Description: Contains all CSS rules for the School Website.
 * Includes enhanced styles for the navigation menu, scoped styles for Manage Albums, Gallery Albums list, View Album, and now Fees Dropdown.
 * Also includes styles for manage_career.php and updated admin dashboard dropdown.
 * Updated for gallery.php to display albums and media (photos/videos) and responsive video players.
 * NEW: Increased logo size and added stylish bordering to the hero banner.
 */

/* --- 1. General/Base Styles --- */
:root {
    --primary-color: #0056b3; /* Deep Blue */
    --secondary-color: #28a745; /* Green */
    --accent-color: #ffc107; /* Yellow/Amber */
    --background-color: #f8f9fa; /* Light Grey Body Background */
    --content-background-color: #fff; /* White Content Background */
    --text-color: #343a40; /* Dark Grey Text */
    --light-text-color: #6c757d; /* Medium Grey Text */
    --border-color: #dee2e6; /* Light Grey Border */
    --white-color: #fff; /* White */
    --black-color: #000; /* Black */
    --error-color: #dc3545; /* Red for errors */
    --success-color: #28a745; /* Green for success */
    --warning-color: #ffc107; /* Yellow for warnings */

    /* Define your fonts */
    /* Using Poppins as requested */
    --body-font: 'Poppins', sans-serif;
    --heading-font: 'Poppins', sans-serif;
}

/* Apply box-sizing globally for easier layout management */
*, *::before, *::after {
    box-sizing: border-box;
}


body {
    font-family: var(--body-font);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 80%; /* Reverted to original width */
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
    max-width: 1200px; /* Reverted to original max width */
}

/* --- 2. Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    margin-bottom: 15px;
    margin-top: 20px;
    line-height: 1.2;
    font-weight: normal; /* Reverted to normal font weight */
}

h1 { font-size: 2.5em; } /* Reverted font size */
h2 { font-size: 2em; } /* Reverted font size */
h3 { font-size: 1.5em; } /* Reverted font size */
h4 { font-size: 1.2em; } /* Reverted font size */

p {
    margin-bottom: 15px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease; /* Reverted transition */
}

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
    /* Removed transform on hover */
}

/* --- 3. Layout & Structure --- */
header {
    background: var(--primary-color);
    color: var(--white-color);
    padding: 5px 0; /* Reduced padding to keep header compact */
    border-bottom: 3px solid #003f8f; /* Darker primary */
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Reverted shadow */
    flex-shrink: 0;
    position: static; /* Reverted to static position */
    top: auto;
    z-index: auto;
}

.page-content-container {
    padding: 20px; /* Reverted padding */
    background-color: var(--content-background-color);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Reverted shadow */
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 8px; /* Reverted border radius */
    flex-grow: 1;
}

hr {
    border: none;
    height: 1px;
    background-color: var(--border-color);
    margin: 30px 0; /* Reverted margin */
}

/* --- 4. Navigation Menu Styles (Enhanced with Dropdown) --- */
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-title { /* Target the div containing the logo and name link */
    flex-shrink: 0;
}

/* Target the <a> tag inside .site-title for flex layout */
.site-title a {
    display: flex; /* Use flexbox to align logo and h1 side-by-side */
    align-items: center; /* Vertically align items */
    text-decoration: none; /* Remove underline from the link */
    color: inherit; /* Inherit color from parent */
     transition: none; /* Reverted transition */
}
.site-title a:hover {
    transform: none; /* Reverted transform on hover */
}

/* Target the img and h1 directly inside the <a> tag */
.site-title a img.school-logo { /* Target the logo image */
    height: 100px; /* Increased logo size even further */
    width: auto;
    vertical-align: middle;
    margin-right: 10px; /* Reverted space */
}

.site-title a h1 { /* Target the school name heading */
     margin: 0; /* Remove default h1 margin */
     font-size: 28px; /* Reverted font size */
     color: var(--white-color); /* Set color for the heading */
     font-family: var(--heading-font);
     font-weight: 600; /* Make title slightly bolder */
}


header nav {
    flex-grow: 1;
    text-align: right;
}

header nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: inline-block; /* Keep list inline-block */
}

header nav li {
    display: inline-block;
    margin-left: 30px; /* Space between items */
    position: relative; /* Needed for underline effect and dropdown positioning */
}

header nav li:first-child {
    margin-left: 0; /* Remove left margin for the first item */
}


header nav a {
    color: var(--white-color);
    text-decoration: none;
    font-size: 17px;
    font-weight: 600; /* Make navigation links bolder */
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
    display: inline-block; /* Ensure padding/height is respected */
}

/* Underline effect for top-level links */
header nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px; /* Position below the text */
    width: 0; /* Start with zero width */
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease; /* Animate width */
}

header nav a:hover::after {
    width: 100%; /* Expand width on hover */
}

header nav a:hover {
    color: var(--accent-color);
}

/* Dropdown specific styles */
.dropdown {
    position: relative; /* Make it a positioning context for the dropdown content */
    display: inline-block; /* Necessary for proper dropdown behavior */
}

.dropdown .dropdown-content {
    display: none; /* Hidden by default */
    position: absolute;
    background-color: var(--primary-color); /* Same as header background */
    min-width: 180px; /* Increased width for admin dropdown */
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 100; /* Sit on top of other content */
    border-radius: 0 0 5px 5px; /* Rounded bottom corners */
    padding: 5px 0; /* Vertical padding inside dropdown */
    left: 0; /* Align with parent link */
    top: 100%; /* Position below the parent link */
}

.dropdown-content li {
    display: block; /* Make dropdown items stack vertically */
    margin: 0; /* Remove horizontal margin */
}

.dropdown-content li a {
    color: var(--white-color);
    padding: 12px 16px; /* Padding for dropdown items */
    text-decoration: none;
    display: block; /* Make the whole area clickable */
    text-align: left; /* Align text to the left */
    font-size: 16px; /* Slightly smaller font for dropdown items */
    font-weight: normal; /* Normal font weight for dropdown items */
    transition: background-color 0.3s ease;
}

.dropdown-content li a:hover {
    background-color: #003f8f; /* Darker shade on hover */
    color: var(--accent-color); /* Highlight text on hover */
    text-decoration: none; /* Remove underline for dropdown items on hover */
}

/* Hide underline for dropdown content links */
.dropdown-content li a::after {
    display: none;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Small arrow icon for dropdown */
.dropdown .arrow {
    border: solid var(--white-color);
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    margin-left: 5px; /* Space between text and arrow */
    vertical-align: middle;
    transform: rotate(45deg); /* Pointing down */
    -webkit-transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.dropdown:hover .arrow {
    transform: rotate(225deg); /* Pointing up on hover */
    -webkit-transform: rotate(225deg);
}

/* Active link style (optional, requires PHP logic to add a class like .active) */
/*
header nav li.active a {
    color: var(--accent-color);
}
header nav li.active a::after {
    width: 100%;
}
*/

/* --- 5. Footer Styles --- */
footer {
    background: var(--text-color);
    color: var(--white-color);
    text-align: center;
    padding: 20px 0; /* Reverted padding */
    margin-top: 30px; /* Reverted margin */
    flex-shrink: 0;
}

footer .container {
    display: flex;
    flex-direction: column; /* Stack footer content vertically */
    align-items: center;
}

.footer-content {
    display: flex;
    justify-content: space-around; /* Distribute space between sections */
    flex-wrap: wrap;
    width: 100%;
    padding-bottom: 20px; /* Reverted padding */
    margin-bottom: 20px; /* Reverted margin */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Reverted border */
    text-align: left; /* Align text left within sections */
}

.footer-section {
    flex: 1; /* Allow sections to grow */
    min-width: 200px; /* Reverted min width */
    margin: 10px; /* Reverted margin */
}

.footer-section h3 {
    color: var(--accent-color); /* Accent color for footer headings */
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* Reverted border */
    padding-bottom: 8px; /* Reverted padding */
    font-size: 1.3em; /* Reverted font size */
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8); /* Lighter white for text */
    font-size: 0.95em; /* Reverted font size */
    margin-bottom: 10px; /* Reverted margin */
}

.footer-section a {
    color: var(--white-color); /* White color for footer links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 8px; /* Reverted margin */
}

.footer-bottom {
    width: 100%;
    text-align: center;
    font-size: 0.9em; /* Reverted font size */
    color: rgba(255, 255, 255, 0.6); /* Reverted color */
}


/* --- 6. Form Styles --- */
/* General form styles - these apply to all forms unless overridden */
form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: calc(100% - 22px);
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    font-family: inherit;
    color: var(--text-color);
    background-color: var(--content-background-color);
}

.form-group input[type="file"] {
    width: 100%;
    padding: 10px 0;
    border: none;
    box-sizing: border-box;
    background-color: transparent;
}

.form-group input[type="radio"],
.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 5px;
    vertical-align: middle;
    box-sizing: content-box;
}

.form-group input[type="radio"] + label,
.form-group input[type="checkbox"] + label {
     display: inline-block;
     font-weight: normal;
     margin-right: 15px;
     vertical-align: middle;
     color: var(--text-color);
}

button[type="submit"] {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease;
    margin-top: 15px;
}

button[type="submit"]:hover {
    background-color: #218838; /* Darker secondary */
}

.button-like-link {
    display: inline-block;
    background-color: var(--light-text-color);
    color: var(--white-color);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin-top: 15px;
    margin-left: 10px;
    vertical-align: middle;
}

.button-like-link:hover {
    background-color: #5a6268; /* Darker light-text */
}

/* Form Input Focus Style */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 86, 179, 0.5); /* Shadow using primary color */
}


/* --- 7. Status/Alert Messages --- */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 16px;
}

.success-message {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.error-message {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.warning-message {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}


/* --- 8. Specific Section Styles --- */

/* Homepage Hero Section */
.hero-section {
    position: relative; /* Needed for overlay */
    width: 100%;
    height: 450px; /* Adjust height as needed */
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 12px; /* Stylish rounded corners for the entire banner */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); /* More prominent shadow */
    border: 3px solid var(--accent-color); /* A stylish border */
}

/* Slider Container */
.banner-slider {
    position: relative;
    width: 100%;
    height: 100%; /* Fill the hero section height */
    border-radius: 9px; /* Slightly less rounded than parent for inner content */
    overflow: hidden; /* Ensure images respect border-radius */
}

/* Individual Slides Container */
.slides-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Individual Slide */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* Hidden by default */
    transition: opacity 1s ease-in-out; /* Smooth fade transition */
}

/* Active Slide */
.slide.active {
    opacity: 1; /* Visible when active */
}

/* Banner Image within Slide */
.slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the container */
    /* No border here, as the main section has it */
}


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
    display: flex;
    align-items: center; /* Vertically center content */
    justify-content: center; /* Horizontally center content */
    text-align: center;
    z-index: 10; /* Ensure overlay is above images */
}

.hero-text {
    color: var(--white-color);
    max-width: 800px;
    padding: 0 20px;
    z-index: 15; /* Ensure text is above overlay */
}

.hero-text h1 {
    color: var(--white-color);
    font-size: 3em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-text p {
    font-size: 1.3em;
    margin-bottom: 25px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-text .button-like-link {
    background-color: var(--accent-color); /* Use accent color for hero button */
    color: var(--text-color); /* Dark text on accent button */
    font-size: 1.2em;
    padding: 12px 25px;
    margin-top: 0; /* Remove default margin */
}
.hero-text .button-like-link:hover {
    background-color: darken(var(--accent-color), 10%);
    background-color: #e0a800;
}


/* Homepage Welcome Section */
.welcome-section .welcome-content {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.welcome-section .principal-photo {
    width: 600px;
    height: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    object-fit: cover;
}

.welcome-section .welcome-text {
    flex-grow: 1;
}

.welcome-section .principal-signature {
    font-style: italic;
    color: var(--light-text-color);
    margin-top: 25px;
    border-top: 1px dashed var(--border-color);
    padding-top: 20px;
    text-align: right;
}

/* About Us Leadership Section - Scoped to .about-page-content */
.about-page-content .leadership-section {
     margin-top: 30px;
}

.about-page-content .leadership-member {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px dashed var(--border-color);
}
.about-page-content .leadership-member:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}


.about-page-content .leadership-member h4 {
     color: var(--primary-color);
     margin-bottom: 15px;
     border-bottom: 2px solid var(--accent-color);
     padding-bottom: 8px;
     font-size: 1.4em;
}

.about-page-content .leadership-content {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.about-page-content .leadership-photo {
    width: 180px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    object-fit: cover;
     border: 3px solid var(--secondary-color);
}

.about-page-content .leadership-text {
    flex-grow: 1;
}

.about-page-content .leadership-signature {
    font-style: italic;
    color: var(--light-text-color);
    margin-top: 25px;
    border-top: 1px dashed var(--border-color);
    padding-top: 20px;
    text-align: right;
    font-size: 1.1em;
}


/* About Us Teachers Section - Scoped to .about-page-content */
.about-page-content .teachers-section {
    margin-top: 30px;
}

.about-page-content .teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.about-page-content .teacher-card {
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 10px;
    background-color: var(--content-background-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-page-content .teacher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}


.about-page-content .teacher-card img {
    width: 140px;
    height: 170px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 3px solid var(--accent-color);
}

.about-page-content .teacher-card h4 {
    margin-top: 0;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-size: 1.2em;
}

.about-page-content .teacher-card p {
    font-size: 1em;
    color: var(--text-color);
    margin: 0 0 8px 0;
    text-align: left;
    width: 100%;
}

.about-page-content .teacher-card p strong {
    color: var(--primary-color);
}


/* Homepage News & Events Highlights */
.news-events-highlights {
     margin-top: 30px;
}
.news-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.news-event-card {
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 8px;
    background-color: var(--content-background-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: none;
}

.news-event-card:hover {
     transform: none;
     box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}


.news-event-card h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 1.3em;
    line-height: 1.3;
    border-bottom: none;
    padding-bottom: 0;
}

.news-event-card h4 a {
    color: var(--primary-color);
    text-decoration: none;
}
.news-event-card h4 a:hover {
    text-decoration: underline;
    color: var(--accent-color);
}

.news-event-card .new-tag {
    background-color: var(--error-color);
    color: var(--white-color);
    font-size: 0.8em;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 10px;
    vertical-align: top;
}


.news-event-card .meta {
    font-size: 0.9em;
    color: var(--light-text-color);
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: bold;
}

.news-event-card .read-more {
    display: inline-block;
    margin-top: auto;
    color: var(--secondary-color);
    font-weight: bold;
    transition: color 0.3s ease;
}

.news-event-card .read-more:hover {
    text-decoration: underline;
    color: darken(var(--secondary-color), 10%);
    color: #218838;
}

.news-events-highlights .view-all-link {
    text-align: center;
    margin-top: 20px;
}


/* Homepage Gallery Preview */
.gallery-preview {
    margin-top: 30px;
}
.gallery-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-preview-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: none;
}

.gallery-preview-item:hover {
    transform: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.gallery-preview-item img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-preview-item img:hover {
    transform: scale(1.05);
}


.gallery-preview .view-all-link {
    text-align: center;
    margin-top: 20px;
}


/* Homepage Contact Info Section */
.contact-info-section {
     margin-top: 30px;
}

.contact-details-map {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.contact-details {
    flex: 1;
    min-width: 250px;
}

.contact-details p {
    margin-bottom: 10px;
    color: var(--text-color);
    font-size: 1em;
}

.contact-details p strong {
    color: var(--primary-color);
}

.contact-map {
    flex: 2;
    min-width: 300px;
    height: 300px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}


/* Public News & Events List Page */
.news-event-list-container {
    margin-top: 30px;
    margin-bottom: 30px;
}

.news-event-item {
    border: 1px solid var(--border-color);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    background-color: var(--content-background-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: none;
}
.news-event-item:hover {
    transform: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}


.news-event-item h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 1.5em;
}

.news-event-item p {
    margin-bottom: 10px;
    color: var(--text-color);
    font-size: 1em;
}

.news-event-meta {
    font-size: 0.9em;
    color: var(--light-text-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.news-event-meta strong {
    color: var(--text-color);
}

.news-event-item .read-more {
    display: inline-block;
    margin-top: 10px;
    color: var(--secondary-color);
    font-weight: bold;
    transition: color 0.3s ease;
}

.news-event-item .read-more:hover {
    text-decoration: underline;
    color: darken(var(--secondary-color), 10%);
    color: #218838;
}

.news-events-highlights .view-all-link {
    text-align: center;
    margin-top: 20px;
}


/* News & Events Detail Page */
.news-event-detail-container {
     margin-top: 30px;
     margin-bottom: 30px;
}

.news-event-detail-container .entry-title {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 2em;
    line-height: 1.2;
}

.news-event-detail-container .entry-meta {
    font-size: 15px;
    color: var(--light-text-color);
    margin-bottom: 20px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 15px;
}

.news-event-detail-container .entry-meta .meta-item {
    display: inline-block;
    margin-right: 20px;
    margin-bottom: 5px;
}

.news-event-detail-container .entry-meta .meta-item strong {
    color: var(--text-color);
}


.news-event-detail-container .entry-content {
    font-size: 1.1em;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 30px;
}

.news-event-detail-container .back-link {
    margin-top: 20px;
    text-align: center;
}

.news-event-detail-container .back-link a {
    color: var(--secondary-color);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-event-detail-container .back-link a:hover {
    text-decoration: underline;
    color: darken(var(--secondary-color), 10%);
     color: #218838;
     transform: none;
}

/* Admission Form Page Specific Styles - Scoped to .admission-form-container */
.admission-form-container {
    max-width: 700px;
    margin: 30px auto;
    padding: 30px;
    background-color: var(--content-background-color);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}

.admission-form-container h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.admission-form-container p {
    margin-bottom: 25px;
    color: var(--text-color);
    text-align: center;
}

.admission-form-container form {
    margin-bottom: 0;
    text-align: left;
}

.admission-form-container h3 {
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 8px;
}

.admission-form-container .form-group {
    margin-bottom: 20px;
}

.admission-form-container .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1em;
}

.admission-form-container .form-group input[type="text"],
.admission-form-container .form-group input[type="password"],
.admission-form-container .form-group input[type="date"],
.admission-form-container .form-group input[type="tel"],
.admission-form-container .form-group input[type="email"],
.admission-form-container .form-group input[type="number"],
.admission-form-container .form-group select,
.admission-form-container .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 17px;
    font-family: inherit;
    color: var(--text-color);
    background-color: var(--content-background-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.admission-form-container .form-group input[type="file"] {
    width: 100%;
    padding: 12px 0;
    border: none;
    box-sizing: border-box;
    background-color: transparent;
    font-size: 1em;
}


.admission-form-container .form-group input[type="radio"],
.admission-form-container .form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    vertical-align: middle;
    box-sizing: content-box;
    transform: scale(1.1);
}

.admission-form-container .form-group input[type="radio"] + label,
.admission-form-container .form-group input[type="checkbox"] + label {
     display: inline-block;
     font-weight: normal;
     margin-right: 20px;
     vertical-align: middle;
     color: var(--text-color);
     font-size: 1em;
}

/* Style for the declaration checkbox label */
.admission-form-container .form-group input[type="checkbox"]#declaration_agree + label {
    font-weight: normal;
    font-size: 0.95em;
    color: var(--light-text-color);
    margin-left: 5px;
}


.admission-form-container input:focus,
.admission-form-container textarea:focus,
.admission-form-container select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.6);
}


.admission-form-container button[type="submit"] {
    display: block;
    width: 100%;
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 19px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 30px;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.admission-form-container button[type="submit"]:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}


.admission-form-container .alert {
    margin-bottom: 20px;
    text-align: left;
}


/* Admission Submission View Page */
.admission-view-container {
    /* Inherits .page-content-container styles */
    margin-top: 30px;
    margin-bottom: 30px;
}

/* School Details Header Section */
.school-details-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    flex-wrap: wrap;
    justify-content: space-between;
}

.school-details-header .school-logo {
    flex-shrink: 0;
}

.school-details-header .school-logo img {
    max-width: 100px;
    height: auto;
    display: block;
}

.school-details-header .school-info {
    flex-grow: 1;
}

.school-details-header .school-info h2 {
    margin-top: 0;
    margin-bottom: 5px;
    color: var(--primary-color);
    font-size: 1.8em;
}

.school-details-header .school-info p {
    margin: 0 0 3px 0;
    font-size: 1em;
    color: var(--text-color);
}

.school-details-header .admission-title-box {
    flex-shrink: 0;
    text-align: right;
    border: 1px solid var(--border-color);
    padding: 10px 15px;
    border-radius: 5px;
    background-color: #f9f9f9;
}
.school-details-header .admission-title-box h2 {
    margin: 0 0 5px 0;
    font-size: 1.4em;
    color: var(--secondary-color);
}
.school-details-header .admission-title-box p {
    margin: 0 0 3px 0;
    font-size: 0.9em;
    color: var(--light-text-color);
}
.school-details-header .admission-title-box strong {
    color: var(--text-color);
}

/* Separator line style, specifically for print view */
.print-hr {
    display: none;
}


.submission-details h3 {
    margin-top: 25px;
    margin-bottom: 15px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 10px;
}

/* New Flexbox container for Child Details and Photo (for screen) */
.child-details-with-photo {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 20px;
}

.child-text-details {
    flex-grow: 1;
}

.submission-details p {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.submission-details p strong {
    color: var(--text-color);
    display: inline-block;
    min-width: 250px;
    margin-right: 10px;
}

/* Student Photo Box Styling (for screen) */
.student-photo-box {
    width: 150px;
    height: 180px;
    border: 1px solid var(--border-color);
    padding: 5px;
    background-color: var(--content-background-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.student-photo-box img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    margin: 0;
    border-radius: 3px;
}

.student-photo-box .photo-placeholder {
    text-align: center;
    color: var(--light-text-color);
    font-size: 0.9em;
    padding: 10px;
}


/* Uploaded Documents (Other than student photo) */
.uploaded-documents {
    margin-top: 20px;
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.uploaded-documents h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 1.2em;
    border-bottom: none;
    padding-bottom: 0;
}

.uploaded-documents .document-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--border-color);
}
.uploaded-documents .document-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.uploaded-documents .document-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: 10px;
    border: 1px solid var(--border-color);
    padding: 5px;
    background-color: var(--content-background-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.uploaded-documents .document-item p a {
     color: var(--secondary-color);
     font-weight: bold;
}

.print-section {
    margin-top: 30px;
    text-align: center;
}

/* --- Print Specific Styles --- */
@media print {
    header, footer, .print-section, .alert, .back-link {
        display: none !important;
    }
    body {
        background-color: #fff;
        color: #000;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        margin: 0;
        padding: 0;
        font-size: 10pt;
        line-height: 1.4;
    }
    .page-content-container, .admission-view-container {
        box-shadow: none !important;
        padding: 10mm 15mm !important;
        margin: 0 !important;
        border: none !important;
        width: auto !important;
        max-width: none !important;
    }

    /* Use Table Display for School Details Header in Print */
     .school-details-header {
         display: table !important;
         width: 100% !important;
         border-collapse: collapse;
         border-bottom: 2px solid #000 !important;
         padding-bottom: 15pt !important;
         margin-bottom: 20pt !important;
         gap: 0 !important;
     }
     .school-details-header .school-logo,
     .school-details-header .school-info,
     .school-details-header .admission-title-box {
         display: table-cell !important;
         vertical-align: top !important;
         padding: 0 10pt !important;
     }
      .school-details-header .school-logo { width: 100pt !important; padding-left: 0 !important; }
      .school-details-header .school-info { width: auto !important; }
      .school-details-header .admission-title-box { width: 150pt !important; text-align: right !important; padding-right: 0 !important; }

     .school-details-header .school-info h2,
     .school-details-header .admission-title-box h2 {
         color: #000 !important;
         font-size: 14pt;
     }
      .school-details-header .school-info p,
      .school-details-header .admission-title-box p {
           color: #000 !important;
           font-size: 10pt;
           margin: 0 0 2pt 0 !important;
      }
      .school-details-header .admission-title-box strong {
          color: #000 !important;
      }


    /* Use Table Display for Child Details with Photo in Print */
     .child-details-with-photo {
         display: table !important;
         width: 100% !important;
         border-collapse: collapse;
         gap: 0 !important;
         margin-bottom: 15pt !important;
         page-break-inside: avoid;
     }
      .child-text-details,
      .student-photo-box {
          display: table-cell !important;
          vertical-align: top !important;
          padding: 0 10pt !important;
      }
      .child-text-details { width: 70% !important; padding-left: 0 !important; }
      .student-photo-box { width: 120pt !important; height: auto !important; padding-right: 0 !important; }

       .student-photo-box img {
           max-width: 100% !important;
           height: auto !important;
           object-fit: contain !important;
           border: 1px solid #000 !important;
           box-shadow: none !important;
       }
        .student-photo-box .photo-placeholder {
             padding: 5pt !important;
        }


     .submission-details h3 {
         border-bottom: 1px dashed #000;
         margin-top: 15pt;
         padding-top: 15pt;
         margin-bottom: 10pt;
         page-break-after: avoid;
         font-size: 12pt;
     }
     .submission-details p {
          color: #000 !important;
          margin-bottom: 5pt !important;
          page-break-inside: avoid;
          font-size: 10pt;
     }
      .submission-details p strong {
         min-width: 160pt !important;
         color: #000 !important;
         display: inline-block !important;
         margin-right: 10pt !important;
     }


     .uploaded-documents {
         border: 1px solid #000 !important;
         background-color: #fff !important;
         padding: 10pt !important;
         margin-top: 15pt !important;
         page-break-inside: avoid;
     }
     .uploaded-documents h4 {
           color: #000 !important;
           font-size: 11pt;
      }
     .uploaded-documents .document-item {
         border-bottom: 1px dashed #000 !important;
         padding-bottom: 10pt !important;
         margin-bottom: 10pt !important;
         page-break-inside: avoid;
     }
     .uploaded-documents .document-item:last-child {
          border-bottom: none !important;
          padding-bottom: 0 !important;
          margin-bottom: 0 !important;
     }
     .uploaded-documents .document-image {
         border: 1px solid #000 !important;
         box-shadow: none !important;
         max-width: 100% !important;
         height: auto !important;
         max-height: 200pt !important;
         object-fit: contain !important;
     }
      .uploaded-documents .document-item p a {
           color: #000 !important;
           text-decoration: underline !important;
           font-size: 10pt;
      }

     /* Ensure all text is black for print */
     body, p, h1, h2, h3, h4, h5, h6, strong, label {
         color: #000 !important;
     }


     .print-hr {
          display: block !important;
          border: none;
          height: 1pt;
          background-color: #000;
          margin: 15pt 0 !important;
     }

}


/* Responsive adjustments for view page */
@media (max-width: 767px) {
    .school-details-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
        justify-content: center;
    }
    .school-details-header .school-logo img { max-width: 80px; }
    .school-details-header .school-info { text-align: center; }
    .school-details-header .school-info h2 { font-size: 1.5em; }
    .school-details-header .admission-title-box { text-align: center; }
    .school-details-header .admission-title-box h2 { font-size: 1.2em; }


    .submission-details p {
        font-size: 1em;
    }
     .submission-details p strong {
         display: block;
         min-width: unset;
         margin-right: 0;
         margin-bottom: 5px;
     }

     .child-details-with-photo {
         flex-direction: column;
         align-items: center;
         gap: 20px;
     }
     .student-photo-box {
         width: 120px;
         height: 150px;
     }


     .uploaded-documents {
         padding: 10px;
     }
     .uploaded-documents h4 {
         font-size: 1.1em;
     }
}

/* --- Styles for Gallery Page (Album List) --- */
.gallery-container {
    /* Inherits .page-content-container styles */
    margin-top: 30px;
    margin-bottom: 30px;
}

.gallery-container h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.gallery-container p {
    margin-bottom: 20px;
    color: var(--text-color);
}

.gallery-albums-list {
    display: grid; /* Use CSS Grid for album cards */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Responsive columns for albums */
    gap: 20px; /* Space between album cards */
    margin-top: 20px;
}

.album-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--content-background-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Hide anything outside */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effects */
}

.album-card:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* More prominent shadow on hover */
}

.album-card a {
    display: block; /* Make the whole card clickable */
    text-decoration: none; /* Remove underline from link */
    color: inherit; /* Inherit text color */
    padding: 15px; /* Padding inside the card */
}

.album-cover-placeholder {
    width: 100%;
    height: 150px; /* Fixed height for cover area */
    background-color: #eee; /* Light grey background */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Hide overflowing image */
    margin-bottom: 10px; /* Space below the cover */
    border-bottom: 1px solid var(--border-color); /* Separator below cover */
}

.album-icon {
     max-width: 80px; /* Size of the icon */
     height: auto;
     opacity: 0.6; /* Make icon slightly transparent */
}
/* If you use an actual cover photo, style the img tag inside .album-cover-placeholder */
.album-cover-placeholder img:not(.album-icon) {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area */
}


.album-card h3 {
    margin-top: 0;
    margin-bottom: 5px;
    color: var(--primary-color);
    font-size: 1.3em;
}

.album-card p {
    font-size: 0.95em;
    color: var(--text-color);
    margin-bottom: 5px;
}

.album-card p.photo-count {
    font-size: 0.9em;
    color: var(--light-text-color);
    margin-bottom: 0;
    font-weight: bold;
}


/* --- Styles for View Album Page (Photos Grid) --- */
.view-album-container {
    /* Inherits .page-content-container styles */
    margin-top: 30px;
    margin-bottom: 30px;
}

.view-album-container h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.view-album-container p {
    margin-bottom: 15px;
    color: var(--text-color);
}

/* Gallery Navigation (Albums List) */
.gallery-navigation {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--border-color);
}

.gallery-navigation h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--secondary-color);
    font-size: 1.3em;
}

.gallery-navigation .album-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Space between album links */
}

.gallery-navigation .album-list li a {
    display: block;
    padding: 8px 15px;
    background-color: #e9ecef; /* Light background for links */
    color: var(--text-color);
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: 500;
}

.gallery-navigation .album-list li a:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    text-decoration: none;
}

.gallery-navigation .album-list li a.active {
    background-color: var(--primary-color);
    color: var(--white-color);
    font-weight: bold;
}

.current-album-display {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}
.current-album-display h3 {
    margin-top: 0;
    margin-bottom: 5px;
    color: var(--primary-color);
    font-size: 1.6em;
}
.current-album-display p {
    font-size: 0.95em;
    color: var(--light-text-color);
}


.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--content-background-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.gallery-item img,
.gallery-item video {
    display: block;
    width: 100%;
    height: 180px; /* Fixed height for media thumbnails */
    object-fit: cover; /* Cover the area, may crop */
    border-bottom: 1px solid var(--border-color);
}

.gallery-item .media-description {
    font-size: 0.9em;
    color: var(--text-color);
    text-align: center;
    padding: 10px;
    margin: 0; /* Remove default paragraph margin */
    width: 100%; /* Make description take full width */
    background-color: #f9f9f9; /* Light background for description */
}


/* --- Lightbox/Modal Styles (Reused/Updated for Album View) --- */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    padding-top: 50px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.9); /* Black background with opacity */
    backdrop-filter: blur(5px); /* Optional blur effect */
    -webkit-backdrop-filter: blur(5px); /* Safari support */
}

.lightbox-content {
    margin: auto; /* Center the image */
    display: block;
    max-width: 90%; /* Max width of the image */
    max-height: 80vh; /* Max height relative to viewport height */
    object-fit: contain; /* Contain image within max dimensions */
}

.lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px; /* Max width for caption */
    text-align: center;
    color: #ccc; /* Light grey text */
    padding: 10px 0;
    font-size: 1.1em;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1001; /* Above lightbox content */
}

.close-btn:hover,
.close-btn:focus {
    color: #bbb;
}

/* Navigation Buttons (Previous and Next) */
.prev-btn,
.next-btn {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: #f1f1f1;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    z-index: 1001; /* Above lightbox content */
}

.prev-btn {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.next-btn {
    right: 0;
    border-radius: 3px 0 0 3px; /* Adjusted for right side */
}

/* On hover, add a black see-through background color */
.prev-btn:hover,
.next-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Responsive adjustments for lightbox */
@media only screen and (max-width: 700px) {
    .lightbox-content {
        max-width: 100%;
    }
    .prev-btn, .next-btn, .close-btn {
        font-size: 30px;
    }
    .close-btn {
        top: 10px;
        right: 20px;
    }
     .prev-btn, .next-btn {
         padding: 10px;
         margin-top: -30px;
     }
}


/* --- Styles for Admin Manage Albums Page --- */
.manage-albums-container {
    margin-top: 30px;
    margin-bottom: 30px;
}

.manage-albums-container h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.manage-albums-container p {
    margin-bottom: 20px;
    color: var(--text-color);
}

.add-new-album-section h3 {
    margin-top: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 10px;
}

.existing-albums-section h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary-color);
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 10px;
}


/* Table Styling for Albums (Reusing general table styles) */
/* Specific overrides if needed */
.manage-albums-container table {
    /* Inherits general table styles */
}


/* --- Styles for Admin Edit Album Page --- */
.edit-album-container {
    max-width: 700px;
    margin: 30px auto;
    padding: 30px;
    background-color: var(--content-background-color);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}

.edit-album-container h2 {
     color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.edit-album-container p {
     margin-bottom: 25px;
    color: var(--text-color);
    text-align: center;
}

.edit-album-container form {
     margin-bottom: 0;
    text-align: left;
}

/* Reusing form-group styles */
.edit-album-container .form-group {
    margin-bottom: 20px;
}

.edit-album-container .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1em;
}

.edit-album-container .form-group input[type="text"],
.edit-album-container .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 17px;
    font-family: inherit;
    color: var(--text-color);
    background-color: var(--content-background-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.edit-album-container input:focus,
.edit-album-container textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.6);
}

.edit-album-container button[type="submit"] {
    display: block;
    width: 100%;
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 19px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 30px;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.edit-album-container button[type="submit"]:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}


/* --- Styles for Admin Manage Gallery Page (Photos) --- */
.manage-gallery-container {
    margin-top: 30px;
    margin-bottom: 30px;
}

.manage-gallery-container h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.manage-gallery-container p {
    margin-bottom: 20px;
    color: var(--text-color);
}

.upload-media-section h3 { /* Changed from upload-photo-section */
    margin-top: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 10px;
}

.existing-media-section h3 { /* Changed from existing-photos-section */
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary-color);
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 10px;
}

/* Gallery Grid Layout for Admin Manage Photos */
.manage-gallery-container .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.manage-gallery-container .gallery-item {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    background-color: var(--content-background-color);
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.manage-gallery-container .gallery-thumbnail {
    display: block;
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.manage-gallery-container .gallery-item p {
    font-size: 0.9em;
    color: var(--text-color);
    text-align: center;
    margin: 0 0 5px 0;
    word-break: break-word;
}

.manage-gallery-container .gallery-item p strong {
     color: var(--primary-color);
}


.manage-gallery-container .delete-link {
    margin-top: auto;
    text-align: center;
    width: 100%;
    padding-top: 5px;
    border-top: 1px dashed var(--border-color);
}

.manage-gallery-container .delete-link a {
    font-size: 0.9em;
    margin-right: 0;
}


/* --- Styles for Admin Manage Contact Submissions Page --- */
.manage-contact-container {
    margin-top: 30px;
    margin-bottom: 30px;
}

.manage-contact-container h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.manage-contact-container p {
    margin-bottom: 20px;
    color: var(--text-color);
}

.existing-contact-submissions-section h3 {
    margin-top: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 10px;
}


/* Table Styling for Contact Submissions (Reusing general table styles) */
/* Specific overrides if needed */
.manage-contact-container table {
    /* Inherits general table styles */
}


/* --- Styles for Admin Dashboard Page --- */
.admin-dashboard-container {
    margin-top: 30px;
    margin-bottom: 30px;
}

.admin-dashboard-container h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: #f9f9f9;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.stat-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--secondary-color);
    font-size: 1.2em;
}

.stat-card .stat-number {
    font-size: 2em;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0;
}

.dashboard-links h3 {
    margin-top: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 10px;
}

.dashboard-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dashboard-links ul li {
    margin-bottom: 10px;
}

.dashboard-links ul li a {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.dashboard-links ul li a:hover {
    background-color: #003f8f;
}

/* Table Styles for Admin Pages (e.g., manage_admissions, manage_gallery, manage_career) */
.table-responsive {
    overflow-x: auto; /* Enable horizontal scrolling on small screens */
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse; /* Collapse borders between cells */
    margin-bottom: 20px;
    background-color: var(--content-background-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden; /* Ensures rounded corners apply to table content */
}

table thead th {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 1em;
    border-bottom: 1px solid #003f8f;
}

table tbody td {
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 0.95em;
}

table tbody tr:nth-child(even) {
    background-color: #f2f2f2; /* Light grey for even rows */
}

table tbody tr:hover {
    background-color: #e9ecef; /* Slightly darker on hover */
}

table tbody td .button-like-link {
    padding: 6px 10px;
    font-size: 0.9em;
    margin-top: 0;
    margin-left: 0;
    margin-right: 5px;
}

table tbody td .view-link {
    background-color: var(--secondary-color);
}
table tbody td .view-link:hover {
    background-color: #218838;
}

table tbody td .delete-link {
    background-color: var(--error-color);
}
table tbody td .delete-link:hover {
    background-color: #c82333;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }

    header .container {
        flex-direction: column;
        align-items: center;
    }

    .site-title {
        margin-bottom: 15px;
    }
     .site-title a h1 {
         font-size: 24px;
     }


    header nav {
        text-align: center;
        width: 100%;
    }

    header nav ul {
        flex-direction: column;
        align-items: center;
    }

    header nav li {
        margin: 5px 0;
    }
    header nav li:first-child {
        margin-top: 0;
    }

     /* Remove underline effect on mobile for stacked menu */
    header nav a::after {
        display: none;
    }
     header nav a:hover::after {
         width: 0;
     }
     header nav a:hover {
         color: var(--accent-color);
     }


    .page-content-container {
        padding: 15px;
    }

    /* Responsive table for smaller screens */
    table, thead, tbody, th, td, tr {
        display: block;
    }

    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    table tr {
        border: 1px solid var(--border-color);
        margin-bottom: 15px;
        border-radius: 8px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    }

    table td {
        border: none;
        position: relative;
        padding-left: 50% !important; /* Adjust padding for pseudo-element label */
        text-align: right !important; /* Align content to the right */
    }

    table td:before {
        content: attr(data-label); /* Use data-label for the pseudo-element */
        position: absolute;
        left: 0;
        width: 45%; /* Width for the label */
        padding-left: 15px;
        font-weight: bold;
        text-align: left; /* Align label to the left */
        color: var(--primary-color);
    }
    /* Specific adjustment for actions column to prevent label overlap */
    table td[data-label="Actions"] {
        text-align: center !important;
        padding-left: 15px !important; /* Reset padding for actions */
    }
    table td[data-label="Actions"]:before {
        display: none; /* Hide label for actions */
    }


    .contact-details-map {
        flex-direction: column;
        gap: 20px;
    }

    .contact-map {
        height: 250px;
    }

     .dashboard-stats {
         grid-template-columns: 1fr;
     }

     /* Career page specific form adjustments */
     .career-sections {
         flex-direction: column;
     }
     .career-section {
         margin-bottom: 30px;
     }
}
