* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    
}

body {
    background-color: var(--gray-100);
}

:root {
    --primary-color: #1E3A8A;
    --primary-light: #EFF6FF;

    /*Announcement colors*/
    --blue: #0d6efd;
    --indigo: #6610f2;
    --purple: #6f42c1;
    --pink: #d63384;
    --red: #dc3545;
    --orange: #fd7e14;
    --yellow: #ffc107;
    --green: #198754;
    --teal: #20c997;
    --cyan: #0dcaf0;
    --white: #fff;
    --gray: #6c757d;
    --gray-dark: #343a40;
    --primary: #1E3A8A;
    --secondary: #6c757d;
    --success: #198754;
    --info: #0dcaf0;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #212529;

    /* Services */
    --primary-blue: #1E3A8A;
    --light-blue: #EFF6FF;
    --gray-900: #111827;
    --gray-600: #4B5563;
    --gray-100: #F3F4F6;
}

/* Navbar Styles */
.navbar-custom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #1E3A8A;
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-custom.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 0.5rem 0;
}

.navbar-brand-custom {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar-logo {
    height: 40px;
    width: auto;
}

.navbar-title {
    margin-left: 0.5rem;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-link-custom {
    position: relative;
    color: white;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    transition: color 0.3s ease;
    text-decoration: none;
}

.nav-link-custom:hover {
    color: #BFDBFE;
}

.nav-link-custom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: white;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-link-custom:hover::after {
    transform: scaleX(1);
}

.nav-link-custom:hover .nav-chevron {
    opacity: 1;
}

.nav-chevron {
    opacity: 0;
    transition: opacity 0.3s ease;
    margin-left: 0.25rem;
}

.btn-login {
    background-color: white;
    color: #1E3A8A;
    font-weight: 500;
    margin-left: 1rem;
}

.btn-login:hover {
    background-color: #EFF6FF;
}

.mobile-menu {
    border-top: 1px solid #3B82F6;
    margin-top: 0.5rem;
    padding: 1rem 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.mobile-nav-link:hover {
    background-color: #3B82F6;
    text-decoration: none;
}

/* Better approach - style the link as a button */
.login-btn {
    background-color: white;
    color: #1E3A8A !important;
    font-weight: 500;
    margin-left: 1rem;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    text-decoration: none !important;
    display: inline-block;
}

.login-btn:hover {
    background-color: #EFF6FF;
    text-decoration: none !important;
}

/* Mobile adjustments */
@media (max-width: 991.98px) {
    .login-btn {
        margin-left: 0;
        width: 100%;
        text-align: center;
        display: block;
    }
}

 /* Hero Section with optimized wave rendering */
 .hero-section {
    position: relative;
    width: 100%;
    height: 550px;
    background-color: white;
    overflow: hidden;
    margin-top: auto;
}

/* Background Image with Overlay */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/Background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(30, 58, 138, 0.7);
    z-index: 2;
}

/* Content Styles */
.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    padding: 2rem;
    color: white;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 36rem;
    margin-bottom: 1.5rem;
}

/* CTA Button Styles */
.btn-hero-cta {
    background-color: white;
    color: #1E3A8A;
    font-weight: 600;
    font-size: 1.125rem;
    padding: 0.5rem 2rem;
    border: none;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.btn-hero-cta:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: #1E3A8A;
    transform: translateY(-2px);
}

/* Optimized Wave Divider */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    height: 120px;
    overflow: hidden;
}

.hero-wave svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Prevent rendering artifacts */
    shape-rendering: geometricPrecision;
    text-rendering: geometricPrecision;
    image-rendering: optimizeQuality;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-content {
        padding: 0 4rem;
    }
}

@media (min-width: 1200px) {
    .hero-title {
        font-size: 3.75rem;
    }
}


/* Services */

.services-section {
    padding: 5rem 1rem;
    background-color: var(--gray-100);
}

.section-title {
    color: var(--gray-900);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--gray-600);
    max-width: 800px;
    margin: 0 auto 3rem;
}

