/* ================= GENERAL BODY ================= */
body {
    font-family:  'IBM Plex Sans', 'Segoe UI', sans-serif;
    background: #e4e4e4;
    color: #002244;
    margin: 0;
}

/* ===== NAVBAR LOGO ===== */
.navbar {
    height: 100px;
}
.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 20px;
    letter-spacing: 0.5px;
}
.navbar-brand img {
    height: 80px !important;
    width: auto !important;
    margin-right: 15px;
    margin-left: -60px;
}
.navbar-brand.brand-logo span {
    color: #001f3f;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

/* Hamburger button - tatlong guhit */
.hamburger {
  display: none;          /* nakatago sa desktop */
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1030;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background: #001f3f;
  border-radius: 10px;
  transition: all 0.2s ease;
}

/* Sa mobile, ipakita ang hamburger */
@media (max-width: 991.98px) {
  .hamburger {
    display: flex;
  }
}

/* ================= ENHANCED CONTACT HERO ================= */
.contact-hero {
    background: linear-gradient(135deg, rgba(1,13,68,0.92), rgba(36,85,158,0.88)), url("/static/background.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Animated Background Pattern */
.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

/* Floating Circles */
.contact-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatCircle 20s infinite ease-in-out;
    z-index: 0;
}

@keyframes floatCircle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-50px, 30px) scale(1.1);
    }
}

/* Container */
.contact-hero .container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

/* Heading */
.contact-hero h1 {
    font-size: clamp(2rem, 6vw, 48px);
    font-weight: 800;
    margin-bottom: 1rem;
    color: #ffffff;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff, #e0e8ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: fadeInUp 0.7s ease-out;
}

/* Animated Underline */
.title-underline {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffffff, rgba(255,255,255,0.5), transparent);
    margin: 0 auto 1.5rem auto;
    border-radius: 3px;
    animation: expandWidth 0.8s ease-out;
}

@keyframes expandWidth {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 80px;
        opacity: 1;
    }
}

.contact-hero p {
    font-size: clamp(0.95rem, 3vw, 1.1rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.92);
    max-width: 600px;
    margin: 0 auto 1rem auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    display: block; /* Changed from inline-block to block */
    width: fit-content; /* Keeps the background only around the text */
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.8s ease-out;
}

/* Scroll Indicator - Below paragraph */
.scroll-indicator {
    display: flex; /* Changed from inline-flex to flex */
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    width: fit-content;
    margin: 0.5rem auto 0 auto; /* Center horizontally */
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out;
}

.scroll-indicator span {
    font-size: 0.8rem;
    color: white;
    letter-spacing: 0.5px;
}

.scroll-indicator svg {
    transition: transform 0.3s ease;
}

.scroll-indicator:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(3px);
}

.scroll-indicator:hover svg {
    transform: translateY(3px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-hero {
        padding: 70px 20px;
    }
    
    .contact-hero h1 {
        font-size: 1.8rem;
    }
    
    .title-underline {
        width: 60px;
        height: 2px;
        margin-bottom: 1.2rem;
    }
    
    .contact-hero p {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
        margin-bottom: 1.2rem;
    }
    
    .scroll-indicator {
        margin-top: 0.4rem;
        padding: 0.5rem 1rem;
    }
    
    .scroll-indicator span {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        padding: 60px 15px;
    }
    
    .contact-hero h1 {
        font-size: 1.5rem;
    }
    
    .title-underline {
        margin-bottom: 1rem;
    }
    
    .contact-hero p {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .scroll-indicator {
        margin-top: 0.3rem;
        padding: 0.4rem 0.9rem;
    }
    
    .scroll-indicator span {
        font-size: 0.65rem;
    }
}

/* Optional: Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* ================= ENHANCED CONTACT SECTION ================= */
.contact-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
}

/* Contact Cards */
.contact-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 31, 63, 0.08);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 31, 63, 0.1);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-icon {
    width: 60px;
    height: 60px;
    background: #001f3f;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    animation: pulseIcon 2s infinite;
}

@keyframes pulseIcon {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(3, 123, 228, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 8px rgba(3, 123, 228, 0.1);
    }
}

.section-title {
    display: inline-block;
    background: #001f3f;
    color: white;
    padding: 10px 28px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 31, 63, 0.2);
    letter-spacing: 0.5px;
}

