/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

a {
    text-decoration: none;
    color: #29547c;
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style: none;
}

/* Header styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.top-header {
    background-color: #3d698f;
    padding: 5px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #fff;
}

.contact-info span {
    margin-right: 15px;
    color: #fff;
}

.notice-banner {
    font-weight: bold;
}

.notice-banner a {
    color: #fff;
    text-decoration: underline;
}

/* School title with logo styles */
.school-title {
    display: flex;
    align-items: center;
    padding: 20px;
    flex-wrap: wrap;
    justify-content: center;
    background-color: #fff;
}

.logo-container {
    margin-right: 20px;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    background-color: #ffffff;
    padding: 5px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background-color: #ffffff;
}

.school-logo {
    width: 95%;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.title-text {
    text-align: center;
}

.title-text h1 {
    color: #29547c;
    font-size: 28px;
    margin-bottom: 5px;
}

.title-text h2 {
    color: #555;
    font-size: 18px;
    margin-bottom: 5px;
}

.title-text h3 {
    color: #777;
    font-size: 16px;
    margin-bottom: 8px;
}

.school-info {
    font-size: 14px;
    color: #666;
}

/* Navigation styles */
.main-nav {
    background-color: #29547c;
    padding: 0 20px;
    border-top: 3px solid #f0963f;
}

.main-nav ul {
    display: flex;
    flex-wrap: wrap;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    display: block;
    color: white;
    padding: 15px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.main-nav a:hover {
    background-color: #1e3c5c;
    text-decoration: none;
}

/* Dropdown styles */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    display: block;
    font-weight: normal;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: #29547c;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Image slider styles */
.image-slider {
    position: relative;
    margin: 0 auto;
    max-width: 100%;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 400px;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.caption {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: rgba(41, 84, 124, 0.7);
    color: white;
    padding: 10px;
    text-align: center;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.slider-controls button {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s;
}

.slider-controls button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Main content styles */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.home-content {
    background-color: white;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.home-content h2 {
    color: #29547c;
    margin-bottom: 15px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.home-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.useful-links, .academic-calendar {
    margin-top: 30px;
}

.useful-links h3, .academic-calendar h3 {
    color: #29547c;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.useful-links ul {
    padding-left: 20px;
}

.useful-links li {
    margin-bottom: 5px;
    list-style-type: disc;
}

.calendar-link {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background-color: #f0963f;
    color: white;
    border-radius: 4px;
}

.calendar-link:hover {
    background-color: #db8935;
    text-decoration: none;
}

/* About page styles */
.about-content {
    background-color: white;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.about-content h2 {
    color: #29547c;
    margin-bottom: 25px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.about-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-image {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    padding: 5px;
    margin: 0 auto;
    display: block;
}

.about-content h3 {
    color: #29547c;
    margin: 15px 0 10px;
    border-left: 4px solid #f0963f;
    padding-left: 10px;
}

.about-content p {
    text-align: justify;
    line-height: 1.8;
}

.about-content ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 10px 0;
}

.about-content ul li {
    margin-bottom: 8px;
}

/* Contact page styles */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.contact-info-section, .contact-form-section {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.contact-info-section h3, .contact-form-section h3 {
    color: #29547c;
    margin-bottom: 15px;
    border-left: 4px solid #f0963f;
    padding-left: 10px;
}

.contact-info-section p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input, .form-group textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    background-color: #29547c;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #1e3c5c;
}

.map-section {
    margin-top: 30px;
}

.map-section h3 {
    color: #29547c;
    margin-bottom: 15px;
    border-left: 4px solid #f0963f;
    padding-left: 10px;
}

.map-container {
    height: 400px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.location-map {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Admission page styles */
.admission-notice {
    background-color: #f0f7ff;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
    border-left: 4px solid #29547c;
}

.download-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #f0963f;
    color: white;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.download-btn:hover {
    background-color: #db8935;
    text-decoration: none;
}

.admission-process, .class-wise-info, .fee-structure, .contact-admission {
    margin-bottom: 30px;
}

.admission-process ol {
    padding-left: 20px;
    margin: 15px 0;
}

.admission-process ol li {
    margin-bottom: 10px;
}

.class-wise-info h4 {
    color: #29547c;
    margin: 20px 0 10px;
    font-size: 16px;
}

.class-wise-info ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 15px;
}

.class-wise-info ul li {
    margin-bottom: 5px;
}

.fee-note {
    font-style: italic;
    margin-top: 10px;
    color: #666;
}

/* Common inner page styles */
.page-content {
    background-color: white;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-content h2 {
    color: #29547c;
    margin-bottom: 25px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.page-content h3 {
    color: #29547c;
    margin: 15px 0 10px;
    border-left: 4px solid #f0963f;
    padding-left: 10px;
}

.page-image {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    padding: 5px;
    margin: 15px auto;
    display: block;
}

/* Table styles for results, etc. */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.data-table th, .data-table td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
}

.data-table th {
    background-color: #29547c;
    color: white;
}

.data-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.data-table tr:hover {
    background-color: #e6e6e6;
}

/* Gallery styles */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-item {
    border: 1px solid #ddd;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    padding: 10px;
    text-align: center;
    background-color: #f0f0f0;
}

/* Mobile menu styles */
.mobile-toggle {
    display: none;
    background-color: #29547c;
    color: white;
    border: none;
    padding: 10px 15px;
    width: 100%;
    text-align: right;
    font-size: 16px;
    cursor: pointer;
}

/* Footer styles */
footer {
    background-color: #1a3c5e;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 30px;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: white;
    margin: 0 10px;
}

.copyright {
    font-size: 14px;
    color: #ccc;
}

/* Responsive styles */
@media (max-width: 768px) {
    .top-header {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info {
        margin-bottom: 5px;
    }
    
    .school-title {
        flex-direction: column;
    }
    
    .logo-container {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .main-nav ul {
        flex-direction: column;
        display: none;
    }
    
    .main-nav.show ul {
        display: flex;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .dropdown-content {
        position: static;
        box-shadow: none;
        background-color: #1e3c5c;
    }
    
    .dropdown-content a {
        color: white;
        padding-left: 30px;
    }
    
    .dropdown-content a:hover {
        background-color: #13263c;
        color: white;
    }
    
    .slider-container {
        height: 250px;
    }
    
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .data-table {
        font-size: 14px;
    }
    
    .data-table th, .data-table td {
        padding: 6px 8px;
    }
}

/* Slider indicators */
.slider-indicators {
    position: absolute;
    bottom: 10px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 2;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: background-color 0.3s;
}

.indicator.active {
    background-color: #f0963f;
}

/* Fee Payment Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 100;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #29547c;
}

/* Login Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-form h3 {
    color: #29547c;
    margin-bottom: 10px;
    text-align: center;
}

.login-form .form-group {
    margin-bottom: 15px;
}

.login-form .submit-btn {
    margin-top: 10px;
}

/* Form validation styles */
.form-group.error input, 
.form-group.error textarea {
    border-color: #ff3c3c;
    background-color: #fff2f2;
}

.error-message {
    color: #ff3c3c;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Lightbox Gallery */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    text-align: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    border: 3px solid white;
}

.lightbox-caption {
    color: white;
    margin-top: 10px;
    font-size: 16px;
}

.close-lightbox {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.lightbox-prev, 
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s;
}

.lightbox-prev {
    left: 10px;
}

.lightbox-next {
    right: 10px;
}

.lightbox-prev:hover, 
.lightbox-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Notice bar with animation */
.notice-banner {
    font-weight: bold;
    overflow: hidden;
    white-space: nowrap;
}

.notice-banner p {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(-100%);
    }
}

/* Admission Form Section */
.admission-form {
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 5px;
    border-left: 4px solid #29547c;
    margin-top: 20px;
}

.admission-form h3 {
    color: #29547c;
    margin-bottom: 15px;
}

.admission-form .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.admission-form .form-group {
    flex: 1 1 250px;
}

.admission-form .form-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.reset-btn {
    background-color: #f1f1f1;
    color: #333;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
}

.reset-btn:hover {
    background-color: #e0e0e0;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #29547c;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 99;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #1e3c5c;
}

/* Accessibility tweaks */
:focus {
    outline: 2px solid #29547c;
    outline-offset: 2px;
}

/* Calendar table styles */
.calendar-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.calendar-table th, 
.calendar-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

.calendar-table th {
    background-color: #29547c;
    color: white;
}

.calendar-table .holiday {
    background-color: #ffeeee;
    color: #cc0000;
}

.calendar-table .event {
    background-color: #ffffee;
    color: #996600;
}

.month-header {
    background-color: #e6eef7;
    color: #29547c;
    font-weight: bold;
}

/* Social media icons */
.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.social-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #29547c;
    color: white;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.social-icon:hover {
    background-color: #1e3c5c;
}

/* Academic calendar frame styling */
.calendar-frame {
    width: 100%;
    border: 1px solid #ddd;
    padding: 5px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.calendar-frame img {
    width: 100%;
    height: auto;
}

.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f1f1f1;
    padding: 5px 10px;
    border-bottom: 1px solid #ddd;
}

.calendar-page-info {
    font-size: 12px;
    color: #666;
}

.calendar-zoom-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.calendar-nav-btn,
.calendar-zoom-btn {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 2px 5px;
    cursor: pointer;
}

.calendar-nav-btn:hover,
.calendar-zoom-btn:hover {
    background-color: #e9e9e9;
}

/* Breadcrumb navigation */
.breadcrumb {
    padding: 10px 0;
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.breadcrumb a {
    color: #29547c;
}

.breadcrumb span {
    margin: 0 5px;
}

/* print styles */
@media print {
    header, footer, .no-print {
        display: none;
    }
    
    body {
        background-color: white;
    }
    
    main {
        padding: 0;
        max-width: 100%;
    }
    
    .page-content {
        box-shadow: none;
        padding: 0;
    }
} 