/* CSS for inner pages of the School Website */

/* Page Header */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/page-header-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 36px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Page Content Layout */
.page-content {
    padding: 0 20px 50px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
}

.content-section {
    flex: 2;
    min-width: 300px;
    padding: 20px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.content-section h2 {
    color: #4285f4;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.content-section p {
    margin-bottom: 20px;
}

/* Sidebar */
.sidebar {
    flex: 1;
    min-width: 250px;
    margin-left: 30px;
}

.sidebar-section {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 30px;
}

.sidebar-section h3 {
    color: #4285f4;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.sidebar-section ul li {
    margin-bottom: 10px;
}

.sidebar-section ul li a {
    color: #333;
    transition: color 0.3s ease;
}

.sidebar-section ul li a:hover {
    color: #4285f4;
}

/* Image Gallery (for gallery page) */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

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

.gallery-item .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .caption {
    transform: translateY(0);
}

/* Contact Form (for contact page) */
.contact-form {
    background-color: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.form-submit {
    background-color: #4285f4;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.form-submit:hover {
    background-color: #3367d6;
}

/* Map (for location page) */
.map-container {
    height: 400px;
    margin-bottom: 30px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Image styles for content sections */
.school-image, .history-image, .founders-image, .vision-image, .mission-image {
    margin-bottom: 25px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.school-image img, .history-image img, .founders-image img, .vision-image img, .mission-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

.image-caption {
    background-color: #f8f8f8;
    padding: 10px;
    font-size: 14px;
    color: #666;
    text-align: center;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

/* Principal profile */
.principal-profile {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
    gap: 20px;
}

.principal-image {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.principal-image img {
    width: 100%;
    height: auto;
    display: block;
}

.principal-info {
    flex: 2;
    min-width: 300px;
}

.principal-message {
    margin-top: 20px;
}

/* Facility styles */
.facility-image {
    margin-bottom: 25px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.facility-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

.facility-card {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.facility-card .facility-image {
    flex: 1;
    min-width: 250px;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

.facility-card .facility-image img {
    height: 100%;
    min-height: 250px;
}

.facility-card .facility-info {
    flex: 2;
    min-width: 300px;
    padding: 20px;
}

/* Faculty/Staff Cards (for faculty page) */
.faculty-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.faculty-card {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.faculty-card:hover {
    transform: translateY(-5px);
}

.faculty-image {
    height: 250px;
    overflow: hidden;
}

.faculty-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.faculty-card:hover .faculty-image img {
    transform: scale(1.05);
}

.faculty-info {
    padding: 20px;
}

.faculty-info h3 {
    color: #4285f4;
    margin-bottom: 5px;
}

.faculty-info .faculty-title {
    color: #666;
    font-style: italic;
    margin-bottom: 15px;
}

.faculty-info .designation {
    color: #666;
    font-style: italic;
    margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        margin-left: 0;
        margin-top: 30px;
    }
    
    .faculty-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}