.section-underline {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #001f3f, #037be4, #001f3f);
    margin: 0 auto;
    border-radius: 3px;
}

/* Requirement List - No Checkmark */
.requirement-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirement-list li {
    padding: 14px 0;
    font-size: 15px;
    color: #4a5568;
    line-height: 1.5;
    border-bottom: 1px solid rgba(0, 31, 63, 0.08);
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.requirement-list li:last-child {
    border-bottom: none;
}

.requirement-list li:hover {
    transform: translateX(5px);
    color: #001f3f;
}

/* Alternative: With bullet dot instead */
.requirement-list-dot {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirement-list-dot li {
    padding: 14px 0 14px 20px;
    font-size: 15px;
    color: #4a5568;
    line-height: 1.5;
    border-bottom: 1px solid rgba(0, 31, 63, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.requirement-list-dot li:last-child {
    border-bottom: none;
}

.requirement-list-dot li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #037be4;
    font-weight: 700;
    font-size: 18px;
}

.requirement-list-dot li:hover {
    transform: translateX(5px);
    color: #001f3f;
}

/* Office List */
.office-list {
    margin-top: 10px;
}

/* FLEX ROW FOR OFFICE + NUMBER */
.office-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #eef2f6;
    transition: all 0.3s ease;
    gap: 15px;
}

.office-row:last-child {
    border-bottom: none;
}

.office-row:hover {
    background: #f8faff;
    padding-left: 12px;
    padding-right: 12px;
    border-radius: 12px;
}

/* OFFICE LABEL */
.office {
    font-weight: 600;
    font-size: 16px;
    color: #001f3f;
    display: flex;
    align-items: center;
    flex: 1;
}

.dot {
    height: 8px;
    width: 8px;
    background: #037be4;
    border-radius: 50%;
    display: inline-block;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.office-row:hover .dot {
    transform: scale(1.3);
    background: #001f3f;
}

/* CONTACT NUMBER */
.office-number {
    font-size: 16px;
    font-weight: 700;
    color: #037be4;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.office-number svg {
    stroke: #037be4;
}

.office-row:hover .office-number {
    color: #001f3f;
}

.office-row:hover .office-number svg {
    stroke: #001f3f;
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-section {
        padding: 50px 0;
    }
    
    .contact-card {
        padding: 25px;
    }
    
    .section-title {
        font-size: 18px;
        padding: 8px 24px;
    }
    
    .office {
        font-size: 15px;
    }
    
    .office-number {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 40px 0;
    }
    
    .contact-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .section-icon {
        width: 50px;
        height: 50px;
    }
    
    .section-title {
        font-size: 16px;
        padding: 6px 20px;
    }
    
    .section-underline {
        width: 50px;
    }
    
    .office-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 0;
    }
    
    .office {
        font-size: 14px;
    }
    
    .office-number {
        font-size: 14px;
        justify-content: flex-start;
        padding-left: 20px;
    }
    
    .requirement-list li {
        font-size: 14px;
        padding: 12px 0 12px 30px;
    }
}

@media (max-width: 480px) {
    .contact-card {
        padding: 15px;
    }
    
    .section-title {
        font-size: 14px;
        padding: 5px 16px;
    }
    
    .office {
        font-size: 13px;
    }
    
    .office-number {
        font-size: 13px;
    }
    
    .requirement-list li {
        font-size: 13px;
    }
}

/* ===== FOOTER ===== */
.footer {
    background: #001f3f;
    color: #ffffff;
    font-family:  'IBM Plex Sans', 'Segoe UI', sans-serif;
    padding: 60px 0 20px;
}

.footer-heading {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.footer-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    margin-right: 10px;
}

.footer-icon-small {
    width: 20px;
    height: 20px;
    object-fit: contain;
    margin-right: 8px;
    vertical-align: middle;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #037be4;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 2rem 0;
}

.footer-bottom .nav-link {
    margin: 0 15px;
    font-size: 0.9rem;
    opacity: 0.9;
    color: #ffffff;
    text-decoration: none;
    padding-bottom: 4px;
    transition: all 0.3s ease;
}

.footer-bottom .nav-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom .nav-link.active {
    border-bottom: 2px solid #ffffff;
    opacity: 1;
}

.footer-copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Footer dropdown */
.footer .dropdown-menu {
    background-color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer .dropdown-item {
    color: #000000;
}

.footer .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #037be4;
}

/* NAVBAR ACTIVE LINK */
.navbar-nav .nav-link.active{
    background: #001f3f;        /* Navy blue background */
    border-radius: 20px;        /* Oval shape */
    padding: 8px 12px;          /* Padding for oval appearance */
    color:#ffffff !important;   /* White text */
}

.navbar-nav .nav-link{
    color:#001f3f; 
    font-family:  'Poppins', sans-serif;
    font-size:15px;
    
    font-weight:700;
}

.navbar-nav .nav-link:hover{
    color:#037be4 !important;
}

/* Login link separator */
.navbar-nav .nav-link.login {
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    margin-left: 20px;
    padding-left: 20px;
}


/* Footer nav link base style */
.footer-bottom .nav-link {
    margin: 0 15px;
    font-size: 14px;
    opacity: 0.9;
    color: #ffffff;
    text-decoration: none;
    padding-bottom: 4px;      /* space for border */
    transition: all 0.3s ease;
}

/* Hover effect */
.footer-bottom .nav-link:hover {
    opacity: 1;
    color: #037be4;
}

/* Active link with background highlight */
.footer-bottom .nav-link.active {
    opacity: 1;
    color: #037be4;
}


/* ===== FORMAL BRAND LOGO ===== */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 25px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
}
.brand-logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}
.brand-logo span {
    font-family: "Inter", sans-serif;
}

