body
{
    background: none !important;
}
.hero-section {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(135deg, #174251, #2a6f85);
    color: white;
    margin-bottom: 10px;
    border-radius: 0 0 50px 50px;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('<?php echo base_url("assets/image/patterns/pattern.png"); ?>') repeat;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.staff-section {
    padding: 50px 0;
}

.featured-staff {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s;
}

.featured-staff:hover {
    transform: translateY(-10px);
}

.staff-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.staff-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
}

.staff-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s;
}

.featured-staff:hover .staff-image img {
    transform: scale(1.05);
}

.staff-content {
    padding: 30px;
}

.staff-role {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(45deg, #174251, #2a6f85);
    color: white;
    border-radius: 25px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    transform: translateY(-50%);
}

.staff-content h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #174251;
}

.staff-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #ede9e9;
    border-radius: 15px;
}

.detail-item i {
    font-size: 1.2rem;
    color: #174251;
}

.staff-contact {
    display: flex;
    gap: 15px;
}

.contact-link {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.contact-link.primary {
    background: linear-gradient(45deg, #174251, #2a6f85);
    color: white;
}

.contact-link.secondary {
    border: 2px solid #174251;
    color: #174251;
}

.contact-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.staff-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
}

.staff-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.staff-card .staff-image {
    height: 300px;
}

.staff-card .staff-content {
    padding: 20px;
}

.staff-card .staff-role {
    font-size: 0.8rem;
    padding: 5px 15px;
    margin-bottom: 15px;
    transform: none;
}

.staff-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
    padding: 15px;
    background: #ede9e9;
    border-radius: 15px;
}

.staff-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #333;
}

.staff-meta i {
    color: #174251;
}

.org-chart {
    border-radius: 30px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.org-level-1,
.org-level-2,
.org-level-3 {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 30px 0;
}

.org-level-2 {
    margin-top: 60px;
    justify-content: space-around;
}

.org-level-3 {
    margin-top: 40px;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px;
}

.org-unit {
    position: relative;
    min-width: 300px;
    max-width: 400px;
}

.org-content {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #ede9e9;
}

.org-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.org-unit.secretary .org-content {
    background: linear-gradient(135deg, #174251, #2a6f85);
    color: white;
    position: relative;
    overflow: hidden;
}


.org-content::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    width: 2px;
    height: 30px;
    background: #174251;
    transform: translateX(-50%);
    z-index: -1;
}

.org-unit.secretary .org-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('<?php echo base_url("assets/image/patterns/pattern.png"); ?>') repeat;
    opacity: 0.1;
    z-index: 0;
}

.org-unit.secretary .org-content > * {
    position: relative;
    z-index: 1;
}

.org-unit.secretary .org-content h4,
.org-unit.secretary .org-content i {
    color: white;
}

.member {
    padding: 12px 15px;
    border-radius: 15px;
    margin: 8px 0;
    font-size: 0.95rem;
    color: #333;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #ede9e9;
    background: #e8e8e8
}

