:root {
    --primary-color: #2196c3;
    --secondary-color: #f9a825;
    --text-color: #444;
    --background-color: #f7fafd;
    --card-shadow: 0 4px 16px rgba(33,150,195,0.08);
    --hover-shadow: 0 8px 24px rgba(33,150,195,0.16);
    --border-radius: 16px;
    --spacing-unit: 1rem;
}

body {
    margin: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    background: var(--background-color);
    color: var(--text-color);
    position: relative;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('assets/images/school-building.jpg') center center/cover no-repeat;
    opacity: 0.13;
    z-index: -1;
    pointer-events: none;
}

/* Responsive typography */
html {
    font-size: 16px;
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 13px;
    }
}

.header {
    text-align: center;
    background: #fff;
    padding: clamp(1rem, 5vw, 2rem) clamp(0.5rem, 3vw, 1rem);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    position: relative;
}

.school-logo {
    max-width: min(320px, 90%);
    width: 100%;
    height: auto;
    margin-bottom: clamp(0.5rem, 3vw, 1rem);
}

.school-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: var(--primary-color);
    margin: 0.2rem 0 0.5rem 0;
    font-weight: 700;
    letter-spacing: 1px;
}

.school-address {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.icon-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 2rem;
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

.icon-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    text-align: center;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.icon-card:hover, .icon-card:focus {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--hover-shadow);
}

.icon-card i {
    font-size: 2.8rem;
    color: #43a047;
    margin-bottom: 1rem;
}

.icon-card h2 {
    font-size: 1.4rem;
    color: #2196c3;
    margin: 0.5rem 0 0.7rem 0;
    font-weight: 700;
}

.icon-card p {
    font-size: 1rem;
    color: #444;
    margin: 0;
}

.footer {
    background: #2196c3;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 3rem;
    font-size: 1rem;
    letter-spacing: 1px;
    position: relative;
}

.van-photo {
    width: 100%;
    height: clamp(140px, 20vw, 160px);
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 8px rgba(33,150,195,0.10);
}

.about-section {
    background: #fff;
    margin: 2.5rem auto 0 auto;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(33,150,195,0.08);
    max-width: 800px;
    text-align: left;
}

.about-section h2 {
    color: #2196c3;
    font-size: 1.7rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.about-section p {
    color: #444;
    font-size: 1.08rem;
    margin-bottom: 0.7rem;
    line-height: 1.7;
}

.about-notice-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 2.5rem;
    max-width: 1100px;
    margin: 2.5rem auto 0 auto;
}

@media (max-width: 768px) {
    .about-notice-row {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .about-section {
        width: 100%;
        margin: 0;
        order: 1;
    }
    
    .notice-board {
        width: 100%;
        margin: 0 auto;
        order: 2;
    }
}

.contact-details {
    position: static;
    background: rgba(255,255,255,0.92);
    padding: 1rem 1.2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(33,150,195,0.10);
    font-size: 1rem;
    color: #1976d2;
    min-width: 220px;
    max-width: 350px;
    line-height: 1.5;
    margin: 2.5rem auto 1.5rem auto;
    display: block;
    text-align: left;
}

.contact-details strong {
    color: #2196c3;
    font-size: 1.08rem;
}

@media (max-width: 600px) {
    .contact-details {
        position: static;
        margin: 0.5rem auto 0.5rem auto;
        display: block;
        text-align: left;
        max-width: 95vw;
    }
}

.icon-photo {
    width: 100%;
    height: clamp(140px, 20vw, 160px);
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 8px rgba(33,150,195,0.10);
}

.corner-logo {
    position: fixed;
    top: clamp(8px, 2vw, 25px);
    right: clamp(8px, 2vw, 20px);
    width: clamp(48px, 8vw, 100px);
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    z-index: 101;
    background: rgba(255,255,255,0.85);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(33,150,195,0.13);
    padding: clamp(3px, 1vw, 6px);
}

@media (max-width: 600px) {
    .corner-logo {
        width: 48px;
        height: 48px;
        top: 8px;
        right: 8px;
        padding: 3px;
    }
}

.directors-message-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(33,150,195,0.10);
    max-width: 420px;
    margin: 2.5rem auto 2rem auto;
    padding: 1.5rem 1.2rem 1.2rem 1.2rem;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.directors-message-card h2 {
    font-size: 2rem;
    color: #222;
    margin-bottom: 1rem;
    font-weight: 700;
}

.director-photo {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.2rem;
    box-shadow: 0 2px 8px rgba(33,150,195,0.10);
    background: #f7fafd;
}

.directors-message-text {
    background: #fafafa;
    border-radius: 0 0 8px 8px;
    padding: 1.1rem 1rem 1.2rem 1rem;
    color: #222;
    font-size: 1.08rem;
    text-align: left;
    margin-bottom: 1.1rem;
    line-height: 1.7;
}

.view-more-btn {
    display: inline-block;
    background: #1976d2;
    color: #fff;
    font-size: 1.08rem;
    font-weight: 600;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}

.view-more-btn:hover {
    background: #1565c0;
}

.directors-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background: rgba(0,0,0,0.45);
}

