/* ============================================================
   Homepage Stylesheet (Hero, Notice Strip, About School,
   Principal, Hall of Fame, Administration, Contact)
   ============================================================ */

/* ═══ 1. HERO SECTION ═══ */
.hero {
    display: flex;
    min-height: 100vh;
    position: relative;
    background: #ffffff;
    padding: 0;
    align-items: center;
    overflow: hidden;
}

.hero-left {
    flex: 0 0 60%;
    padding: 0 0 0 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
    height: 100vh;
}

.hero-top-circle {
    display: none;
}

.hero-kicker {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 13px;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 25px;
    color: #555;
}

.hero-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 85px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
    max-width: 900px;
    letter-spacing: -2px;
    position: relative;
    color: #800000;
}

/* Staggered Text Line Animation */
.hero-line-wrapper {
    display: block;
    overflow: hidden;
    padding-bottom: 0.22em;
    margin-bottom: -0.22em;
}

.hero-line-inner {
    display: block;
    transform: translateY(125%);
    transition: transform 0.8s cubic-bezier(0.785, 0.135, 0.15, 0.86);
}

/* Staggered Delays for both in and out */
.hero-line-wrapper:nth-of-type(1) .hero-line-inner {
    transition-delay: 0.1s;
}

.hero-line-wrapper:nth-of-type(2) .hero-line-inner {
    transition-delay: 0.2s;
}

.hero-line-wrapper:nth-of-type(3) .hero-line-inner {
    transition-delay: 0.3s;
}

/* When sliding in, transform to 0 */
.hero-title.slide-in .hero-line-inner {
    transform: translateY(0);
}

/* When sliding out, transform up to -125% */
.hero-title.slide-out .hero-line-inner {
    transform: translateY(-125%);
}

.hero-scroll-down {
    position: absolute;
    bottom: 40px;
    left: 10%;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
    color: #555;
}

/* Overlay Layer for White Text on Image */
.hero-left-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    clip-path: inset(0 120px 0 calc(45% - 120px));
}

.hero-left-overlay-inner {
    width: 60%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 0 0 10%;
    position: relative;
}

.hero-left-overlay .hero-kicker,
.hero-left-overlay .hero-title,
.hero-left-overlay .hero-scroll-down {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    background: none;
}

.hero-right {
    position: absolute;
    top: 0;
    right: 120px;
    width: 55%;
    height: 100%;
    z-index: 1;
}

.hero-background {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 60px;
    }
}

@media (max-width: 768px) {
    .hero {
        display: flex;
        min-height: 100vh;
        height: 30vh;
        align-items: center;
        margin: 60px 0 0 0;
    }

    .hero-left {
        position: relative;
        width: 100%;
        height: 100%;
        padding: 25vh 20px 60px 20px;
        background: transparent;
        z-index: 3;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .hero-left .hero-kicker {
        color: rgba(255, 255, 255, 0.9);
    }

    .hero-left .hero-title {
        color: #ffffff;
        -webkit-text-fill-color: #ffffff;
    }

    .hero-scroll-down {
        display: none;
    }

    .hero-title {
        font-size: clamp(32px, 10vw, 45px);
        min-height: auto;
    }

    .hero-right {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        right: 0;
        z-index: 1;
        display: block;
    }

    .hero-right::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 2;
    }

    .hero-background {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-position: center top;
    }

    .hero-left-overlay {
        display: none;
    }
}

/* ═══ 2. NOTICE STRIP ═══ */
.notice-strip {
    background-color: #000000;
    color: #ffffff;
    padding: 0;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    height: 50px;
    z-index: 10;
}

.notice-strip-label {
    background-color: var(--primary);
    color: #ffffff;
    padding: 0 25px;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 11;
    box-shadow: 5px 0 15px rgba(0,0,0,0.2);
}

.notice-marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    padding-left: 180px;
    display: flex;
    align-items: center;
    height: 100%;
}

.notice-marquee {
    display: flex;
    align-items: center;
    min-width: 100%;
    flex-shrink: 0;
    animation: marquee 30s linear infinite;
}

.notice-marquee:hover {
    animation-play-state: paused;
}