/* NAVBAR ACTIVE LINK */
.navbar-nav .nav-link.active {
    color: #001f3f;
    border-bottom: 2px solid #001f3f;
}
.navbar-nav .nav-link {
    color: #001f3f;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
}
.navbar-nav .nav-link:hover {
    color: #001f3f;
}

/* CONTACT CARDS */
.contact-card {
    background: #ffffff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.08);
    border: 1px solid #e4e9f2;
}


/* ================= MODALS ================= */
.about-modal {
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    font-family:  'IBM Plex Sans', 'Segoe UI', sans-serif;
}
.about-modal-header {
    justify-content: center;
    border-bottom: 1px solid #dee2e6;
    position: relative;
    padding: 20px 40px;
}
.about-modal-logo {
    height: 50px;
    margin-right: 10px;
}
.about-modal-header .modal-title {
    text-align: center;
    font-weight: 600;
    font-size: 1.4rem;
}
.about-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
}
.about-modal-body {
    text-align: justify;
    white-space: pre-line;
    padding: 20px 40px;
    line-height: 1.7;
    color: #333;
    font-size: 0.95rem;
}
.about-modal-footer {
    justify-content: center;
    border-top: 1px solid #dee2e6;
    padding: 15px 0;
}

/* ================= MODALS - MOBILE RESPONSIVE (AYOS) ================= */

/* Tablet at Mobile Landscape (max-width: 768px) */
@media (max-width: 768px) {
    .about-modal {
        width: 90%;
        margin: 1rem auto;
    }
    
    .about-modal-header {
        padding: 15px 20px;
        flex-direction: row !important;  /* ITO ANG PAGBABAGO - pilitin na row para magkatabi */
        gap: 10px;
        justify-content: center;
        align-items: center;
    }
    
    .about-modal-logo {
        height: 40px;
        margin-right: 0;
    }
    
    .about-modal-header .modal-title {
        font-size: 1.2rem;
        margin: 0;
    }
    
    .about-modal-close {
        top: 10px;
        right: 10px;
    }
    
    .about-modal-body {
        padding: 16px 20px;
        font-size: 0.85rem;
        line-height: 1.6;
        max-height: 60vh;
        overflow-y: auto;
    }
    
    .about-modal-footer {
        padding: 12px 0;
    }
}

