/*
Theme Name: PAGLAUM Theme
Description: Custom theme for PAGLAUM Multi-Purpose Cooperative
Version: 1.0
Author: PAGLAUM Development Team
*/

/* Import Montserrat Font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    margin-bottom: 1rem;
}

a {
    font-family: 'Montserrat', sans-serif;
    color: #000199;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #000066;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background: linear-gradient(135deg, #000199 0%, #000066 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background-color: #ffffff;
    padding: 1rem 0;
    border-bottom: 3px solid #000199;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-box {
    background-color: #000199;
    border: 2px solid #000199;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    min-width: 80px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-box:hover {
    background-color: #000066;
    border-color: #000066;
    transform: scale(1.05);
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    color: #ffffff;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 2px;
    line-height: 1;
}

/* Custom Logo Styles */
.custom-logo-link {
    display: block;
    line-height: 0;
}

.custom-logo {
    max-height: 60px;
    width: auto;
    height: auto;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.company-info h1 {
    color: #000000;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.company-info .subtitle {
    color: #000000;
    font-size: 0.875rem;
    margin: 0;
}

.company-info .tagline {
    color: #000199;
    font-size: 0.75rem;
    margin: 0;
}

.company-info .contact {
    color: #333333;
    font-size: 0.75rem;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #000199;
    border-radius: 50%;
    text-align: center;
    line-height: 1;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #000066;
    transform: scale(1.1);
}

/* YouTube Icon - Official Red Color */
.social-links a.youtube-link {
    background-color: #FF0000;
}

.social-links a.youtube-link:hover {
    background-color: #CC0000;
}

/* HR Portal Link - Remove circular container */
.social-links a.hr-portal-link {
    width: auto;
    height: auto;
    background-color: transparent;
    border-radius: 0;
    line-height: normal;
    padding: 0;
    display: flex;
    align-items: center;
}

.social-links a.hr-portal-link:hover {
    background-color: transparent;
    transform: scale(1.05);
}

/* Navigation */
.header-nav {
    background-color: #000066;
    padding: 0.5rem 0;
        /* border-bottom removed */
}

/* Ensure proper positioning for dropdowns */
.main-nav {
    position: relative !important;
}

.main-nav li {
    position: relative !important;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: #000199;
    border: 2px solid #000199;
    border-radius: 8px;
    cursor: pointer;
    padding: 12px 16px;
    z-index: 1002;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: #000066;
    border-color: #000066;
}

/* Mobile Menu Header (hidden on desktop) */
.mobile-menu-header {
    display: none;
}

.mobile-menu-close {
    display: none;
}

.hamburger-line {
    display: block;
    width: 28px;
    height: 3px;
    background-color: #ffffff;
    margin: 4px auto;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.main-nav {
    text-align: center;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.main-nav a {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-1px);
}

/* Sub-menu Dropdown Styles */
.main-nav li {
    position: relative;
}

.main-nav ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #000199;
    min-width: 200px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
    list-style: none;
    pointer-events: none;
}

.main-nav li:hover > ul.sub-menu,
.main-nav li.menu-item-has-children:hover > ul.sub-menu,
.main-nav li:hover ul.sub-menu,
.main-nav ul li:hover > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Keep sub-menu visible when hovering over it */
.main-nav ul.sub-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Add padding-top to sub-menu to create hover buffer */
.main-nav ul.sub-menu:before {
    content: '';
    position: absolute;
    top: -5px;
    left: 0;
    right: 0;
    height: 5px;
}

/* Debug: Add visible border to parent li on hover */
.main-nav li.menu-item-has-children:hover {
    background-color: rgba(255,255,255,0.1);
}

.main-nav ul.sub-menu li {
    width: 100%;
    display: block;
}

.main-nav ul.sub-menu a {
    padding: 0.75rem 1rem;
    border-radius: 0;
    display: block;
    font-size: 0.9em;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.main-nav ul.sub-menu a:hover {
    background-color: rgba(255,255,255,0.15);
    padding-left: 1.5rem;
    transform: none;
}

.main-nav ul.sub-menu li:last-child a {
    border-bottom: none;
}

/* Dropdown Arrow Indicator */
.main-nav li.menu-item-has-children > a::after {
    content: '▼';
    font-size: 0.7em;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.main-nav li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

/* Touch and Focus States */
.main-nav li.menu-item-has-children.focused > ul.sub-menu,
.main-nav li.menu-item-has-children.touch-active > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav li.menu-item-has-children.focused > a::after,
.main-nav li.menu-item-has-children.touch-active > a::after {
    transform: rotate(180deg);
}

/* Mobile Menu Styles (for future mobile menu button) */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Hero Slider Styles */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    transition: transform 0.3s ease;
}

.slide:hover .slide-bg {
    transform: scale(1.02);
}

.slide-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.slide-text {
    color: #333333;
    max-width: 800px;
    padding: 2rem;
    background: rgba(0,1,153,0.2);
    border-radius: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
}

.slide-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #000000 !important;
    text-shadow: 2px 2px 4px rgba(255,255,255,0.8);
    animation: slideInUp 1s ease-out;
}

.slide-text h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #000199;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
    animation: slideInUp 1s ease-out 0.2s both;
}

