/* 
   S D Memorial Sanskar Public School - Stylesheet
   Clean, responsive design with professional school colors
   Color Scheme: Blue (#1e3a8a, #3b82f6), Green (#059669, #10b981), White (#ffffff)
*/

/* ===== Root Variables ===== */
:root {
    --primary-blue: #1e3a8a;
    --secondary-blue: #3b82f6;
    --primary-green: #059669;
    --secondary-green: #10b981;
    --light-gray: #f3f4f6;
    --white: #ffffff;
    --dark-text: #1f2937;
    --light-text: #6b7280;
    --border-color: #e5e7eb;
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--white);
}

/* ===== Navigation Bar ===== */
.navbar {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.school-logo h1 {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding-bottom: 0.5rem;
    border-bottom: 3px solid transparent;
    letter-spacing: 0.2px;
}

.nav-link:hover {
    color: #fbbf24;
    border-bottom-color: #fbbf24;
    text-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

/* Hamburger Menu for Mobile */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background-color: var(--white);
    margin: 5px 0;
    border-radius: 3px;
    transition: 0.3s;
}

/* ===== Sections & General Styling ===== */
.section {
    padding: 4rem 1rem;
    min-height: auto;
}

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

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-blue);
    position: relative;
    padding-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    animation: fadeInDown 0.6s ease-out;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    border-radius: 3px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* ===== Home Section ===== */
.home-section {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f5ff 50%, #f0fdf4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 650px;
    position: relative;
    overflow: hidden;
}

.home-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59,130,246,0.08), transparent);
    border-radius: 50%;
    z-index: 0;
}

.home-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(16,185,129,0.06), transparent);
    border-radius: 50%;
    z-index: 0;
}

/* ===== Header Banner ===== */
.header-banner {
    position: relative;
    overflow: hidden;
    background: #000;
}

.header-banner .banner-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.55) saturate(1.05);
    z-index: 0;
}

.header-banner .banner-content {
    position: relative;
    z-index: 2;
    padding: 2.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.banner-text h2 {
    color: var(--white);
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
}

.banner-sub { color: rgba(255,255,255,0.9); font-size: 0.95rem; }

.leader-cards {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.leader-card {
    background: rgba(255,255,255,0.05);
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 180px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.leader-avatar {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.85);
}

.leader-info h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 2px; }
.leader-role { color: rgba(255,255,255,0.85); font-size: 0.82rem; }

@media (max-width: 768px) {
    .header-banner .banner-content { flex-direction: column; align-items: flex-start; }
    .leader-cards { width: 100%; justify-content: flex-start; }
    .leader-card { min-width: 140px; }
}

@media (max-width: 480px) {
    .banner-text h2 { font-size: 1.1rem; }
    .leader-avatar { width: 48px; height: 48px; }
    .leader-card { padding: 0.5rem; gap: 0.6rem; }
}

/* ===== Leadership Message Section ===== */
.leadership-message-section {
    background: linear-gradient(135deg, #f8f4ff 0%, #fff 100%);
    padding: 3.5rem 1rem;
}

.message-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.message-card {
    background: linear-gradient(135deg, var(--white) 0%, #fafbff 100%);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.12);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 5px solid var(--primary-blue);
    display: flex;
    flex-direction: column;
    position: relative;
}

.message-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(59,130,246,0.05), transparent);
    border-radius: 50%;
    z-index: 1;
}

.message-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 20px 50px rgba(30, 58, 138, 0.18);
    border-top-color: var(--secondary-blue);
}

.card-photo {
    width: 100%;
    height: 320px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.leader-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center ;
    display: block;
}
.leader-photo-coordinator {
    object-position: center 10%;
}
html {
    scroll-behavior: smooth;
}