.directors-modal-content {
    width: min(90%, 800px);
    max-height: 90vh;
    overflow-y: auto;
    padding: clamp(1rem, 4vw, 2rem);
    margin: 2rem auto;
    background: #fff;
    border-radius: var(--border-radius);
    position: relative;
    box-shadow: var(--card-shadow);
}

.directors-modal-content h2 {
    margin-top: 0;
    color: #1976d2;
    font-size: 2rem;
}

.close-modal {
    position: absolute;
    top: 16px;
    right: 22px;
    font-size: 2rem;
    color: #1976d2;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.2s;
}
.close-modal:hover {
    color: #d32f2f;
}

.principal-name {
    margin-top: 0.7rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1976d2;
    letter-spacing: 0.5px;
}
.principal-designation {
    display: block;
    font-size: 1rem;
    color: #444;
    font-weight: 500;
    margin-top: 0.1rem;
    letter-spacing: 0.5px;
}

.message-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2.2rem;
    margin: 2.5rem auto 1.5rem auto;
    flex-wrap: wrap;
    max-width: 900px;
}

.message-row .directors-message-card,
.message-row .principals-message-card {
    flex: 1 1 340px;
    max-width: 400px;
    min-width: 270px;
    margin: 0;
}

@media (max-width: 900px) {
    .message-row {
        flex-direction: column;
        gap: clamp(1rem, 3vw, 2rem);
        padding: 0 clamp(1rem, 3vw, 2rem);
    }
    .message-row .directors-message-card,
    .message-row .principals-message-card {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
}

.gallery-icon {
    font-size: 2.8rem;
    color: #f9a825;
    margin-bottom: 1rem;
}

.gallery-modal-content {
    max-width: 350px;
    text-align: center;
}

.gallery-options {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 2rem;
    align-items: center;
}

.gallery-btn {
    display: block;
    background: #1976d2;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.7rem 2.2rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(33,150,195,0.10);
}
.gallery-btn:hover {
    background: #1565c0;
}

.photo-gallery-content {
    max-width: 900px;
    text-align: center;
    background: #fff;
}

.photo-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(0.5rem, 2vw, 1rem);
    padding: clamp(0.5rem, 2vw, 1rem);
}

.gallery-photo {
    width: 100%;
    height: clamp(200px, 30vw, 300px);
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-icon-image {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 8px rgba(33,150,195,0.10);
    background: #f7fafd;
}

.contact-details-inline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(0.5rem, 2vw, 1rem);
    padding: clamp(0.5rem, 2vw, 1rem);
    background: rgba(255,255,255,0.92);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    margin: clamp(1rem, 3vw, 2.5rem) auto;
    max-width: 1200px;
}

.contact-details-inline .contact-label {
    font-weight: 700;
    color: #1976d2;
    margin-right: 1.2rem;
    font-size: 1.13rem;
}

.contact-details-inline .contact-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #1976d2;
    font-size: 1.08rem;
}

.contact-details-inline .contact-item i {
    font-size: 1.15rem;
    color: #d81b60;
}

.contact-details-inline a {
    color: #1976d2;
    text-decoration: underline;
}

.social-stickers {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.2rem;
    margin: 0;
}

.sticker {
    width: 40px;
    height: 40px;
}

.sticker i {
    font-size: 1.1rem;
}

.sticker-label {
    font-size: 0.7rem;
}

.highlight-tlws {
    color: #1976d2;
    background: #fffde7;
    padding: 0 0.2em;
    border-radius: 4px;
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(33,150,195,0.07);
}

.vision-message-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(33,150,195,0.10);
    max-width: 400px;
    min-width: 270px;
    margin: 0;
    flex: 1 1 340px;
    text-align: center;
    border: 1px solid #e0e0e0;
    padding: 1.5rem 1.2rem 1.2rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-footer-vertical {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    background: rgba(21,58,138,0.92);
    border-radius: 16px 0 0 16px;
    padding: 1.1rem 0.7rem;
    z-index: 2000;
    box-shadow: 0 2px 8px rgba(33,150,195,0.10);
}

.social-footer-vertical .social-icon {
    color: #f9c97b;
    font-size: 2.1rem;
    transition: color 0.2s, transform 0.2s;
    margin: 0;
    text-decoration: none;
}

.social-footer-vertical .social-icon:hover {
    color: #fff176;
    transform: scale(1.15);
}

@media (max-width: 700px) {
    .social-footer-vertical {
        top: unset;
        bottom: 0.5rem;
        right: 0.5rem;
        left: unset;
        transform: none;
        flex-direction: row;
        border-radius: 12px;
        padding: 0.5rem 0.7rem;
        gap: 1.2rem;
    }
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    z-index: 3000;
    flex-direction: column;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 4px 32px rgba(33,150,195,0.18);
    background: #fff;
}