.service-card {
    height: 100%;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.service-icon-container {
    background-color: var(--light-blue);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.service-icon {
    color: var(--primary-blue);
    font-size: 1.75rem;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.service-description {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-btn {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    font-weight: 500;
    margin-top: auto;
    align-self: flex-start;
}

.service-btn:hover {
    background-color: var(--primary-blue);
    color: white;
}

.service-btn i {
    transition: transform 0.3s ease;
}

.service-btn:hover i {
    transform: translateX(3px);
}

/* Office Hours Service */

.office-hours-container {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #dbeafe;
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 1460px;
}

.office-hours-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.office-hours-subtitle {
    color: #4b5563;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.schedule-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 1.5rem;
}

/* Desktop - straight line with equal spacing */
@media (min-width: 992px) {
    .schedule-grid {
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .schedule-card {
        flex: 1;
        min-width: 0;
        /* Allows equal distribution */
    }
}

/* Tablet - 3 cards per row */
@media (max-width: 991px) and (min-width: 768px) {
    .schedule-card {
        flex: 0 0 calc(33.33% - 6px);
    }
}

/* Small tablet - 2 cards per row */
@media (max-width: 767px) and (min-width: 576px) {
    .schedule-card {
        flex: 0 0 calc(50% - 6px);
    }
}

/* Mobile - single column */
@media (max-width: 575px) {
    .schedule-card {
        flex: 0 0 100%;
    }
}

.schedule-card {
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    background-color: white;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.schedule-day {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
    text-align: center;
}

.schedule-hours {
    font-size: 0.9rem;
    color: #4b5563;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
}

.schedule-card.active {
    background-color: #f0f7ff;
    border-color: #93c5fd;
}

.schedule-card.active .schedule-day {
    color: #1e40af;
}

.schedule-card.active .schedule-hours {
    color: #1d4ed8;
}

.current-day {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

.current-day span {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e40af;
}

.info-note {
    background-color: #f0f7ff;
    border-left: 4px solid #3b82f6;
    padding: 1rem;
    font-size: 0.95rem;
    color: #4b5563;
    border-radius: 8px;
}

/* Base styles */
.footer {
    background-color: #1e293b;
    color: white;
    padding: 3rem 1rem;
    position: relative;
    overflow: hidden;
    /* Prevents any potential overflow during transitions */
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.footer-map {
    height: 12rem;
    width: 100%;
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: #334155;
    margin-bottom: 1rem;
    transition: height 0.3s ease;
}

.footer-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.footer-contact-item,
.footer-hours-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.footer-icon {
    color: #60a5fa;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.footer-link {
    color: white;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #60a5fa;
}

.footer-quick-links {
    list-style: none;
    padding-left: 0;
}

.footer-quick-links li {
    margin-bottom: 0.5rem;
}

.footer-quick-links a {
    color: white;
    text-decoration: none;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

.footer-quick-links a:hover {
    color: #60a5fa;
}

.footer-quick-links a::before {
    content: "›";
    color: #60a5fa;
    margin-right: 0.5rem;
    transition: margin-right 0.2s ease;
}

.footer-quick-links a:hover::before {
    margin-right: 0.7rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.social-link {
    background-color: #1e40af;
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #1e3a8a;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.footer-divider {
    height: 1px;
    background-color: #334155;
    margin: 2rem 0;
    transition: margin 0.3s ease;
}

.footer-copyright {
    color: #94a3b8;
    text-align: center;
    transition: font-size 0.3s ease;
}

.footer-copyright a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-copyright a:hover {
    color: #60a5fa;
    text-decoration: underline;
}

/* Improved Logo Section with Smooth Transitions */
.footer-logo-container {
    margin-top: 2rem;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-logos {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-logo-img {
    height: auto;
    max-height: 120px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}


/* Smooth transitions for different screen sizes */
/* Large Desktop (>1200px) */
@media (min-width: 1200px) {
    .footer-logo-container {
        position: absolute;
        right: 1rem;
        top: 1rem;
        width: auto;
        margin-top: 0;
    }

    .footer-logos {
        justify-content: flex-end;
    }

    .footer-logo-img {
        max-height: 150px;
        max-width: 150px;
    }
}

/* Medium Desktop (992px-1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .footer-logo-container {
        position: static;
        margin: 2rem auto 0;
        max-width: 300px;
    }

    .footer-logos {
        justify-content: center;
    }

    .footer-logo-img {
        max-height: 110px;
        max-width: 110px;
    }

    .footer-map {
        height: 10rem;
    }
}

/* Tablet (768px-991px) */
@media (max-width: 991.98px) and (min-width: 768px) {
    .footer-logo-img {
        max-height: 100px;
        max-width: 100px;
    }

    .footer-map {
        height: 9rem;
    }

    .footer-divider {
        margin: 1.5rem 0;
    }
}

/* Mobile (<768px) */
@media (max-width: 767.98px) {
    .footer-logo-img {
        max-height: 90px;
        max-width: 90px;
    }

    .footer-map {
        height: 8rem;
    }

    .footer-title {
        font-size: 1.1rem;
    }

    .footer-copyright {
        font-size: 0.9rem;
    }

    .footer-divider {
        margin: 1rem 0;
    }
}

/* Very small mobile (<400px) */
@media (max-width: 399.98px) {
    .footer-logos {
        gap: 1rem;
    }

    .footer-logo-img {
        max-height: 80px;
        max-width: 80px;
    }
}


/*TATANGALIN KO RIN TO HAHAH*/
.services-section h2 span {
    background: linear-gradient(90deg, #0d6efd 0%, #6610f2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}



/*==================================TO TOP================================*/

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #1E3A8A;
    color: white;
    border: none;
    border-radius: 15%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease;
    z-index: 1000; /* Ensure the button is on top */
  }
  
  .back-to-top:hover {
    background-color: #0056b3;
  }
  
  .back-to-top.show {
    opacity: 1;
    visibility: visible;
  }
  
  