.card-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.card-body h3 {
    color: var(--primary-blue);
    font-size: 1.25rem;
    margin-bottom: 0.4rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.leader-title {
    color: var(--primary-green);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.message-text {
    flex-grow: 1;
    color: var(--light-text);
    line-height: 1.85;
    font-size: 0.95rem;
    font-style: italic;
    font-weight: 500;
}

.message-text p {
    margin: 0;
}

@media (max-width: 768px) {
    .message-cards-container { grid-template-columns: 1fr; gap: 1.5rem; }
    .card-body { padding: 1.5rem; }
    .card-photo { height: 220px; }
}

@media (max-width: 480px) {
    .card-photo { height: 180px; }
    .card-body { padding: 1rem; }
    .card-body h3 { font-size: 1rem; }
    .message-text { font-size: 0.9rem; }
}

.home-content {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.home-content h2 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1.5rem;
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 2.5rem;
    letter-spacing: 0.3px;
    animation: fadeInDown 0.8s ease-out;
}

.welcome-text {
    font-size: 1.05rem;
    color: var(--light-text);
    line-height: 1.9;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.welcome-text p {
    margin-bottom: 1rem;
}

/* CTA Button */
.cta-button {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    color: var(--white);
    border: none;
    padding: 1.1rem 3rem;
    font-size: 1.05rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.35);
    position: relative;
    overflow: hidden;
    animation: slideUp 0.8s ease-out 0.3s both;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    transition: left 0.3s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.5);
}

.cta-button:active {
    transform: translateY(-2px) scale(0.98);
}

/* ===== About Section ===== */
.about-section {
    background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    background: var(--white);
    padding: 2.2rem;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 5px solid var(--primary-green);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(16,185,129,0.05), transparent);
    border-radius: 50%;
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    border-left-color: var(--secondary-green);
}

.about-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.about-card p {
    color: var(--light-text);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-card ul {
    list-style: none;
    color: var(--light-text);
}

.about-card li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.about-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: bold;
}

/* ===== Student Activities Section ===== */
.activities-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #f0fdf4 100%);
    padding: 4rem 0;
}

.activities-section h2 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--light-text);
    font-size: 1rem;
    margin-bottom: 3rem;
    font-style: italic;
}

/* Gallery Wrapper & Carousel */
.gallery-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto 3rem;
    padding: 0 3rem;
}

.gallery-carousel {
    display: flex;
    overflow: hidden;
    border-radius: 15px;
    background: var(--white);
    box-shadow: 0 10px 40px rgba(30, 58, 138, 0.15);
    position: relative;
}

/* Activity Card Styles */
.activity-card {
    min-width: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-image-wrapper {
    position: relative;
    overflow: hidden;
    background-color: var(--light-gray);
    height: 300px;
    flex-shrink: 0;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0) 0%, rgba(30, 58, 138, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.activity-card:hover .card-overlay {
    opacity: 1;
}

.card-content {
    padding: 2rem;
    background: var(--white);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.activity-card:hover .card-content h3 {
    color: var(--secondary-green);
}

.card-content p {
    color: var(--light-text);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Gallery Navigation Buttons */
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: var(--primary-blue);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 1rem 0.8rem;
    border-radius: 50%;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    min-height: 50px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    font-weight: 700;
}

.gallery-nav-btn:hover {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 12px 35px rgba(30, 58, 138, 0.3);
    border-color: transparent;
}

.gallery-nav-btn:active {
    transform: translateY(-50%) scale(1.05);
}

.gallery-prev {
    left: 0;
    margin-left: 1rem;
}

.gallery-next {
    right: 0;
    margin-right: 1rem;
}

/* Gallery Indicators (Dots) */
.gallery-indicators {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    padding-top: 2rem;
}


.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--light-gray), #e5e7eb);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.indicator:hover {
    background: linear-gradient(135deg, var(--secondary-blue), var(--primary-blue));
    transform: scale(1.25);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.indicator.active {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    width: 32px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.25);
}

/* ===== Academics Section ===== */
.academics-section {
    background-color: var(--white);
}

.academics-content {
    display: grid;
    gap: 3rem;
}

.classes-offered,
.subjects-offered {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
}

.classes-offered h3,
.subjects-offered h3 {
    color: var(--primary-blue);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

/* Classes Grid */
.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.class-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--secondary-blue);
    transition: transform 0.3s ease;
}

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

.class-card h4 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.class-card p {
    color: var(--light-text);
    margin-bottom: 0.8rem;
}

.class-card p:first-of-type {
    font-weight: 600;
    color: var(--primary-green);
}

