/* Compact CSS for St. Joseph School Website */
/* This file provides more compact styling with smaller fonts and better alignment */

/* Base Typography Adjustments */
body {
    font-size: 14px;
    line-height: 1.5;
}

h1 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

h2 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
}

h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

p {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

/* Container and Layout Adjustments */
.container {
    max-width: 1100px;
    padding: 0 1.5rem;
}

/* Header Adjustments */
.header {
    padding: 0.75rem 0;
}

.logo img {
    width: 100px;
    height: 100px;
}

.nav-menu a {
    font-size: 16px;
    padding: 1rem 0.8rem;
}

/* Section Spacing */
.inner-section {
    padding: 2rem 0;
}

.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.8rem;
}

.section-header h2::after {
    bottom: -8px;
    height: 3px;
}

/* Content Grid Adjustments */
.content-grid {
    gap: 2rem;
    align-items: flex-start;
}

.content-text h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.content-text h2::after {
    bottom: -6px;
    height: 2px;
}

.content-text p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* Card Adjustments */
.stat-item, .academic-card, .facility-card, .event-card, 
.teacher-card, .achievement-card, .management-card,
.feature-item, .value-item, .facility-detailed-card,
.sports-card, .other-facility-card, .safety-item,
.plan-card, .development-card, .philosophy-item {
    padding: 1.2rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
}

/* Image Adjustments */
.content-image img, .facility-card img, .management-card img,
.sports-card img, .facility-detailed-card img {
    border-radius: 10px;
}

/* Button Adjustments */
.btn {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Form Adjustments */
.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 12px;
    font-size: 0.9rem;
}