.slide-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    animation: slideInUp 1s ease-out 0.4s both;
}

.slide .btn {
    animation: slideInUp 1s ease-out 0.6s both;
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 3;
    pointer-events: none;
}

.slider-prev,
.slider-next {
    position: absolute;
    background: rgba(0,1,153,0.8);
    color: #ffffff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-prev {
    left: 2rem;
}

.slider-next {
    right: 2rem;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(0,1,153,1);
    transform: scale(1.1);
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background: #ffeb3b;
    border-color: #ffeb3b;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button Styles */
.btn {
    font-family: 'Montserrat', sans-serif;
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: #d4af37;
    color: #000000;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    background-color: #c9a532;
}

.btn-primary {
    background-color: #d4af37;
    color: #000000;
}

.btn-primary:hover {
    background-color: #c9a532;
}

/* Section Styles */
.section {
    padding: 4rem 0;
}

.section-gray {
    background-color: #f8f9fa;
}

.section-title {
    text-align: center;
    color: #000199;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: #666666;
    font-size: 1.125rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

/* Cards */
.card {
    background: #ffffff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.card h3 {
    color: #000199;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.card p {
    color: #666666;
    margin-bottom: 1.5rem;
}

/* Statistics */
.stats-card {
    background-color: #000199;
    color: #ffffff;
    border-radius: 15px;
    padding: 3rem 2rem;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #ffeb3b;
    font-size: 1.25rem;
    font-weight: 500;
}

/* About Section Centered */
.about-content-centered {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 0;
}

.about-content-centered .section-title {
    color: #000199;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
}

.about-content-centered p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #555;
    text-align: center;
}

/* Make about section image touch the bottom */
.about-section {
    padding-bottom: 0;
}

/* Library Section */
.library-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: visible;
    padding-bottom: 4rem;
}

.library-content {
    display: block;
    max-width: 800px;
    margin: 0 auto;
}

.library-text .section-title {
    font-family: 'Montserrat', sans-serif;
    color: #000199;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.library-text p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 2rem;
    text-align: center;
}

.library-categories {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.category-item {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    overflow: hidden;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 1, 153, 0.2);
}

.category-icon {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: #f8f9fa;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.category-item:hover .category-icon {
    background: #e9ecef;
    transform: scale(1.1);
}

.category-icon svg {
    width: 60px;
    height: 60px;
}

.category-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 0;
    border: none;
}

.category-item h4 {
    font-family: 'Montserrat', sans-serif;
    color: #000199;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    padding: 0;
}

.category-item p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
    padding: 0;
}