/* Subjects List */
.subjects-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.subject-column h4 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.subject-column ul {
    list-style: none;
}

.subject-column li {
    padding: 0.6rem 0;
    color: var(--light-text);
    padding-left: 1.5rem;
    position: relative;
}

.subject-column li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: bold;
}

/* ===== Admissions Section ===== */
.admissions-section {
    background-color: var(--light-gray);
}

.admissions-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.admission-process,
.admission-contact {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.admission-process h3,
.admission-contact h3 {
    color: var(--primary-blue);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

/* Process Steps */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-number {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.step-content h4 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--light-text);
    font-size: 0.95rem;
}

/* Admission Contact Info */
.contact-info {
    background: linear-gradient(135deg, var(--light-gray), var(--white));
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-blue);
}

.contact-info p {
    margin-bottom: 1.2rem;
    color: var(--light-text);
    line-height: 1.8;
}

.contact-info strong {
    color: var(--primary-blue);
}

/* ===== Contact Section ===== */
.contact-section {
    background-color: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info-box,
.contact-form-box {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
}

.contact-info-box h3,
.contact-form-box h3 {
    color: var(--primary-blue);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.info-item {
    margin-bottom: 2rem;
}

.info-item h4 {
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.info-item p {
    color: var(--light-text);
    line-height: 1.8;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    background-color: rgba(16, 185, 129, 0.05);
}

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

/* Submit Button */
.submit-btn {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.3);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.15);
    transition: left 0.3s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(30, 58, 138, 0.4);
}

.submit-btn:active {
    transform: translateY(-1px);
}

/* Form Message */
.form-message {
    text-align: center;
    font-weight: 600;
    min-height: 1.5rem;
    margin-top: 0.5rem;
}

.form-message.success {
    color: var(--primary-green);
}

.form-message.error {
    color: #dc2626;
}

/* ===== Footer ===== */
.footer {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 3rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-content p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

/* ===== Animation Keyframes ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(16, 185, 129, 0.5);
    }
}

/* ===== Responsive Design ===== */

/* ===== Launch Slideshow Styles ===== */
.launch-slideshow {
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.45));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.launch-slideshow.hidden {
    display: none;
}

.slideshow-inner {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 1rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.02));
}

.slideshow-slides {
    display: flex;
    width: 100%;
    height: 60vh;
    min-height: 320px;
    transition: transform 0.8s ease;
}

.slideshow-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.slideshow-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.slideshow-slide:hover img {
    transform: scale(1.03);
}

.slideshow-caption {
    position: absolute;
    left: 24px;
    bottom: 24px;
    color: #fff;
    text-shadow: 0 4px 18px rgba(0,0,0,0.6);
    z-index: 5;
}

.slideshow-caption h1 {
    font-size: 1.6rem;
    margin: 0 0 6px 0;
}

.slideshow-tagline {
    font-size: 1rem;
    opacity: 0.95;
}

.slideshow-skip,
.slideshow-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(6px);
}

.slideshow-skip {
    right: 86px;
}

.slideshow-skip:focus,
.slideshow-close:focus {
    outline: 3px solid rgba(59,130,246,0.35);
}

.slideshow-indicators {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    z-index: 6;
}

.slideshow-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}

.slideshow-dot.active {
    width: 28px;
    border-radius: 10px;
    background: rgba(255,255,255,0.95);
}

/* Preloader styles */
.preloader {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.45));
    z-index: 20;
    color: #fff;
}

