/* assets/css/style.css */

/* --- 1. General Styles & Variables --- */
:root {
    --primary-color: #12508f;
    --secondary-color: #e7e35a;
    --accent-color: #1daee4;
    --white-color: #ffffff;
    --dark-color: #0d0e08;
    --light-gray: #f8f9fa;
    --text-color: #343a40;
}
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
}
.section-padding {
    padding: 80px 0;
}
.section-title {
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--primary-color);
}
.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
}
/* --- 2. Navbar --- */
.navbar-custom {
    background-color: var(--white-color);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}
.navbar-custom .navbar-brand {
    color: var(--primary-color);
    font-weight: 700;
}
.navbar-custom .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s ease;
}
.navbar-custom .nav-link:hover, .navbar-custom .nav-link.active {
    color: var(--accent-color);
}
/* --- 3. Buttons --- */
.btn {
    border-radius: 8px; 
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease-in-out;
}
.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-custom-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: 2px solid var(--primary-color);
}
.btn-custom-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}
.btn-custom-secondary {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    border: 2px solid var(--secondary-color);
}
.btn-custom-secondary:hover {
    background-color: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
}
.button-container {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}
/* --- 4. Hero Section --- */
#home {
    background-color: var(--light-gray);
    min-height: 100vh;
    display: flex;
    align-items: center;
}
#home .display-4 {
    color: var(--primary-color);
    font-weight: 700;
}
/* --- 5. Feature Cards --- */
.feature-card {
    border: none;
    background-color: var(--white-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    height: 100%;
}
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}
.feature-card .icon-container {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}
.feature-card h4 {
    color: var(--primary-color);
    font-weight: 600;
}
/* --- 6. Announcement Section --- */
.announcement-item {
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--accent-color);
}
/* --- 7. Footer --- */
.footer-custom {
    background-color: var(--dark-color);
    color: rgba(255, 255, 255, 0.7);
}
.footer-custom h6 {
    color: var(--white-color);
    font-weight: 600;
}
.footer-custom a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-custom a:hover {
    color: var(--secondary-color);
}
/* === PRELOADER STYLES === */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    flex-direction: column; /* Para maging magkapatong ang lapis at text */
    justify-content: center;
    align-items: center;
    /* Transition para sa smooth na pagkawala */
    transition: opacity 0.75s ease, visibility 0.75s ease;
}
/* Class na idadagdag ng JavaScript kapag tapos na mag-load */
.preloader.loaded {
    opacity: 0;
    visibility: hidden;
}
 /* === PENCIL (LAPIS) LOADER === */
.pencil {
    display: block;
    width: 200px;
    height: 30px;
    position: relative;
    transform-origin: left;
    animation: write 2s linear infinite;
}
.pencil__body {
    height: 100%;
    background-color: #f7d44c; /* Kulay dilaw ng lapis */
    border: 3px solid #333;
    border-radius: 0 5px 5px 0;
}
.pencil__eraser-wrapper {
    position: absolute;
    left: -33px; /* Posisyon ng metal part ng pambura */
    top: -3px; 
    width: 30px;
    height: 36px;
    border: 3px solid #333;
    border-right: none;
    border-radius: 5px 0 0 5px;
    background-color: #c7c7c7; /* Kulay ng metal */
}
.pencil__eraser {
    position: absolute;
    left: -3px; 
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 24px;
    background-color: #f28b82; /* Kulay pink ng pambura */
    border-radius: 2px;
}
.pencil__tip {
    position: absolute;
    right: -1px; 
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 20px;
    height: 20px;
    background-color: #d4a778; /* Kulay ng kahoy */
}
.pencil__lead {
    position: absolute;
    right: -13px; /* Posisyon sa dulo ng tip */
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    background-color: #333; /* Kulay ng lead */
}
.loading-text {
    margin-top: 20px;
    font-size: 18px;
    color: #555;
    font-family: sans-serif;
    letter-spacing: 1px;
}
/* Floating Accordion Styles */
.floating-accordion .accordion-item {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
    background-color: #fff; /* Ensure background is not transparent */
}
/* Add a subtle lift effect on hover */
.floating-accordion .accordion-item:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}
/* Remove default accordion borders and radius */
.floating-accordion .accordion-button {
    border-radius: 0.5rem;
}