/* Help Desk Form within Library Section */
.help-desk-form {
    margin-top: 3rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.help-desk-form .form-title {
    font-family: 'Montserrat', sans-serif;
    color: #000199;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.help-desk-form .form-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #555;
    margin-bottom: 2rem;
    text-align: center;
}

.form-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.form-column {
    padding-right: 1rem;
}

.image-column {
    display: flex;
    justify-content: center;
    align-items: stretch;
    margin-top: 0;
    position: relative;
    margin-bottom: -2rem;
    overflow: hidden;
}

.contact-image {
    width: 100%;
    max-width: 500px;
    height: calc(100% + 2rem);
    object-fit: cover;
    object-position: center top;
}

/* Contact Form Styles */
.contact-form {
    margin-top: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    font-family: 'Montserrat', sans-serif;
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    font-family: 'Montserrat', sans-serif;
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000199;
    box-shadow: 0 0 0 3px rgba(0, 1, 153, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Map Section */
.map-section {
    margin-top: 2rem;
    margin-bottom: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 10px;
}

.map-section h4 {
    font-family: 'Montserrat', sans-serif;
    color: #000199;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    max-width: 100%;
    background: #f0f0f0;
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: none;
    display: block;
}

.about-image {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 0;
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.about-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
    min-height: 320px;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 1, 153, 0.6);
    border-radius: 8px;
}

.overlay-text {
    text-align: center;
    color: white;
    padding: 2rem;
}

.overlay-text h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.overlay-text p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.about-img:hover {
    transform: scale(1.02);
}

/* Services Section */
.services-section {
    position: relative;
    min-height: 600px;
    overflow: visible;
    display: block;
    visibility: visible;
}

.services-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.services-overlay {
    position: relative;
    width: 100%;
    height: auto;
    background: rgba(255,255,255,0.85);
    padding: 4rem 0;
    z-index: 1;
}

.services-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.services-text {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.services-content .section-title {
    color: #000199;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    margin-left: 0; /* Centered title */
}

.services-content .section-subtitle {
    color: #333333;
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    padding-left: 0; /* Centered subtitle */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.service-item {
    background: rgba(255,255,255,0.9);
    border-radius: 15px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,1,153,0.1);
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #000199, #000066);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-item:hover::before {
    transform: scaleX(1);
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    background: rgba(255,255,255,0.95);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.service-item:hover .service-icon {
    transform: scale(1.1);
}

.service-item h3 {
    color: #000199;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.service-item:hover h3 {
    color: #000066;
}

.service-item p {
    color: #555555;
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Services Layout with Image */
.services-layout {
    position: relative;
    width: 100%;
    margin-top: 3rem;
}

.services-image {
    position: absolute;
    top: -50px;
    left: -280px;
    width: 450px;
    height: 650px;
    z-index: 10;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
}

.lady-image {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
    object-position: center top;
    box-shadow: none;
    transition: transform 0.3s ease;
    filter: none;
}

.services-image:hover .lady-image {
    transform: scale(1.05);
    box-shadow: none;
}

.services-grid.with-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-left: 80px; /* Reduced margin since image is moved further left */
    margin-right: 0;
    position: relative;
    z-index: 1;
}

.services-grid.with-layout .service-item {
    padding: 2rem 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.services-grid.with-layout .service-item .btn {
    margin-top: auto;
}

/* Contact Section */
.contact-info {
    background-color: #000199;
    color: #ffffff;
    border-radius: 10px;
    padding: 3rem 2rem;
    margin-top: 3rem;
}

.contact-info h3 {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    text-align: center;
}

.contact-grid h4 {
    color: #d4af37;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-grid p {
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Footer */
.site-footer {
    background-color: #000066;
    color: #ffffff;
    text-align: center;
    padding: 2rem 0;
}

/* Tablet responsive styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        gap: 1rem;
    }
    
    .company-info h1 {
        font-size: 1.3rem;
    }
    
    .company-info .subtitle {
        font-size: 0.8rem;
    }
    
    .company-info .tagline,
    .company-info .contact {
        font-size: 0.7rem;
    }
    
    .main-nav ul {
        gap: 1rem;
    }
    
    .main-nav a {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .services-grid.with-layout {
        grid-template-columns: repeat(2, 1fr);
        margin-left: 0;
        margin-right: 0;
    }
    
    .services-image {
        position: static;
        width: 100%;
        height: 350px;
        margin-bottom: 2rem;
        margin-top: 2rem;
        left: auto;
        top: auto;
    }
    
    .lady-image {
        height: 100%;
        border-radius: 20px;
    }
    
    .services-content .section-title {
        margin-left: 0; /* Reset title margin on tablet */
    }
    
    .services-content .section-subtitle {
        padding-left: 0; /* Reset subtitle padding on tablet */
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Position header container for hamburger */
    .header-top {
        position: relative;
    }
    
    .header-top .container {
        position: relative;
        padding-bottom: 80px;
    }
    
    /* Show and center mobile menu toggle at BOTTOM */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: absolute;
        left: 50%;
        bottom: 15px;
        transform: translateX(-50%);
        z-index: 1002;
        background: #000199;
        border: 2px solid #000066;
        border-radius: 8px;
        padding: 10px 20px;
        min-width: 80px;
    }
    
    /* Ensure hamburger lines are centered */
    .mobile-menu-toggle .hamburger-line {
        margin: 3px auto;
        display: block;
    }
    
    /* Add visual separation */
    .mobile-menu-toggle::after {
        content: 'MENU';
        display: block;
        font-size: 0.65rem;
        color: white;
        text-align: center;
        margin-top: 8px;
        font-weight: 700;
        letter-spacing: 1.5px;
    }
    
    /* Mobile Menu Header */
    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.5rem;
        background-color: rgba(0, 0, 0, 0.2);
        position: sticky;
        top: 0;
        z-index: 10;
        border-bottom: 2px solid rgba(255,255,255,0.2);
    }
    
    .mobile-menu-header h3 {
        color: white;
        font-size: 1.2rem;
        margin: 0;
        font-weight: 600;
        letter-spacing: 2px;
    }
    
    .mobile-menu-close {
        display: block;
        background: transparent;
        border: none;
        color: white;
        font-size: 2.5rem;
        line-height: 1;
        cursor: pointer;
        padding: 0;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-close:hover {
        background-color: rgba(255,255,255,0.1);
        border-radius: 4px;
    }
    
    /* Hide navigation by default on mobile */
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: #000066;
        transition: left 0.3s ease;
        overflow-y: auto;
        padding-top: 0;
        box-shadow: 2px 0 10px rgba(0,0,0,0.3);
        z-index: 1001;
    }
    
    .main-nav.mobile-active {
        left: 0;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
    
    /* Mobile menu overlay */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0,0,0,0.5);
        z-index: 999;
    }
    
    .header-nav {
        position: relative;
    }
    
    .header-nav .container {
        position: relative;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
        margin: 0;
    }
    
    .main-nav li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .main-nav a {
        display: block;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        text-align: left;
        border-radius: 0;
    }
    
    .main-nav a:hover {
        background-color: rgba(255,255,255,0.15);
    }
    
    /* Mobile dropdown styles */
    .main-nav li .dropdown-submenu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        background-color: rgba(0, 0, 0, 0.2) !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease !important;
        display: block !important;
    }
    
    .main-nav li.mobile-dropdown-open .dropdown-submenu {
        max-height: 2000px !important;
    }
    
    .main-nav .dropdown-submenu a {
        padding-left: 2.5rem !important;
        font-size: 0.9rem !important;
        border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    }
    
    /* Add arrow indicator for dropdowns on mobile */
    .main-nav li a[href="#"]::after {
        content: ' ▼';
        font-size: 0.7rem;
        margin-left: 0.5rem;
        transition: transform 0.3s ease;
        display: inline-block;
    }
    
    .main-nav li.mobile-dropdown-open > a[href="#"]::after {
        transform: rotate(180deg);
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-section {
        flex-direction: column;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .main-nav a {
        font-size: 0.875rem;
        padding: 0.25rem 0.75rem;
    }

    /* Mobile sub-menu styles */
    .main-nav ul.sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: rgba(0, 1, 153, 0.9);
        margin-top: 0.5rem;
        border-radius: 4px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .main-nav li.menu-item-has-children:hover > ul.sub-menu,
    .main-nav li.menu-item-has-children.focused > ul.sub-menu,
    .main-nav li.menu-item-has-children.touch-active > ul.sub-menu {
        max-height: 300px;
    }

    .main-nav ul.sub-menu a {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
        margin-left: 1rem;
    }

    .main-nav li.menu-item-has-children > a::after {
        content: '►';
        transform: rotate(90deg);
        transition: transform 0.3s ease;
    }

    .main-nav li.menu-item-has-children:hover > a::after,
    .main-nav li.menu-item-has-children.focused > a::after,
    .main-nav li.menu-item-has-children.touch-active > a::after {
        transform: rotate(90deg) rotateY(180deg);
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    /* Responsive logo styles */
    .custom-logo {
        max-height: 45px;
    }
    
    .logo-box {
        min-width: 60px;
        padding: 0.25rem 0.75rem;
    }
    
    /* Responsive slider styles */
    .hero-slider {
        height: 70vh;
        min-height: 400px;
    }
    
    .slide-text h1 {
        font-size: 2.5rem;
    }
    
    .slide-text h2 {
        font-size: 1.8rem;
    }
    
    .slide-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .slide .btn {
        font-size: 1rem;
        padding: 0.75rem 2rem;
    }
    
    .slider-prev,
    .slider-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .slider-prev {
        left: 1rem;
    }
    
    .slider-next {
        right: 1rem;
    }
    
    .slider-dots {
        bottom: 1rem;
    }
    
    /* Mobile slider text improvements */
    .slide-text {
        padding: 1.5rem;
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .slide-text h1 {
        font-size: 2.5rem;
    }
    
    .slide-text h2 {
        font-size: 1.8rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section h2 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    /* Responsive services section */
    .services-section {
        min-height: auto;
    }
    
    .services-bg-image {
        background-attachment: scroll;
    }
    
    .services-overlay {
        padding: 3rem 0;
    }
    
    .services-text .section-title {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    .services-text .section-subtitle {
        font-size: 1.1rem;
        margin-bottom: 3rem;
        padding: 0 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem;
        padding: 0 1rem;
    }
    
    .service-item {
        padding: 2rem 1.5rem;
    }
    
    .service-icon {
        font-size: 2.5rem;
        height: 70px;
        margin-bottom: 1rem;
    }
    
    .service-item h3 {
        font-size: 1.3rem;
    }
    
    /* Responsive services layout with image */
    .services-layout {
        position: static;
    }
    
    .services-image {
        position: static;
        width: 100%;
        height: 300px;
        margin-bottom: 2rem;
        left: auto;
        top: auto;
    }
    
    .lady-image {
        height: 100%;
        max-height: 300px;
        object-fit: cover;
        object-position: center top;
        border-radius: 15px;
    }
    
    .services-grid.with-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-left: 0; /* Remove left margin on mobile */
        margin-right: 0;
    }
    
    .services-grid.with-layout .service-item {
        padding: 1.5rem 1rem;
    }
    
    .services-content .section-title {
        margin-left: 0; /* Reset title margin on mobile */
    }
    
    .services-content .section-subtitle {
        padding-left: 0; /* Reset subtitle padding on mobile */
    }
    
    /* About section responsive */
    .about-content-centered {
        padding: 1.5rem 1rem;
    }
    
    .about-content-centered .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .about-content-centered p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .about-image {
        margin-top: 1.5rem;
        max-width: 100%;
    }
    
    .about-img {
        border-radius: 6px;
        min-height: 220px;
    }
    
    .image-overlay {
        border-radius: 6px;
    }
    
    .overlay-text {
        padding: 1rem;
    }
    
    .overlay-text h3 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .overlay-text p {
        font-size: 1rem;
    }
    
    /* Library Section Mobile */
    .library-content {
        max-width: 100%;
    }
    
    .library-text .section-title {
        font-size: 2rem;
    }
    
    .library-categories {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .category-item {
        padding: 0;
    }
    
    .category-img {
        height: 120px;
    }
    
    .category-item h4 {
        padding: 0.75rem 0.75rem 0.25rem 0.75rem;
        font-size: 1rem;
    }
    
    .category-item p {
        padding: 0 0.75rem 0.75rem 0.75rem;
        font-size: 0.85rem;
    }
    
    /* Help Desk Form Mobile */
    .help-desk-form {
        margin-top: 2rem;
        padding: 1.5rem 1rem;
    }
    
    .help-desk-form .form-title {
        font-size: 1.5rem;
    }
    
    .help-desk-form .form-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .form-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-column {
        padding-right: 0;
    }
    
    .contact-image {
        max-width: 400px;
        height: 300px;
    }
    
    /* Contact Form Mobile */
    .contact-form {
        margin-top: 1rem;
    }
    
    .form-group {
        margin-bottom: 0.75rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
    
    /* Map Section Mobile */
    .map-section {
        margin-top: 1rem;
        margin-bottom: 2rem;
    }
    
    .map-section h4 {
        font-size: 1.3rem;
    }
    
    .map-container {
        margin: 0 1rem;
        border-radius: 6px;
    }
    
    .map-container iframe {
        height: 350px;
    }
    
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.hidden {
    display: none;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Extra Small Mobile Devices (< 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .header-top {
        padding: 0.75rem 0;
    }
    
    .logo-section {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .company-info h1 {
        font-size: 1.1rem;
    }
    
    .company-info .subtitle {
        font-size: 0.75rem;
    }
    
    .company-info .tagline,
    .company-info .contact {
        font-size: 0.65rem;
    }
    
    .custom-logo {
        max-height: 40px;
    }
    
    .logo-box {
        min-width: 50px;
        padding: 0.25rem 0.5rem;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .social-links a.hr-portal-link img {
        width: 50px !important;
        height: 50px !important;
    }
    
    .hero-slider {
        height: 60vh;
        min-height: 350px;
    }
    
    .slide-text {
        padding: 1rem;
        margin: 0.5rem;
    }
    
    .slide-text h1 {
        font-size: 1.8rem !important;
    }
    
    .slide-text h2 {
        font-size: 1.3rem;
    }
    
    .slide-description {
        font-size: 0.9rem;
    }
    
    .slide .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.5rem;
    }
    
    .slider-prev,
    .slider-next {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    /* Branch pages responsive */
    .branch-hero,
    .plaridel-hero,
    .calamba-hero,
    .tudela-hero,
    .ozamiz-hero,
    .molave-hero,
    .rizal-hero,
    .sindangan-hero,
    .liloy-hero {
        padding: 3rem 1rem !important;
    }
    
    .branch-hero h1,
    .plaridel-hero h1,
    .calamba-hero h1,
    .tudela-hero h1,
    .ozamiz-hero h1,
    .molave-hero h1,
    .rizal-hero h1,
    .sindangan-hero h1,
    .liloy-hero h1 {
        font-size: 1.8rem !important;
    }
    
    .years-badge {
        font-size: 1rem !important;
        padding: 0.4rem 1rem !important;
    }
    
    .info-cards {
        grid-template-columns: 1fr !important;
    }
    
    .info-card h3 {
        font-size: 1.1rem !important;
    }
    
    .mission-grid {
        grid-template-columns: 1fr !important;
    }
    
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
}