.notice-item {
    display: inline-block;
    margin-right: 50px;
    font-size: 15px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    cursor: pointer;
    color: var(--primary);
    white-space: nowrap;
}

.notice-item:hover {
    text-decoration: underline;
}

.notice-item::before {
    content: "•";
    margin-right: 15px;
    color: var(--warning);
    font-size: 20px;
    vertical-align: middle;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

@media (max-width: 768px) {
    .notice-strip {
        height: 25px;
    }
    .notice-strip-label {
        font-size: 9px;
        padding: 0 8px;
        letter-spacing: 0.5px;
    }
    .notice-marquee-container {
        padding-left: 90px;
    }
    .notice-item {
        font-size: 11px;
    }
    .notice-item::before {
        font-size: 14px;
        margin-right: 8px;
    }
}

/* ═══ 3. ABOUT SCHOOL SLIDER ═══ */
.about-school-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    background-color: #f9f9f9;
}

.about-school-content-wrapper {
    padding: 40px 10% 40px 12%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-school-text {
    text-align: justify;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #333;
}

.about-school-img-wrapper {
    width: 100%;
    height: 600px;
    overflow: hidden;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    object-fit: cover;
    object-position: top;
}

.about-school-slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease-in-out;
}

.about-school-slider img {
    width: 100%;
    min-width: 100%;
    flex-shrink: 0;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

@media (max-width: 900px) {
    .about-school-layout {
        grid-template-columns: 1fr;
    }

    .about-school-content-wrapper {
        padding: 40px 6%;
    }

    .about-school-img-wrapper {
        height: 350px;
    }
}

/* ═══ 4. PRINCIPAL'S DESK ═══ */
section.principal-section {
    display: flex;
    position: relative;
    background: #ffffff;
    padding: 0;
    align-items: stretch;
    overflow: hidden;
    justify-content: flex-end;
}

.principal-image-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 45%;
    height: 100%;
    z-index: 1;
    clip-path: inset(0);
}

.principal-image-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 45%;
    height: 100vh;
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
}

.principal-content-right {
    flex: 0 0 55%;
    padding: 60px 5% 60px 3%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.principal-kicker {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 13px;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #555;
}

.principal-hero-text {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 45px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 20px 0;
    letter-spacing: -1px;
    color: #2b2b2b;
}

.principal-message-body p {
    color: var(--gray);
    line-height: 1.8;
    font-size: 15px;
    margin-bottom: 15px;
    text-align: justify;
}

.principal-signature {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--border);
}

.principal-signature p {
    margin: 0;
    color: var(--dark);
}

.principal-signature p:first-child {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.signature-title {
    font-size: 13px;
    color: var(--gray);
    font-weight: 600;
}

@media (max-width: 1024px) {
    .principal-hero-text {
        font-size: 45px;
    }
}

@media (max-width: 768px) {
    section.principal-section {
        display: block;
    }

    .principal-image-left {
        position: relative;
        width: 100%;
        height: 350px;
        left: 0;
        z-index: 1;
        display: block;
    }

    .principal-image-bg {
        position: absolute;
        top: 0; left: 0;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center 20%;
        background-attachment: scroll;
    }

    .principal-content-right {
        position: relative;
        width: 100%;
        margin-left: 0;
        padding: 50px 20px;
        background: white;
        z-index: 2;
        min-height: auto;
    }

    .principal-hero-text {
        font-size: 35px;
    }

    .principal-message-body p {
        text-align: left;
    }
}

/* ═══ 5. HALL OF FAME ═══ */
section.hall-of-fame {
    background-color: #ffffff !important;
    position: relative;
    padding-bottom: 0px;
}

.fame-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.fame-card {
    height: 400px;
    background: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
}

.fame-card:hover {
    transform: scale(0.95) !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.fame-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    z-index: 10;
    pointer-events: none;
    transform: translateX(0);
    transition: transform 1.2s cubic-bezier(0.785, 0.135, 0.15, 0.86) 0.3s;
}

.fame-card.animated::after {
    transform: translateX(100%);
}

.fame-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transform: scale(1.2);
    transition: transform 1.5s cubic-bezier(0.785, 0.135, 0.15, 0.86) 0.3s;
}