/* Footer Adjustments */
.footer {
    padding: 1.2rem 0 0.5rem;
    background: linear-gradient(135deg, #1a3668 0%, #254a8a 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.footer-section {
    padding: 0 0.4rem;
}

.footer .logo {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer .logo img {
    width: 36px;
    height: 36px;
    border: 2px solid #ffd700;
}

.footer .logo h3 {
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.3;
}

.footer-section h3 {
    color: #ffd700;
    font-size: 1rem;
    margin-bottom: 0.7rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

.footer-section p {
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 0.8rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.3rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: block;
    padding: 0.1rem 0;
}

.footer-section ul li a:hover {
    color: #ffd700;
    transform: translateX(3px);
}

.footer-section .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    line-height: 1.3;
}

.footer-section .contact-item i {
    color: #ffd700;
    font-size: 0.8rem;
    margin-top: 0.15rem;
    min-width: 14px;
}

.social-links {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.social-links a {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.75rem;
}

.social-links a:hover {
    background: #ffd700;
    color: #1e3c72;
    transform: translateY(-2px);
}

.admission-notice {
    background: rgba(255, 215, 0, 0.15);
    padding: 0.8rem;
    border-radius: 6px;
    text-align: center;
}

.admission-notice h4 {
    color: #ffd700;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.admission-notice p {
    margin-bottom: 0.6rem;
    font-size: 0.75rem;
    line-height: 1.3;
}

.btn-secondary {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 15px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.6rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    line-height: 1.4;
}

.footer-bottom p {
    margin: 0;
}

/* Responsive Adjustments for Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }
    
    .footer-section {
        padding: 0;
    }
    
    .footer .logo {
        margin-bottom: 0.6rem;
    }
    
    .footer-section h3 {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    .footer-section .contact-item {
        font-size: 0.75rem;
        gap: 0.4rem;
    }
    
    .social-links {
        margin-bottom: 0.8rem;
    }
    
    .admission-notice {
        padding: 0.6rem;
    }
    
    .admission-notice h4 {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .footer {
        padding: 1rem 0 0.5rem;
    }
    
    .footer-section h3 {
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        font-size: 0.7rem;
    }
}

/* Page Header Adjustments */
.page-header {
    min-height: 40vh;
}

.page-header-content {
    padding: 30px 0;
}

.page-header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
}

.page-header p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* Hero Section Adjustments */
.hero {
    min-height: 90vh;
    padding-top: 70px;
}

.hero-content {
    gap: 3rem;
}

.hero-title {
    font-size: 2.8rem;
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.hero-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.hero-buttons {
    gap: 0.75rem;
}

/* Stats Section Adjustments */
.stats-section {
    padding: 2rem 0;
}

.stats-grid {
    gap: 1.5rem;
}

/* About Section Adjustments */
.about-section {
    padding: 2rem 0;
}

.about-content {
    gap: 3rem;
}

.features-grid {
    gap: 1.2rem;
}

.feature-item {
    padding: 1.2rem;
}

.feature-item h4 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.feature-item p {
    font-size: 0.85rem;
}

/* Academics Section Adjustments */
.academics-section {
    padding: 2rem 0;
}

.academics-grid {
    gap: 1.5rem;
}

.academic-card {
    padding: 1.5rem;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.academic-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.academic-card p {
    margin-bottom: 1rem;
}

.academic-card ul {
    font-size: 0.9rem;
}

/* Facilities Section Adjustments */
.facilities-section {
    padding: 2rem 0;
}

.facilities-grid {
    gap: 1.5rem;
}

.facility-content {
    padding: 1.2rem;
}

.facility-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
}

.facility-content p {
    font-size: 0.9rem;
}

/* Events Section Adjustments */
.events-section {
    padding: 2rem 0;
}

.events-grid {
    gap: 1.5rem;
}

.event-content {
    padding: 1.2rem;
}

.event-date {
    padding: 0.2rem 0.8rem;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

.event-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
}

.event-content p {
    font-size: 0.9rem;
}

/* Gallery Section Adjustments */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 0 auto;
    max-width: 1200px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 10px 10px 0 0;
    flex-shrink: 0;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 1.5rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.gallery-overlay p {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Teachers Section Adjustments */
.teachers-section {
    padding: 40px 0;
}

.teachers-grid {
    gap: 1.5rem;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.teacher-card {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.teacher-card:hover {
    transform: translateY(-10px);
    background: white;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.teacher-card img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 0.75rem;
    border: 4px solid #667eea;
    display: block;
    flex-shrink: 0;
}

.teacher-info {
    width: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.teacher-info h3 {
    font-size: 1.1rem;
    color: #1e3c72;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.teacher-role {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    line-height: 1.3;
}

.teacher-qualification {
    color: #666;
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

/* Events Section Adjustments */
.events-section {
    padding: 2rem 0;
}

.events-grid {
    gap: 1.5rem;
}

.event-content {
    padding: 1.2rem;
}

.event-date {
    padding: 0.2rem 0.8rem;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

.event-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
}

.event-content p {
    font-size: 0.9rem;
}

/* Gallery Section Adjustments */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 10px;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 1.5rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.gallery-overlay p {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Contact Section Adjustments */
.contact-section {
    padding: 2rem 0;
}

.contact-content {
    gap: 3rem;
}

.contact-item {
    padding: 1.2rem;
    gap: 0.8rem;
}

.contact-item h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.contact-item p {
    font-size: 0.9rem;
}

.contact-form {
    padding: 1.5rem;
}

.contact-form h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .content-grid {
        gap: 1.5rem;
    }
    
    .stats-grid,
    .academics-grid,
    .facilities-grid,
    .events-grid {
        gap: 1rem;
    }
    
    .stat-item,
    .academic-card,
    .facility-card,
    .event-card {
        padding: 1rem;
    }
    
    .teachers-grid {
        gap: 1rem;
    }
    
    .teacher-card {
        padding: 1rem;
    }
    
    .teacher-card img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    h2 {
        font-size: 1.2rem;
    }
    
    .hero-title {
        font-size: 1.7rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}

/* Footer Enhancements */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-section {
    padding: 0 0.5rem;
}

.footer .logo {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer .logo img {
    width: 40px;
    height: 40px;
    border: 2px solid #ffd700;
}

.footer .logo h3 {
    font-size: 1rem;
    margin: 0;
    line-height: 1.3;
}

.footer-section h3 {
    color: #ffd700;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

.footer-section p {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.4rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: block;
    padding: 0.15rem 0;
}

.footer-section ul li a:hover {
    color: #ffd700;
    transform: translateX(3px);
}

.footer-section .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
    line-height: 1.4;
}

.footer-section .contact-item i {
    color: #ffd700;
    font-size: 0.85rem;
    margin-top: 0.2rem;
    min-width: 16px;
}

.social-links {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

.social-links a {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.social-links a:hover {
    background: #ffd700;
    color: #1e3c72;
    transform: translateY(-2px);
}

.admission-notice {
    background: rgba(255, 215, 0, 0.15);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.admission-notice h4 {
    color: #ffd700;
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.admission-notice p {
    margin-bottom: 0.7rem;
    font-size: 0.8rem;
    line-height: 1.4;
}

.btn-secondary {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 15px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.8rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    line-height: 1.5;
}

.footer-bottom p {
    margin: 0;
}