.floating-accordion .accordion-button:not(.collapsed) {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.floating-accordion .accordion-collapse {
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
} 
.floating-accordion .accordion-item:first-of-type,
.floating-accordion .accordion-item:last-of-type {
    border-radius: 0.5rem;
}
.floating-accordion .accordion-item:first-of-type .accordion-button {
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}
/* Remove the default separator line between header and body */
.floating-accordion .accordion-button::after {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-left: auto;
    content: "";
    background-image: var(--bs-accordion-btn-icon);
    background-repeat: no-repeat;
    background-size: 1.25rem;
    transition: var(--bs-accordion-btn-icon-transition);
}
.floating-accordion .accordion-button:not(.collapsed)::after {
    background-image: var(--bs-accordion-btn-active-icon);
    transform: var(--bs-accordion-btn-icon-transform);
}
/* Footer documentation Styles */
.site-footer {
    background-color: #ffffff; /* Dark background color from the image */
    color: #333; /* White text color */
    padding: 20px 0;
    margin-top: 40px; /* Provides space from the main content */
    border-top: 1px solid #ffffff;
}
.site-footer .container {
    display: flex;
    justify-content: space-between; /* Positions items on opposite ends */
    align-items: center; /* Vertically aligns items */
    flex-wrap: wrap; /* Allows items to wrap on smaller screens */
}
.footer-text {
    margin: 0;
    font-size: 0.9rem;
}
.social-icons a {
    color: #333; /* White icon color */
    margin-left: 15px; /* Adds space between icons */
    text-decoration: none;
    transition: color 0.3s ease;
}
.social-icons a:hover {
    color: var(--secondary-color) 
}
.social-icons svg {
    width: 20px; /* Slightly adjusted icon size */
    height: 20px;
}
/* === ANIMATION KEYFRAMES === */
@keyframes write {
    0%, 100% {
        transform: rotate(-5deg);
    }
    50% {
        transform: rotate(5deg);
    }
}
/* ======================================================= */
/* RESPONSIVE & MOBILE VIEW STYLES (LANDING PAGE) */
/* ======================================================= */

@media (max-width: 991.98px) {
    .navbar-toggler {
        padding: 0.2rem 0.5rem; /* Binabawasan ang padding para lumiit ang button */
        font-size: 0.95rem; /* Ginawang 0.95rem ang size ng icon */
    }
    .navbar-brand {
        /* I-sentro ang logo sa mobile kapag bukas ang menu */
        flex-grow: 1;
        text-align: center;
    }
    .navbar-custom .nav-link {
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
    }
    .offcanvas-start {
        width: 75vw !important;
    }
    .offcanvas-header {
        border-bottom: 1px solid #dee2e6;
    }
    .offcanvas-body .navbar-nav .nav-link {
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
    }
    /* Ipakita ang illustration sa tablet view pababa */
    #home .d-lg-block {
        display: block !important;
    }
}

@media (max-width: 767.98px) {
    .section-padding {
        padding: 60px 0;
    }
    .section-title {
        font-size: 2rem;
    }
    #home {
        text-align: center;
        padding-top: 100px; 
    }
    #home .display-4 {
        font-size: 2.2rem;
    }
    #home img.img-fluid {
        /* Bawasan ang laki ng illustration sa mobile */
        max-width: 80%;
        margin: 2rem auto 0 auto; /* Maglagay ng espasyo sa itaas at i-sentro */
    }
    /* Para i-center ang Mission/Vision sa mobile */
    #mission-vision, .footer-custom {
        text-align: center;
    }
    #mission-vision .d-flex {
        flex-direction: column;
        align-items: center;
    }
    #mission-vision .d-flex i {
        margin-right: 0 !important;
        margin-bottom: 1rem;
    }
    .footer-custom .text-md-end {
        text-align: center !important;
        margin-top: 1rem;
    }
        /* occordion mobile view */
    .floating-accordion {
        max-width: 800px;
        width: 90%; 
        margin-left: auto;
        margin-right: auto;
    }
    .floating-accordion .accordion-item {
        margin-bottom: 1.5rem;
    }
    .site-footer .container {
        flex-direction: column; /* Stack items vertically */
     }
    .footer-text {
        text-align: center !important;
        margin-bottom: 15px; /* Add space below copyright text on mobile */
    }
    .social-icons a {
        margin: 0 10px; /* Adjust horizontal margin for mobile */
    }
}