.fame-card.animated .fame-image {
    transform: scale(1);
}

.fame-card.animated:hover .fame-image {
    transform: scale(1.1);
    transition: transform 0.5s ease;
}

.fame-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 60px 20px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0.6), transparent);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.fame-overlay h3 {
    color: white;
    font-size: 24px;
    margin: 0 0 5px 0;
}

.fame-overlay .fame-achievement {
    color: #D4AF37;
    font-size: 15px;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
}

.fame-overlay .fame-percentage {
    color: white;
    font-size: 32px;
    font-weight: 800;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.fame-desc-wrapper {
    margin-top: 8px;
    position: relative;
    z-index: 5;
}

.fame-desc {
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
}

.desc-text.expanded {
    max-height: 110px;
    overflow-y: auto;
    display: block;
    padding-right: 4px;
}

.desc-text.expanded::-webkit-scrollbar {
    width: 4px;
}

.desc-text.expanded::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.5);
    border-radius: 4px;
}

.fame-read-more-btn {
    background: none;
    border: none;
    color: #ffd700;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    padding: 2px 4px;
    margin-left: 2px;
    text-decoration: underline;
    display: inline-block;
    transition: color 0.2s ease;
}

.fame-read-more-btn:hover {
    color: #ffffff;
}

@media (max-width: 1024px) {
    .fame-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .fame-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ═══ 6. SCHOOL ADMINISTRATION (ABOUT) ═══ */
section.about {
    background-color: #ffffff;
    padding-bottom: 60px;
    position: relative;
    z-index: 20;
}

.about-title {
    text-align: left;
    margin-left: -40px;
}

.about-title::after {
    left: 0;
    transform: translateX(0);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.about-card {
    background: transparent;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.about-card .slide {
    width: 100%;
    transition: 0.5s;
}

.about-card .slide.slide1 {
    position: relative;
    z-index: 2;
    transform: translateY(0);
    overflow: hidden;
}

.about-card .slide.slide1::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    z-index: 10;
    pointer-events: none;
    transform: translateX(0);
    transition: transform 1.2s cubic-bezier(0.785, 0.135, 0.15, 0.86) 0.3s;
}

.about-card.animated .slide.slide1::after {
    transform: translateX(100%);
}

.about-card:hover .slide.slide1 {
    transform: translateY(0);
}

.about-card .card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 0;
    box-shadow: var(--shadow);
    transform: scale(1.2);
    transition: transform 1.5s cubic-bezier(0.785, 0.135, 0.15, 0.86) 0.3s;
}

.about-card.animated .card-image {
    transform: scale(1);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 15px 15px 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    text-align: left;
}

.image-overlay h4 {
    color: white;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.about-card .slide.slide2 {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    padding: 20px;
    border-radius: 0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transform: translateY(-100%);
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.785, 0.135, 0.15, 0.86);
}

.about-card:hover .slide.slide2 {
    transform: translateY(0);
}

.card-content h3 {
    font-size: 20px;
    margin: 0 0 10px 0;
    color: var(--primary);
}

.card-content p {
    margin: 0;
    color: #414141;
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-title {
        text-align: center;
        margin-left: auto;
    }
    
    .about-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .about-card .slide.slide1 {
        transform: translateY(0) !important;
    }
    
    .about-card .slide.slide2 {
        position: relative;
        transform: translateY(0) !important;
        top: 0;
    }
}

/* ═══ 7. CONTACT SECTION ═══ */
section.contact {
    padding: 0;
    background-color: #ffffff;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}

.contact-content {
    padding: 25px 8%;
    display: flex;
    flex-direction: column;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px 20px;
    flex-grow: 1;
    align-content: space-evenly;
}

.contact-info {
    text-align: center;
    background: transparent;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.contact-info h3 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.contact-icon {
    width: 26px;
    height: 26px;
    color: var(--primary);
    stroke-width: 1.5;
}

.contact-info p {
    color: var(--gray);
    line-height: 1.7;
    font-size: 13.5px;
    margin: 0;
}

.contact-title {
    text-align: left;
    margin-left: 0;
    margin-bottom: 28px;
}

.contact-title::after {
    left: 0;
    transform: translateX(0);
}

@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}