/* Mobile Portrait (max-width: 576px) */
@media (max-width: 576px) {
    .about-modal {
        width: 92%;
        margin: 0.8rem auto;
    }
    
    .about-modal-header {
        padding: 12px 16px;
        flex-direction: row !important;  /* PANATILIHING ROW */
        gap: 8px;
    }
    
    .about-modal-logo {
        height: 35px;
    }
    
    .about-modal-header .modal-title {
        font-size: 1.1rem;
    }
    
    .about-modal-body {
        padding: 14px 16px;
        font-size: 0.8rem;
    }
    
    .about-modal-footer {
        padding: 10px 0;
    }
    
    .about-modal-footer .btn {
        padding: 6px 16px;
        font-size: 0.8rem;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .about-modal {
        width: 94%;
        margin: 0.5rem auto;
    }
    
    .about-modal-header {
        padding: 10px 14px;
        flex-direction: row !important;  /* PANATILIHING ROW - magkatabi */
        gap: 8px;
    }
    
    .about-modal-logo {
        height: 30px;
    }
    
    .about-modal-header .modal-title {
        font-size: 1rem;
    }
    
    .about-modal-body {
        padding: 12px 14px;
        font-size: 0.75rem;
    }
    
    .about-modal-close {
        top: 8px;
        right: 8px;
    }
    
    .about-modal-close .btn-close {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

/* Extra Small Mobile (max-width: 380px) */
@media (max-width: 380px) {
    .about-modal {
        width: 96%;
        margin: 0.3rem auto;
    }
    
    .about-modal-header {
        padding: 8px 12px;
        flex-direction: row !important;  /* PANATILIHING ROW */
        gap: 6px;
    }
    
    .about-modal-logo {
        height: 28px;
    }
    
    .about-modal-header .modal-title {
        font-size: 0.95rem;
    }
    
    .about-modal-body {
        padding: 10px 12px;
        font-size: 0.7rem;
    }
}

/* Landscape orientation sa mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .about-modal {
        width: 90%;
        margin: 0.5rem auto;
    }
    
    .about-modal-header {
        flex-direction: row !important;  /* PANATILIHING ROW */
        padding: 10px 20px;
    }
    
    .about-modal-body {
        max-height: 50vh;
    }
}

.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
}