.lightbox-close {
    position: absolute;
    top: 2.5rem;
    right: 3.5rem;
    font-size: 3rem;
    color: #fffde7;
    cursor: pointer;
    font-weight: bold;
    z-index: 3100;
    transition: color 0.2s;
}
.lightbox-close:hover {
    color: #f9c97b;
}
@media (max-width: 700px) {
    .lightbox {
        padding: 1rem;
    }
    
    .lightbox-close {
        top: 1.2rem;
        right: 1.2rem;
        font-size: 2.2rem;
    }
    .lightbox-img {
        max-width: 95vw;
        max-height: 80vh;
    }
}

.notice-board {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: clamp(1rem, 3vw, 1.5rem);
    width: min(350px, 90%);
    margin: 0 auto;
}

.notice-board-header {
    background: #2196c3;
    color: #fff;
    padding: 0.8rem;
    border-radius: 8px;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
}

.notice-board-content {
    padding: 1rem 0;
    line-height: 1.6;
}

.admissions-main {
    font-size: 2.2rem;
    color: #2196c3;
    font-weight: 700;
    display: block;
    margin-bottom: 0.3rem;
}

.admissions-open-small {
    font-size: 1.8rem;
    color: #43a047;
    font-weight: 700;
    display: block;
    margin-bottom: 0.3rem;
}

.admissions-classes {
    font-size: 1.4rem;
    color: #f9a825;
    font-weight: 600;
    display: block;
}

@media (max-width: 700px) {
    .notice-board {
        min-width: 90%;
        max-width: 95%;
        padding: 1.5rem;
        margin: 1rem auto;
    }
    
    .notice-board-header {
        font-size: 1.3rem;
        padding: 0.7rem;
    }
    
    .admissions-main {
        font-size: 2rem;
    }
    
    .admissions-open-small {
        font-size: 1.6rem;
    }
    
    .admissions-classes {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .notice-board {
        padding: 1.2rem;
    }
    
    .notice-board-header {
        font-size: 1.2rem;
        padding: 0.6rem;
    }
    
    .admissions-main {
        font-size: 1.8rem;
    }
    
    .admissions-open-small {
        font-size: 1.4rem;
    }
    
    .admissions-classes {
        font-size: 1.2rem;
    }
}

/* Google Fonts for Pacifico */
@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');

.social-stickers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    margin: 1.5rem 0 2.5rem 0;
}
.sticker {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: #407088;
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(33,150,195,0.10);
    position: relative;
}
.sticker-label {
    display: block;
    font-size: 0.85rem;
    color: #fff;
    font-weight: 600;
    margin-top: 0.2rem;
    letter-spacing: 1px;
    text-align: center;
    pointer-events: none;
}
.sticker i {
    color: #fff;
    font-size: 2.2rem;
}
.sticker:hover {
    background: #1565c0;
    transform: scale(1.08);
}

.kids-logo {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(33,150,195,0.13);
    background: #fff;
    z-index: 10;
}

.video-gallery-content {
    max-width: 90vw;
    width: 100%;
    text-align: center;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(33,150,195,0.18);
    position: relative;
    margin: 5vh auto;
    padding: 2rem 1rem 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#video-gallery-modal video {
    width: 100%;
    max-width: 800px;
    max-height: 70vh;
    height: auto;
    border-radius: 12px;
    background: #000;
    box-shadow: 0 2px 8px rgba(33,150,195,0.10);
}
#video-gallery-modal .close-modal {
    position: absolute;
    top: 16px;
    right: 22px;
    font-size: 2rem;
    color: #1976d2;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.2s;
    z-index: 10;
}
@media (max-width: 900px) {
    .video-gallery-content {
        padding: 1rem;
    }
    
    #video-gallery-modal video {
        max-width: 95vw;
        max-height: 70vh;
    }
}

.faq-section {
    max-width: 800px;
    margin: clamp(2rem, 5vw, 3rem) auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
}
.faq-section h2 {
    color: #2196c3;
    font-size: 1.7rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
}
.faq-item {
    background: #fff;
    border-radius: var(--border-radius);
    padding: clamp(1rem, 3vw, 1.5rem);
    margin-bottom: clamp(0.5rem, 2vw, 1rem);
    box-shadow: var(--card-shadow);
}
.faq-item h3 {
    font-size: 1.15rem;
    color: #1976d2;
    margin-bottom: 0.3rem;
    font-weight: 600;
}
.faq-item p {
    color: #444;
    font-size: 1.05rem;
    margin: 0 0 0.5rem 0;
}

/* Touch-friendly improvements */
@media (hover: none) {
    .icon-card:hover {
        transform: none;
    }
    
    .icon-card:active {
        transform: scale(0.98);
    }
    
    .view-more-btn:active {
        transform: scale(0.95);
    }
}

@media (max-width: 1024px) {
    .icon-section {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
        max-width: 900px;
    }
}

@media (max-width: 700px) {
    .icon-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 98vw;
        padding: 0 0.5rem;
    }
    .icon-card:last-child:nth-child(odd) {
        grid-column: auto;
        justify-self: stretch;
        max-width: 100%;
    }
}

/* Center the last card if odd number of cards */
.icon-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 500px;
} 