.member:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.member-image {
    width: 60px;
    height: 60px;
    margin: 0;
    flex-shrink: 0;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.member:hover .member-image img {
    transform: scale(1.05);
}

.member .member-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.member-info .name {
    color: #174251;
    font-weight: 500;
    font-size: 1rem;
}

.member-info .position {
    color: #333;
    font-size: 0.85rem;
}

.years-of-service {
    background: linear-gradient(135deg, #ede9e9, rgba(42, 111, 133, 0.1));
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #174251;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    border: 1px solid #ede9e9;
}

.years-of-service::before {
    content: '\f017';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.9rem;
    background: linear-gradient(135deg, #174251, #2a6f85);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.year-of-service-secretary::before {
    -webkit-text-fill-color: initial !important;
    background-color: blue !important;
}

.member.head {
    background: linear-gradient(135deg, #ede9e9, red);
    border: none;
    padding: 15px;
}

.member.head .member-info {
    align-items: flex-start;
}

.member.head .name {
    font-size: 1.1rem;
    color: #174251;
    margin-bottom: 2px;
}

.member.head .title {
    font-size: 0.85rem;
    color: #174251;
    font-weight: 500;
    padding: 3px 10px;
    background: white;
    border-radius: 12px;
    display: inline-block;
}

@media (max-width: 1200px) {
    .org-level-2,
    .org-level-3 {
        flex-direction: column;
        align-items: center;
        gap: 60px;
    }

    .org-unit {
        margin: 0;
        width: 100%;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .org-chart {
        padding: 30px 15px;
        border-radius: 20px;
    }

    .member {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .member-image {
        margin: 0 auto;
    }

    .member .member-info {
        align-items: center;
    }

    .years-of-service {
        margin-top: 5px;
    }
}

/* Update divisions section */

.divisions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

.division-item {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    border: 1px solid #ede9e9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.division-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, #174251, #2a6f85);
    transition: all 0.3s;
}

.division-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.division-item:hover::before {
    height: 8px;
}

.division-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #174251, #2a6f85);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.division-icon::before {
    content: '';
    position: absolute;
    inset: 2px;
    background: white;
    border-radius: 18px;
    z-index: -1;
}

.division-icon i {
    font-size: 32px;
    background: linear-gradient(135deg, #174251, #2a6f85);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.division-item:hover .division-icon {
    transform: rotateY(180deg);
}

.division-item h4 {
    color: #174251;
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 600;
}

.division-item p {
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.division-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ede9e9;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #174251;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: #333;
}

.division-features {
    margin-top: 20px;
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s;
}

.feature-item:hover {
    background: #ede9e9;
}
.feature-item i {
    color: #174251;
    font-size: 1rem;
}

.feature-text {
    font-size: 0.9rem;
    color: #333;
}

@media (max-width: 768px) {
    .divisions-grid {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .division-item {
        padding: 30px 20px;
    }
}
.featured-staff {
    overflow: hidden;
    margin-bottom: 50px;
    }
    
    .staff-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    }
    
    .staff-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    }
    
    .staff-content {
    padding: 20px;
    }
    
    .staff-role {
    background: linear-gradient(45deg, #174251, #2a6f85);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 15px;
    }
    
    .staff-content h3 {
    color: #174251;
    margin-bottom: 15px;
    }
    
    .staff-quote {
    color: #333;
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 20px;
    }
    
    .staff-details {
    margin-bottom: 20px;
    }
    
    .detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    margin-bottom: 10px;
    }
    
    .detail-item i {
    color: #174251;
    }
    
    .staff-contact {
    display: flex;
    gap: 15px;
    }
    
    .contact-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #174251;
    text-decoration: none;
    font-size: 0.9rem;
    }
    
    .contact-link:hover {
    color: #2a6f85;
    }
    
    .staff-card {
    height: 100%;
    transition: transform 0.3s ease;
    }
    
    .staff-card:hover {
    transform: translateY(-5px);
    }
    
    .staff-card .staff-image {
    height: 250px;
    margin: -20px -20px 20px -20px;
    }
    
    .staff-info {
    padding: 20px;
    }
    
    .staff-info h4 {
    color: #174251;
    margin-bottom: 5px;
    }
    
    .staff-department {
    color: #333;
    font-size: 0.9rem;
    margin-bottom: 15px;
    }
    
    .staff-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #333;
    }
    
    .staff-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    }
    
    .staff-meta i {
    color: #174251;
    }
    
    .divisions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
    }
    
    .division-item {
    text-align: center;
    }
    
    .division-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #174251, #2a6f85);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    }
    
    .division-icon i {
    font-size: 24px;
    color: white;
    }
    
    .division-item h4 {
    color: #174251;
    margin-bottom: 10px;
    }
    
    .division-item p {
    color: #333;
    font-size: 0.9rem;
    margin: 0;
    }
    
    @media (max-width: 768px) {
    .staff-image {
        margin-bottom: 20px;
    }
    
    .staff-contact {
        flex-direction: column;
    }
    
    .contact-link {
        width: 100%;
        justify-content: center;
        padding: 8px;
        background: #ede9e9;
        border-radius: 20px;
    }
    
    .divisions-grid {
        grid-template-columns: 1fr;
    }
    }
    
    .org-meta {
    color: #333;
    font-size: 0.8rem;
    margin: 5px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    }
    
    .org-meta i {
    color: #174251;
    }
    
    .org-tree {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    }
    
    .org-level-1,
    .org-level-2,
    .org-level-3 {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 30px 0;
    }
    
    .org-level-2 {
    margin-top: 60px;
    justify-content: space-around;
    position: relative;
    }
    
    .org-level-2::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    width: 2px;
    height: 100px;
    background: #174251;
    transform: translateX(-50%);
    z-index: -1;
    }
    
    .org-level-2::after {
    content: '';
    position: absolute;
    top: 0;
    left: 15.7%;
    right: 15.7%;
    height: 2px;
    background: #174251;
    }
    
    .org-level-3 {
    margin-top: 40px;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px;
    position: relative;
    }
    
    .org-unit {
    position: relative;
    min-width: 300px;
    max-width: 400px;
    }
    
    .org-unit:not(.secretary) .org-level-3 .org-unit::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    width: 2px;
    height: 40px;
    background: #174251;
    transform: translateX(-50%);
    z-index: -1;
    }
    
    .org-unit.secretary::before {
    display: none;
    }
    
    .org-level-3::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    width: 2px;
    height: 40px;
    background: #174251;
    transform: translateX(-50%);
    }
    
    .org-content {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    }
    
    .org-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
    
    .org-unit.secretary .org-content {
    background: linear-gradient(45deg, #174251, #2a6f85);
    color: white;
    }
    
    .org-content i {
    font-size: 24px;
    color: #174251;
    margin-bottom: 10px;
    }
    
    .org-unit.secretary .org-content i {
    color: white;
    }
    
    .org-content h4 {
    margin: 10px 0;
    font-size: 1.2rem;
    color: #174251;
    }
    
    .org-unit.secretary .org-content h4 {
    color: white;
    }
    
    .org-content h5 {
    color: #174251;
    margin-bottom: 15px;
    font-size: 1.1rem;
    }
    
    .member-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    }
    
    .member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    }
    
    .member-title {
    font-size: 0.9rem;
    opacity: 0.9;
    }
    
    .org-members {
    margin-top: 15px;
    text-align: left;
    }
    
    .member {
    padding: 8px;
    border-radius: 5px;
    margin: 5px 0;
    font-size: 0.9rem;
    color: #333;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    }
    
    .member .member-info {
    flex: 1;
    }
    
    .years-of-service {
    background: #c0d0d6;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    color: #174251;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top:10px
    }
    
    .years-of-service::before {
    content: '\f017';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.8rem;
    }
    
    .member.head {
    background: #e0ecee;
    color: #174251;
    font-weight: 500;
    flex-wrap: wrap;
    }
    
    .member.head .member-info {
    width: 100%;
    }
    
    .member.head .name {
    display: block;
    margin-bottom: 3px;
    }
    
    .member.head .title {
    font-size: 0.8rem;
    opacity: 0.8;
    display: block;
    margin-bottom: 5px;
    }
    
    @media (max-width: 1200px) {
    .org-level-2,
    .org-level-3 {
        flex-direction: column;
        align-items: center;
        gap: 60px;
    }
    
    .org-unit {
        margin: 0;
        width: 100%;
        max-width: 500px;
    }
    
    .org-level-2::before {
        height: 60px;
    }
    
    .org-level-3::before {
        height: 60px;
    }
    
    .org-level-2::after {
        display: none;
    }
    
    .org-unit:not(.secretary)::before {
        top: -60px;
        height: 60px;
    }
}