/* ====== Animations ====== */
@keyframes fadeInText {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInCard {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sparkle {
    0% {
        opacity: 0;
        transform: scale(0);
    }

    50% {
        opacity: 0.8;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

@keyframes shadowPulse {
    0%,
    100% {
        box-shadow: 0 5px 15px rgba(247, 222, 170, 0.4);
    }

    50% {
        box-shadow: 0 8px 25px rgba(247, 222, 170, 0.6);
    }
}

.fade-in-text {
    opacity: 0;
    animation: fadeInText 0.8s ease-out forwards;
}

.fade-in-card {
    opacity: 0;
    animation: fadeInCard 1s ease-out forwards;
}

/* ====== Hero Section ====== */
.hero-image-section {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;    
}

.hero-overlay::before{
            content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(76, 28, 34, 0.466) 60%, rgb(234, 197, 122, 0.466) 100%);
    backdrop-filter: blur(4px);
    z-index: 1;
}

.hero-content {
    max-width: 90%;
}

.hero-content h1 {
    font-family: 'Merriweather', serif;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    animation: fadeInUp 1s ease 0.3s both;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* ====== School History Section ====== */
.school-history {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f6f6f6, #dde7ee);
    position: relative;
    overflow: hidden;
}

.section-title {
    font-family: 'Merriweather', serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--deep-plum);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    background: linear-gradient(to right, #8a343e, #3ea76d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.6px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, #f7deaa, #3ea76d);
    border-radius: 2px;
}

.history-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #4a2529;
    line-height: 1.8;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(72, 31, 36, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.history-content:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(72, 31, 36, 0.25);
}

.history-content p {
    margin-bottom: 1.2rem;
}

/* ====== Principal's Desk Section ====== */
.principal-desk {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f6f6f6, #dde7ee);
}

.principal-content {
    display: flex;
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(72, 31, 36, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: transform 0.5s ease;
}

.principal-content:hover {
    transform: translateY(-10px);
}

.principal-photo {
    flex: 1;
}

.principal-photo img {
    width: 100%;
    max-width: 350px;
    border-radius: 12px;
    border: 4px solid #f7deaa;
    box-shadow: 0 5px 15px rgba(72, 31, 36, 0.1);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.principal-photo img:hover {
    transform: scale(1.06);
    box-shadow: 0 10px 30px rgba(72, 31, 36, 0.2);
}

.principal-message {
    flex: 2;
}

.principal-message h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--deep-plum);
    margin-bottom: 1.2rem;
    background: linear-gradient(to right, #8a343e, #4c8f3a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.4px;
}

.principal-message p {
    font-size: 1.1rem;
    color: #4a2529;
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

/* ====== Mission and Vision Section ====== */
.mission-vision {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f6f6f6, #dde7ee);
}

.mission-vision-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.mission,
.vision {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(72, 31, 36, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    text-align: center;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.mission:hover,
.vision:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(72, 31, 36, 0.2);
}

.mission h3,
.vision h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--deep-plum);
    background: linear-gradient(to right, #8a343e, #4c8f3a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.4px;
}

.mission h4,
.vision h4 {
    color: #3ea76d;
    font-weight: 600;
        margin: 15px 0 15px 0;

}

.mission p,
.vision p {
    font-size: 1.1rem;
    color: #4a2529;
    line-height: 1.9    ;
}

.mission p {
    text-align: left;
}


/* ====== Shared Button Styles (Color Wipe with Sparkle) ====== */
.sbs-btn-main,
.sbs-btn-secondary,
.sbs-floating-action {
    position: relative;
    background: linear-gradient(45deg, #f7deaa, #ffecd0 50%, #f7deaa 50%);
    background-size: 200% 100%;
    background-position: 0% 0%;
    color: #8a343e;
    text-decoration: none;
    font-weight: 600;
    transition: background-position 0.5s ease, box-shadow 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.sbs-btn-main::after,
.sbs-btn-secondary::after,
.sbs-floating-action::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 8px;
    height: 8px;
    background: rgba(255, 245, 209, 0.8);
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 5px rgba(255, 245, 209, 0.5);
}

.sbs-btn-main:hover,
.sbs-btn-secondary:hover,
.sbs-floating-action:hover {
    background-position: 100% 0%;
    color: #7a2e36;
    box-shadow: 0 8px 20px rgba(255, 233, 181, 0.6);
}

.sbs-btn-main:hover::after,
.sbs-btn-secondary:hover::after,
.sbs-floating-action:hover::after {
    animation: sparkle 0.5s ease-in-out;
}

/* ====== Specific Button Styles ====== */
.sbs-btn-main,
.sbs-btn-secondary {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    border-radius: 10px;
}

.sbs-btn-main:hover,
.sbs-btn-secondary:hover {
    transform: translateY(-3px);
}

.sbs-floating-action {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-size: 0.95rem;
    box-shadow: 0 5px 15px rgba(247, 222, 170, 0.4);
    opacity: 0;
    transform: translateY(100px);
    z-index: 1000;
    animation: shadowPulse 2s infinite ease-in-out;
}

.sbs-floating-action.visible {
    opacity: 1;
    transform: translateY(0);
}

.sbs-floating-action:hover {
    transform: translateY(-5px);
}

/* ====== Responsive Design ====== */
@media (max-width: 768px) {
    .hero-image-section {
        height: 60vh;
    }

    .hero-content {
        padding: 1rem;
        max-width: 85%;
    }

    .hero-content h1 {
        font-size: 2.6rem;
    }

    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 1.2rem;
    }

    .sbs-btn-main,
    .sbs-btn-secondary {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .sbs-btn-main::after,
    .sbs-btn-secondary::after,
    .sbs-floating-action::after {
        width: 6px;
        height: 6px;
    }

    .school-history,
    .principal-desk,
    .mission-vision {
        padding: 3rem 0;
    }

    .principal-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .principal-photo img {
        max-width: 280px;
    }

    .mission-vision-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .history-content,
    .principal-message p,
    .mission p,
    .vision p {
        font-size: 1rem;
    }

    .principal-message h3 {
        font-size: 1.6rem;
    }

    .mission h3,
    .vision h3 {
        font-size: 1.4rem;
    }

    .sbs-floating-action {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .hero-image-section {
        height: 50vh;
    }

    .hero-content {
        padding: 0.8rem;
        max-width: 80%;
    }

    .hero-content h1 {
        font-size: 2.3rem;
    }

    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .sbs-btn-main,
    .sbs-btn-secondary {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .sbs-btn-main::after,
    .sbs-btn-secondary::after,
    .sbs-floating-action::after {
        width: 5px;
        height: 5px;
    }

    .school-history,
    .principal-desk,
    .mission-vision {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .history-content,
    .principal-message p,
    .mission p,
    .vision p {
        font-size: 0.95rem;
    }

    .principal-message h3 {
        font-size: 1.4rem;
    }

    .mission h3,
    .vision h3 {
        font-size: 1.2rem;
    }

    .principal-photo img {
        max-width: 220px;
    }

    .history-content,
    .principal-content,
    .mission,
    .vision {
        padding: 1.5rem;
    }

    .sbs-floating-action {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        bottom: 15px;
        right: 15px;
    }
}