.modal-backdrop.fade {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-backdrop.show {
    opacity: 1;
}

/* ================= PAGE FADE & ANIMATIONS ================= */
body:not(.modal-open) {
    opacity: 0;
    animation: pageFadeLeft 0.7s ease forwards;
}
@keyframes pageFadeLeft {
    from { opacity:0; transform: translateX(-25px); }
    to { opacity:1; transform: translateX(0); }
}
.contact-hero h1, .contact-hero p {
    opacity:0;
    transform: translateX(-30px);
    animation: heroFadeLeft 0.8s ease forwards;
}
.contact-hero h1 { animation-delay:0.3s; }
.contact-hero p { animation-delay:0.6s; }
@keyframes heroFadeLeft {
    from { opacity:0; transform: translateX(-30px); }
    to { opacity:1; transform: translateX(0); }
}
.contact-card {
    opacity:0;
    transform: translateX(-30px);
    animation: cardFadeLeft 0.8s ease forwards;
    animation-delay:0.8s;
}
@keyframes cardFadeLeft {
    from { opacity:0; transform: translateX(-30px); }
    to { opacity:1; transform: translateX(0); }
}
.office-row {
    opacity:0;
    transform: translateX(-20px);
    animation: rowFadeLeft 0.6s ease forwards;
}
.office-row:nth-child(1){animation-delay:1s;}
.office-row:nth-child(2){animation-delay:1.2s;}
.office-row:nth-child(3){animation-delay:1.4s;}
.office-row:nth-child(4){animation-delay:1.6s;}
@keyframes rowFadeLeft {
    from { opacity:0; transform: translateX(-20px); }
    to { opacity:1; transform: translateX(0); }
}

/* ================= RESPONSIVE (FULL ENHANCED) ================= */

/* ===== BODY FONT ADJUSTMENT ===== */
@media (max-width: 768px) {
    body {
        font-size: 14px;
        line-height: 1.5;
    }
}

/* ===== HERO SECTION ===== */
@media (max-width: 768px) {
    .contact-hero {
        padding: 80px 15px;
    }
    .contact-hero h1 {
        font-size: 28px;
    }
    .contact-hero p {
        font-size: 14px;
        max-width: 90%;
    }
}
@media (max-width: 576px) {
    .contact-hero h1 {
        font-size: 24px;
    }
    .contact-hero p {
        font-size: 13px;
    }
}

/* ===== SECTION TITLE ===== */
@media (max-width: 768px) {
    .section-title {
        font-size: 18px;
        padding: 10px 20px;
    }
}
@media (max-width: 576px) {
    .section-title {
        font-size: 16px;
        padding: 8px 16px;
    }
}

/* ===== NAVBAR (POSITION PAREHAS SA CONTACT) ===== */
@media (max-width: 768px) {
    .navbar {
        height: auto;
        padding: 15px 10px;
    }
    .navbar-brand {
        font-size: 18px;
        display: flex;
        align-items: center;
        flex-wrap: wrap; /* responsive wrap */
        justify-content: flex-start; /* katulad sa contact */
    }
    .navbar-brand img {
        height: 60px !important;
        margin-left: 0; /* align left sa tablet */
        margin-right: 10px;
    }
    .navbar-brand.brand-logo span {
        font-size: 20px;
    }

    /* Navbar links including login */
    .navbar-nav .nav-link {
        font-size: 14px;
        margin: 5px 0;
        display: block; /* ensure stacked in collapsed menu */
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        height: 50px !important;
        margin-left: 0; /* align left sa mobile */
        margin-right: 8px;
    }
    .navbar-brand.brand-logo span {
        font-size: 18px; /* mobile scale down */
    }

    /* Navbar links including login */
    .navbar-nav .nav-link {
        font-size: 13px;
        margin: 5px 0;
        display: block;
    }
}

/* ===== CONTACT CARD ===== */
@media (max-width: 768px) {
    .contact-card {
        padding: 25px 20px;
    }
    .requirement-list li {
        font-size: 15px;
        padding: 8px 0;
    }
}
@media (max-width: 576px) {
    .contact-card {
        padding: 20px 15px;
    }
    .requirement-list li {
        font-size: 14px;
    }
}

/* ===== OFFICE ROW ===== */
@media (max-width: 768px) {
    .office-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .office-number {
        margin-top: 6px;
    }
}
@media (max-width: 576px) {
    .office, .office-number {
        font-size: 14px;
    }
}

/* ===== FOOTER ===== */
@media (max-width: 768px) {
    .footer {
        padding: 30px 15px;
        font-size: 14px;
    }
    .footer-icon {
        width: 24px;
        height: 24px;
    }
}
@media (max-width: 576px) {
    .footer, .footer-link, .footer-bottom .nav-link {
        font-size: 13px;
    }
}

/* ===== ABOUT MODAL ===== */
@media (max-width: 768px) {
    .about-modal-header {
        padding: 15px 20px;
    }
    .about-modal-body {
        padding: 15px 20px;
        font-size: 0.9rem;
    }
    .about-modal-footer {
        padding: 10px 0;
    }
    .about-modal-logo {
        height: 40px;
    }
    .about-modal-header .modal-title {
        font-size: 1.2rem;
    }
}

/* ===== BRAND LOGO ===== */
@media (max-width: 768px) {
    .brand-logo {
        font-size: 20px;
        gap: 6px;
    }
    .brand-logo img {
        height: 30px;
    }
}

/* ===== RESPONSIVE FOOTER ===== */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 15px;
    }
    .footer-heading {
        font-size: 1.1rem;
    }
    .footer-text {
        font-size: 0.9rem;
    }
    .footer-bottom .nav-link {
        margin: 0 10px;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .footer {
        text-align: center;
    }
    .footer-heading {
        font-size: 1rem;
    }
    .footer-text {
        font-size: 0.85rem;
    }
    .footer-icon, .footer-icon-small {
        margin-bottom: 5px;
    }
}

/* ===== FOOTER ===== */
@media (max-width: 768px) {
    .footer {
        padding: 30px 15px;
        font-size: 14px;
    }
    .footer-icon {
        width: 24px;
        height: 24px;
    }
}
@media (max-width: 576px) {
    .footer, .footer-link, .footer-bottom .nav-link {
        font-size: 13px;
    }
}

/* ================= RESPONSIVE MOBILE FIXES (CONTACT PAGE) ================= */
/* Ilagay ito sa dulo ng iyong CSS file */

/* Para maiwasan ang horizontal scroll sa buong page */
body {
    overflow-x: hidden;
    width: 100%;
}

/* Tablet at smaller desktop */
@media (max-width: 991.98px) {
    .hamburger {
        display: flex;
    }
    
    .navbar-brand img {
        height: 60px !important;
        margin-left: 0 !important;  /* tanggal ang negative margin */
    }
}