.spinner {
    width: 56px;
    height: 56px;
    border: 6px solid rgba(255,255,255,0.18);
    border-top-color: rgba(255,255,255,0.95);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.preloader-text {
    font-size: 0.95rem;
    opacity: 0.95;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Entrance animation for slideshow inner */
.slideshow-inner {
    transform: translateY(8px) scale(0.995);
    opacity: 0;
    transition: transform 500ms ease, opacity 500ms ease;
}

.slideshow-inner.show {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .slideshow-caption h1 { font-size: 1.2rem; }
    .slideshow-tagline { font-size: 0.95rem; }
    .slideshow-slides { height: 50vh; min-height: 260px; }
}

@media (max-width: 480px) {
    .slideshow-caption { left: 12px; bottom: 12px; }
    .slideshow-caption h1 { font-size: 1rem; }
    .slideshow-tagline { display: none; }
    .slideshow-slides { height: 42vh; min-height: 200px; }
    .slideshow-skip { right: 72px; padding: 6px 9px; }
}

/* Tablets (768px and below) */
@media (max-width: 768px) {
    /* Hamburger Menu */
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--primary-blue);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .school-logo h1 {
        font-size: 1.1rem;
    }

    /* Home Section */
    .home-content h2 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    /* Sections */
    .section h2 {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .admissions-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .classes-grid {
        grid-template-columns: 1fr;
    }

    .subjects-list {
        grid-template-columns: 1fr;
    }

    /* Gallery Styles for Tablets */
    .gallery-wrapper {
        padding: 0 2rem;
    }

    .gallery-nav-btn {
        padding: 0.8rem 0.6rem;
        min-width: 40px;
        min-height: 40px;
        font-size: 1.2rem;
    }

    .card-image-wrapper {
        height: 250px;
    }

    .card-content {
        padding: 1.5rem;
    }

    .card-content h3 {
        font-size: 1.2rem;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .section {
        padding: 2rem 1rem;
    }

    .school-logo h1 {
        font-size: 0.9rem;
    }

    .home-section {
        min-height: 500px;
    }

    .home-content h2 {
        font-size: 1.5rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .section h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .about-card,
    .class-card,
    .admission-process,
    .admission-contact {
        padding: 1.5rem;
    }

    .contact-info-box,
    .contact-form-box {
        padding: 1.5rem;
    }

    .step {
        gap: 1rem;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .contact-info p {
        font-size: 0.9rem;
    }

    /* Gallery Styles for Mobile */
    .activities-section {
        padding: 2rem 0;
    }

    .activities-section h2 {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    .gallery-wrapper {
        padding: 0 1rem;
    }

    .gallery-nav-btn {
        padding: 0.6rem 0.5rem;
        min-width: 35px;
        min-height: 35px;
        font-size: 1rem;
    }

    .gallery-prev {
        margin-left: 0.5rem;
    }

    .gallery-next {
        margin-right: 0.5rem;
    }

    .card-image-wrapper {
        height: 200px;
    }

    .card-content {
        padding: 1rem;
    }

    .card-content h3 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .card-content p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .gallery-indicators {
        gap: 0.6rem;
        padding-top: 1.5rem;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }

    .indicator.active {
        width: 28px;
    }
}
/* ================= MOBILE PHOTO FIX ================= */
@media (max-width: 768px) {

    .card-photo {
        height: auto;        /* allow image natural height */
        aspect-ratio: 3/4;   /* portrait ratio (perfect for people photos) */
    }

    .leader-photo {
        object-fit: contain; /* show full face */
        background: #f5f7fb; /* soft background instead of crop */
        padding: 8px;
    }

}


/* Print Styles */
@media print {
    .navbar,
    .footer,
    .cta-button,
    .submit-btn {
        display: none;
    }

    .section {
        padding: 1rem;
    }

    }

    /* Gallery Styles for Mobile */
    .activities-section {
        padding: 2rem 0;
    }

    .activities-section h2 {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    .gallery-wrapper {
        padding: 0 1rem;
    }

    .gallery-nav-btn {
        padding: 0.6rem 0.5rem;
        min-width: 35px;
        min-height: 35px;
        font-size: 1rem;
    }

    .gallery-prev {
        margin-left: 0.5rem;
    }

    .gallery-next {
        margin-right: 0.5rem;
    }

    .card-image-wrapper {
        height: 200px;
    }

    .card-content {
        padding: 1rem;
    }

    .card-content h3 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .card-content p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .gallery-indicators {
        gap: 0.6rem;
        padding-top: 1.5rem;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }

    .indicator.active {
        width: 28px;
    }


/* Print Styles */
@media print {
    .navbar,
    .footer,
    .cta-button,
    .submit-btn {
        display: none;
    }

    .section {
        padding: 1rem;
    }
}