/* Mobile phones (tablet pababa) */
@media (max-width: 768px) {
    body {
        font-size: 14px;
        line-height: 1.5;
    }
    
    /* ===== NAVBAR ===== */
    .navbar {
        height: auto;
        padding: 10px;
    }
    
    .navbar-brand img {
        height: 50px !important;
        margin-left: 0 !important;  /* inaalis ang -60px na margin */
        margin-right: 8px;
    }
    
    .navbar-brand.brand-logo span {
        font-size: 16px;
    }
    
    .navbar-nav .nav-link {
        font-size: 14px;
        margin: 5px 0;
    }
    
    /* ===== CONTACT HERO ===== */
    .contact-hero {
        background-attachment: scroll;  /* mas maganda sa mobile, iwas lag */
        padding: 60px 15px;
    }
    
    .contact-hero h1 {
        font-size: 28px;
    }
    
    .contact-hero p {
        font-size: 14px;
        padding: 0.5rem 1rem;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .title-underline {
        width: 60px;
        height: 2px;
        margin-bottom: 1.2rem;
    }
    
    .scroll-indicator {
        margin-top: 0.4rem;
        padding: 0.5rem 1rem;
    }
    
    .scroll-indicator span {
        font-size: 0.7rem;
    }
    
    /* ===== SECTION TITLE (contact page) ===== */
    .section-title {
        font-size: 16px;
        padding: 6px 18px;
    }
    
    .section-icon {
        width: 50px;
        height: 50px;
    }
    
    .section-underline {
        width: 50px;
    }
    
    /* ===== CONTACT CARDS ===== */
    .contact-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    /* ===== OFFICE ROWS ===== */
    .office-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 0;
    }
    
    .office {
        font-size: 14px;
    }
    
    .office-number {
        font-size: 14px;
        justify-content: flex-start;
        padding-left: 20px;
    }
    
    /* ===== REQUIREMENT LISTS ===== */
    .requirement-list li,
    .requirement-list-dot li {
        font-size: 14px;
        padding: 10px 0;
    }
    
    /* ===== FOOTER ===== */
    .footer {
        padding: 40px 15px;
        text-align: center;
    }
    
    .footer-heading {
        font-size: 1.1rem;
    }
    
    .footer-text {
        font-size: 0.9rem;
    }
    
    .footer-bottom .nav-link {
        margin: 0 10px;
        font-size: 0.85rem;
    }
    
    .footer-icon, .footer-icon-small {
        margin-bottom: 5px;
    }
    
    /* ===== MODALS ===== */
    .about-modal-header {
        padding: 15px 20px;
    }
    
    .about-modal-body {
        padding: 15px 20px;
        font-size: 0.9rem;
    }
    
    .about-modal-logo {
        height: 40px;
    }
    
    .about-modal-header .modal-title {
        font-size: 1.2rem;
    }
    
    /* ===== BRAND LOGO ===== */
    .brand-logo {
        font-size: 20px;
        gap: 6px;
    }
    
    .brand-logo img {
        height: 30px;
    }
}

/* Maliit na phone (max 576px) */
@media (max-width: 576px) {
    .contact-hero {
        padding: 50px 15px;
    }
    
    .contact-hero h1 {
        font-size: 24px;
    }
    
    .contact-hero p {
        font-size: 13px;
    }
    
    .title-underline {
        margin-bottom: 1rem;
    }
    
    .scroll-indicator {
        margin-top: 0.3rem;
        padding: 0.4rem 0.9rem;
    }
    
    .scroll-indicator span {
        font-size: 0.65rem;
    }
    
    .section-title {
        font-size: 14px;
        padding: 5px 14px;
    }
    
    .contact-card {
        padding: 15px;
    }
    
    .office {
        font-size: 13px;
    }
    
    .office-number {
        font-size: 13px;
    }
    
    .requirement-list li,
    .requirement-list-dot li {
        font-size: 13px;
    }
    
    .footer {
        padding: 30px 15px;
    }
    
    .footer-heading {
        font-size: 1rem;
    }
    
    .footer-text {
        font-size: 0.85rem;
    }
    
    .navbar-brand img {
        height: 40px !important;
    }
    
    .navbar-brand.brand-logo span {
        font-size: 14px;
    }
}

/* Sobrang liit na phone (max 480px) */
@media (max-width: 480px) {
    .contact-hero {
        padding: 40px 15px;
    }
    
    .contact-hero h1 {
        font-size: 22px;
    }
    
    .section-title {
        font-size: 13px;
        padding: 4px 12px;
    }
}

/* Landscape orientation sa mobile */
@media (orientation: landscape) and (max-height: 600px) {
    .contact-hero {
        padding: 40px 15px;
        min-height: auto;
    }
    
    .contact-card {
        margin-bottom: 15px;
    }
}

/* Hover effects - para sa desktop lang, hindi sa mobile */
@media (hover: hover) {
    .contact-card:hover {
        transform: translateY(-5px);
    }
    
    .office-row:hover {
        background: #f8faff;
        padding-left: 12px;
        padding-right: 12px;
        border-radius: 12px;
    }
    
    .scroll-indicator:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(3px);
    }
    
    .footer-link:hover {
        color: #037be4;
    }
}

/* Para sa touch devices (mobile) - active state imbes na hover */
@media (hover: none) {
    .contact-card:active {
        transform: translateY(-3px);
        transition: transform 0.1s;
    }
    
    .office-row:active {
        background: #f8faff;
    }
    
    .scroll-indicator:active {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(2px);
    }
}

/* Iwasan ang page flicker sa mobile dahil sa body animation */
@media (max-width: 768px) {
    body:not(.modal-open) {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    /* Para sa desktop lang ang page fade animation */
    @media (min-width: 769px) {
        body:not(.modal-open) {
            opacity: 0;
            animation: pageFadeLeft 0.7s ease forwards;
        }
    }
}

/* ================= HAMBURGER ICON - ILAGAY SA KANANG BAHAGI ================= */

/* Para sa mobile, i-adjust ang navbar container para nasa kanan ang hamburger */
@media (max-width: 768px) {
    .navbar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    /* Siguraduhing ang brand ay nasa kaliwa */
    .navbar-brand {
        margin-right: auto;  /* itulak ang lahat sa kanan */
    }
    
    /* Ang hamburger button ay nasa kanan, katabi ng navbar toggler kung mayroon */
    .hamburger {
        display: flex;
        order: 2;            /* ilagay sa kanang dulo */
        margin-left: auto;   /* itulak sa kanan */
        margin-right: 0;
    }
    
    /* Kung may navbar-toggler (Bootstrap default), itago ito at gamitin ang hamburger */
    .navbar-toggler {
        display: none !important;
    }
    
    /* Siguraduhing maayos ang spacing */
    .navbar .container {
        position: relative;
    }
}

/* Para sa sobrang liit na screen, panatilihin ang tama */
@media (max-width: 576px) {
    .hamburger {
        width: 28px;
        height: 22px;
    }
}

/* ================= NAVBAR RESPONSIVE ================= */

/* Tablet and below (max-width: 991.98px) */
@media (max-width: 991.98px) {
    /* Show hamburger */
    .hamburger {
        display: flex !important;
        margin-left: auto;
        order: 2;
    }
    
    /* Navbar container */
    .navbar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 0 15px;
        position: relative;
    }
    
    /* Brand logo */
    .navbar-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-right: auto;
        order: 1;
    }
    
    .navbar-brand img {
        height: 50px !important;
        width: auto !important;
        margin-left: 0 !important;
        margin-right: 10px;
    }
    
    .navbar-brand.brand-logo span {
        font-size: 16px;
    }
    
    /* Hide Bootstrap toggler */
    .navbar-toggler {
        display: none !important;
    }
    
    /* Navigation collapse */
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 0 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        border-radius: 0 0 12px 12px;
        z-index: 1029;
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        opacity: 0;
        transition: all 0.3s ease;
        border-top: 2px solid #001f3f;
    }
    
    .navbar-collapse.show {
        max-height: 600px;
        padding: 20px;
        visibility: visible;
        opacity: 1;
    }
    
    .navbar-nav {
        flex-direction: column;
        gap: 5px;
        margin: 0;
        padding: 0;
        list-style: none;
    }
    
    .navbar-nav .nav-item {
        width: 100%;
    }
    
    .navbar-nav .nav-link {
        display: block;
        padding: 10px 15px;
        font-size: 15px;
        color: #001f3f !important;
        border-radius: 8px;
        transition: all 0.2s ease;
        font-weight: 600;
    }
    
    .navbar-nav .nav-link:hover {
        background: #f0f4fa;
        color: #037be4 !important;
    }
    
    .navbar-nav .nav-link.active {
        background: #001f3f !important;
        color: white !important;
        border-radius: 8px;
    }
    
    /* Dropdown menu sa mobile */
    .navbar-nav .dropdown-menu {
        position: static !important;
        float: none !important;
        width: 100%;
        background: #f8fafc;
        border: none;
        box-shadow: none;
        padding: 0;
        margin-top: 5px;
        border-radius: 8px;
    }
    
    .navbar-nav .dropdown-item {
        padding: 10px 15px;
        font-size: 14px;
        color: #001f3f;
        border-radius: 8px;
    }
    
    .navbar-nav .dropdown-item:hover {
        background: #e8edf4;
        color: #037be4;
    }
    
    .navbar-nav .nav-link.login {
        border-left: none;
        margin-left: 0;
        padding-left: 15px;
    }
    
    .navbar-nav .dropdown-toggle::after {
        float: right;
        margin-top: 8px;
    }
}

/* Mobile phones (max-width: 768px) */
@media (max-width: 768px) {
    .navbar {
        padding: 8px 0;
        height: auto;
    }
    
    .navbar-brand img {
        height: 40px !important;
    }
    
    .navbar-brand.brand-logo span {
        font-size: 14px;
    }
    
    .hamburger {
        width: 26px;
        height: 20px;
    }
    
    .hamburger span {
        height: 2.5px;
    }
    
    .navbar-nav .nav-link {
        font-size: 14px;
        padding: 8px 12px;
    }
}

/* Small mobile (max-width: 576px) */
@media (max-width: 576px) {
    .navbar-brand img {
        height: 35px !important;
        margin-right: 8px;
    }
    
    .navbar-brand.brand-logo span {
        font-size: 12px;
    }
    
    .hamburger {
        width: 24px;
        height: 18px;
    }
    
    .hamburger span {
        height: 2px;
    }
    
    .navbar-nav .nav-link {
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .navbar-collapse.show {
        padding: 15px;
        max-height: 500px;
    }
}

/* Extra small mobile (max-width: 380px) */
@media (max-width: 380px) {
    .navbar-brand img {
        height: 30px !important;
        margin-right: 6px;
    }
    
    .navbar-brand.brand-logo span {
        font-size: 11px;
    }
    
    .hamburger {
        width: 22px;
        height: 16px;
    }
    
    .hamburger span {
        height: 2px;
    }
    
    .navbar-nav .nav-link {
        font-size: 12px;
        padding: 5px 8px;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .navbar-collapse {
        max-height: 300px;
        overflow-y: auto;
    }
    
    .navbar-collapse.show {
        max-height: 300px;
        padding: 15px;
    }
    
    .navbar-nav .nav-link {
        padding: 5px 10px;
        font-size: 13px;
    }
    
    .navbar-brand img {
        height: 35px !important;
    }
}

/* Desktop - hide hamburger and show full menu */
@media (min-width: 992px) {
    .hamburger {
        display: none !important;
    }
    
    .navbar-toggler {
        display: none !important;
    }
    
    .navbar-collapse {
        display: flex !important;
        position: static;
        background: transparent;
        padding: 0;
        box-shadow: none;
        max-height: none;
        overflow: visible;
        visibility: visible;
        opacity: 1;
        border-top: none;
    }
    
    .navbar-nav {
        flex-direction: row;
        gap: 0;
        align-items: center;
    }
    
    .navbar-nav .nav-link {
        padding: 8px 16px;
        font-size: 15px;
        color: #001f3f !important;
        border-radius: 20px;
    }
    
    .navbar-nav .nav-link:hover {
        background: transparent;
        color: #037be4 !important;
    }
    
    .navbar-nav .nav-link.active {
        background: #001f3f !important;
        color: white !important;
        border-radius: 20px;
    }
    
    .navbar-nav .nav-link.login {
        border-left: 1px solid rgba(0, 0, 0, 0.15);
        margin-left: 20px;
        padding-left: 20px;
    }
    
    .navbar-nav .dropdown-menu {
        position: absolute !important;
        background: white;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        padding: 8px 0;
        min-width: 200px;
    }
    
    .navbar-nav .dropdown-item {
        padding: 10px 20px;
        font-size: 14px;
        color: #001f3f;
        transition: all 0.2s ease;
    }
    
    .navbar-nav .dropdown-item:hover {
        background: #f0f4fa;
        color: #037be4;
    }
    
    .navbar-nav .dropdown-toggle::after {
        margin-left: 8px;
    }
}

/* Hamburger animation - active state */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .navbar-collapse,
    .hamburger span,
    .navbar-nav .nav-link {
        transition: none !important;
    }
}