html{
    scroll-behavior: smooth;
    scroll-padding-top: 20px; /* Moderate offset for desktop */
}

/* Medium screens (tablets) */
@media (max-width: 991px) and (min-width: 769px) {
    html {
        scroll-padding-top: 15px; /* Medium offset for tablet sticky navigation */
    }
}
/* Custom CSS for Volunteer Guide */
.volunteer-guide-hero,
.volunteer-guide-hero *,
.volunteer-steps,
.volunteer-steps *,
.volunteer-content,
.volunteer-content *,
.volunteer-social,
.volunteer-social *,
.volunteer-cta,
.volunteer-cta *,
.icon-navigation,
.icon-navigation *,
.content-section,
.content-section * {
    font-family: 'Comfortaa', sans-serif;
}

.volunteer-guide-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    height: calc(100vh - 80px);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}

.volunteer-guide-hero .container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hero-logo-corner {
    position: absolute;
    top: 20px;
    left: 20px;
    max-width: 200px;
    z-index: 1;
}

.hero-logo-corner img {
    width: 100%;
    height: auto;
}

.hero-main-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 0;
}

.hero-center-title {
    text-align: center;
    z-index: 0;
}

.hero-center-title h1 {
    font-weight: 700;
    font-size: 3rem;
    color: #102982;
}

.hero-bottom-right {
    position: absolute;
    bottom: 20px;
    right: 20px;
    text-align: center;
    z-index: 0;
}

.p2prevention-section {
    margin-bottom: 15px;
    text-align: left;
}

.p2prevention-section img {
    max-width: 200px;
    height: auto;
}

.hero-links {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.hero-link {
    transition: transform 0.3s ease;
    display: inline-block;
}

.hero-site-icon {
    max-width: 60px;
    height: auto;
}

.hero-face-icon {
    width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}



.hero-wave-bottom-left {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1;
    width: 400px;
    height: auto;
}

.hero-wave-bottom-left img {
    width: 100%;
    height: auto;
}

.hero-wave-top-right {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    width: 400px;
    height: auto;
    transform: rotate(180deg);
}

.hero-wave-top-right img {
    width: 100%;
    height: auto;
}

.volunteer-steps {
    background-color: #102982;
    position: relative;
    padding: 0 2rem;
}

.volunteer-steps .container {
    background-color: #fff;
    border-radius: 50px;
    padding: 3rem;
}

.step-column {
    height: 100%;
    text-align: center;
}

.step-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.step-icon img {
    max-width: 80px;
    height: auto;
}

.step-title {
    color: #000;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.step-number {
    color: #102982;
    font-weight: 700;
    margin-right: 0.5rem;
}

.step-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.step-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: #333;
    line-height: 1.4;
    font-size: 0.9rem;
}

.check-icon {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    margin-top: 2px;
    flex-shrink: 0;
}

.icon-navigation {
    background-color: #f8f9fa;
    padding: 3rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0); /* Enable hardware acceleration */
    will-change: padding, box-shadow, background-color;
}

.icon-navigation .section-title {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: font-size, margin;
}

.icon-navigation .icon-nav-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem;
    will-change: padding;
}

.icon-navigation .icon-nav-image {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.icon-navigation .icon-nav-image img {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: width, height;
}

.icon-navigation .icon-nav-title {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: font-size, line-height;
}

.icon-navigation.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.7rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background-color: #f8f9fa;
    animation: slideInFromTop 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInFromTop {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}







.icon-navigation.sticky .section-title {
    display: none;
}

.icon-navigation.sticky .icon-nav-item {
    padding: 0.5rem;
}

.icon-navigation.sticky .icon-nav-image img {
    width: 55px;
    height: 55px;
}

.icon-navigation.sticky .icon-nav-title {
    display: none;
}

.sticky-spacer {
    height: 0;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: height;
}

.sticky-spacer.active {
    height: var(--sticky-height, 100px);
}

.icon-nav-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.icon-nav-container::-webkit-scrollbar {
    display: none;
}

.icon-nav-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
}

.icon-nav-col {
    flex: 0 0 auto;
    min-width: 200px;
}

@media (min-width: 992px) {
    .icon-nav-container {
        overflow-x: visible;
    }
    
    .icon-nav-row {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .icon-nav-col {
        flex: 0 0 18%;
        max-width: 18%;
        min-width: auto;
    }
}

.icon-nav-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-nav-link:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-5px);
}

.icon-nav-link:hover .icon-nav-image img {
    transform: scale(1.1);
}

.icon-nav-link:hover .icon-nav-title {
    color: #102982;
}

.icon-navigation.sticky .icon-nav-link:hover .icon-nav-image img {
    transform: scale(1.15);
}



.icon-nav-item {
    text-align: center;
    padding: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.icon-nav-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-nav-image img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.icon-nav-title {
    color: #102982;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.steps-image {
    max-width: 100%;
    height: auto;
}

.section-title {
    color: #102982;
    font-weight: 700;
}

.divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border: none;
    margin: 0 auto 2rem;
}

.content-card {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
}

.card-icon img {
    max-width: 120px;
    height: auto;
}

.card-title {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-text {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.card-list {
    list-style: none;
    padding: 0;
}

.card-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    color: #2c3e50;
}

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

.platform-section {
    background: #fff;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.platform-logo img {
    max-width: 300px;
    height: auto;
}

.volunteer-social {
    background: #f8f9fa;
}

.social-card {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

.social-card:hover {
    transform: translateY(-5px);
}

.social-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.qr-code {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-top: 1rem;
}

.volunteer-cta {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.volunteer-cta .section-title {
    color: white;
}

.cta-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.btn-primary {
    background: #e74c3c;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 10px; /* Smaller offset for mobile sticky navigation */
    }
    
    .volunteer-guide-hero {
        height: calc(100vh - 70px);
        padding: 15px 0;
    }
    
    .hero-logo-corner {
        max-width: 120px;
        top: 15px;
        left: 15px;
    }
    
    .hero-center-title h1 {
        font-size: 2rem;
    }
    
    .hero-bottom-right {
        bottom: 15px;
        right: 15px;
    }
    
    .p2prevention-section img {
        max-width: 150px;
    }
    
    .hero-site-icon {
        max-width: 45px;
    }
    
    .hero-face-icon {
        width: 150px;
    }
    
    .hero-wave-bottom-left {
        width: 200px;
    }
    
    .hero-wave-top-right {
        width: 200px;
        top: 80px;
    }
    
    /* Last hero section should have -1px top on mobile */
    .volunteer-guide-hero:last-of-type .hero-wave-top-right {
        top: -1px;
    }
    
    .content-card {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .platform-section {
        padding: 2rem;
    }
    
    .social-card {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .qr-code {
        width: 100px;
        height: 100px;
    }
    
    .volunteer-steps {
        padding: 0 1rem;
    }
    
    .volunteer-steps .container {
        padding: 48px 2rem;
        border-radius: 30px;
    }
    
    .step-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .step-number {
        font-size: 1.1rem;
    }
    
    .step-list li {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }
    
    .check-icon {
        width: 14px;
        height: 14px;
        margin-right: 8px;
    }
    
    .step-icon img {
        max-width: 60px;
    }
    
    .icon-nav-image img {
        width: 50px;
        height: 50px;
        object-fit: contain;
    }
    
    .icon-nav-title {
        font-size: 0.9rem;
        font-weight: 700;
    }
    
    .icon-nav-item {
        padding: 0.8rem;
    }
    
    .icon-nav-col {
        min-width: 150px;
    }

    .icon-navigation {
        padding: 2rem 0;
    }
    
    .icon-navigation.sticky {
        padding: 0.6rem 0;
    }
    
    .icon-navigation.sticky .section-title {
        display: none;
    }

    .icon-navigation.sticky .icon-nav-item {
        padding: 0.4rem;
    }
    
    .icon-navigation.sticky .icon-nav-image img {
        width: 45px;
        height: 45px;
    }
    
    .icon-navigation.sticky .icon-nav-title {
        display: none;
    }
    
    .icon-navigation.sticky .icon-nav-col {
        min-width: 70px;
    }


}

/* Content Sections */
.content-section {
    background-color: #102982;
}

/* Smooth transition for sticky navigation padding adjustments */
#community-section {
    transition: padding-top 0.3s ease-out;
}

/* Inverse Content Section (white background, blue container) */
.content-section-inverse {
    background-color: #fff;
}

/* Main Section Titles */
.main-section-title {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 48px;
}

.main-section-title-inverse {
    color: #102982;
}

.content-wrapper {
    background-color: #fff;
    padding: 48px 12rem;
    border-radius: 50px;
    min-height: 400px;
}

/* Inverse Content Wrapper (blue background) */
.content-wrapper-inverse {
    background-color: #102982;
}

.section-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1;
}

.section-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.content-section-title {
    color: #102982;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 48px;
    padding-right: 100px;
}

/* Inverse Content Title (white text) */
.content-section-title-inverse {
    color: #fff;
}

.content-items {
    margin-top: 1.5rem;
}

.content-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.content-item-icon {
    flex-shrink: 0;
}

.content-item-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.content-item-text {
    flex: 1;
}

.content-item-text p {
    margin-bottom: 0.8rem;
    line-height: 1.6;
    color: #333;
}

.content-item-text p:last-child {
    margin-bottom: 0;
}

/* Inverse Content Text (white text) */
.content-item-text-inverse {
    color: #fff;
}

.content-item-text-inverse p {
    color: #fff;
}

.content-item-text-inverse strong {
    color: #fff;
}

/* Training List */
.training-list {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-top: 1rem;
}

.training-list li {
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* School Sessions List */
.school-sessions-list {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.school-sessions-list li {
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Make mentor icon white in inverse sections */
.content-wrapper-inverse .content-item-icon img[src*="mentor"] {
    filter: brightness(0) invert(1);
}

/* Make only to-do icon white in inverse sections */
.content-wrapper-inverse .content-item-icon img[src*="to_do"] {
    filter: brightness(0) invert(1);
}

.inline-icon {
    display: inline;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin: 0 2px;
}

.criteria-list {
    margin: 0.8rem 0;
    padding-left: 1.5rem;
}

.criteria-list li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
    color: #333;
}

@media (max-width: 768px) {
    .content-wrapper {
        padding: 48px 2rem;
        border-radius: 30px;
        min-height: auto;
    }
    
    .section-icon {
        top: 15px;
        right: 15px;
    }
    
    .section-icon img {
        width: 60px;
        height: 60px;
    }
    
    .content-section-title {
        font-size: 1.5rem;
        padding-right: 80px;
        margin-bottom: 48px;
    }
    
    .main-section-title {
        font-size: 1.8rem;
        margin-bottom: 48px;
    }
    
    .content-item {
        gap: 0.8rem;
        margin-bottom: 1.5rem;
    }
    
    .content-item-icon img {
        width: 30px;
        height: 30px;
    }
    
    .content-item-text p {
        font-size: 0.9rem;
    }
    
    .inline-icon {
        width: 16px;
        height: 16px;
    }
    
    .criteria-list {
        padding-left: 1.2rem;
    }
    
    .criteria-list li {
        font-size: 0.9rem;
    }
}

/* Organizational Tree */
.org-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
    position: relative;
}

.org-level {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
    position: relative;
    z-index: 2;
}

.org-box {
    background: #f8f9fa;
    border: 2px solid #102982;
    border-radius: 15px;
    padding: 12px 24px;
    margin: 0 1rem;
    text-align: center;
    font-weight: 600;
    color: #102982;
    min-width: 180px;
    position: relative;
}

.org-box.top-level {
    background: #102982;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.1rem;
}

.vice-level {
    gap: 4rem;
}

.vertical-line {
    width: 2px;
    height: 30px;
    background: #102982;
    margin: 0 auto;
    z-index: 1;
}

.horizontal-line {
    width: 200px;
    height: 2px;
    background: #102982;
    margin: 0 auto;
    z-index: 1;
}

.vice-to-members-lines {
    position: relative;
    width: 100%;
    height: 30px;
}

.vice-line {
    position: absolute;
    width: 2px;
    height: 15px;
    background: #102982;
    top: 0;
}

.vice-line.left {
    left: calc(50% - 100px);
}

.vice-line.right {
    right: calc(50% - 100px);
}

.members-horizontal-line {
    position: absolute;
    height: 2px;
    background: #102982;
    top: 15px;
    left: calc(50% - 100px);
    right: calc(50% - 100px);
}

.members-horizontal-line::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -15px;
    transform: translateX(-50%);
    width: 2px;
    height: 15px;
    background: #102982;
}

@media (max-width: 768px) {
    .org-box {
        padding: 10px 16px;
        margin: 0 0.5rem;
        min-width: 120px;
        font-size: 0.9rem;
    }
    
    .org-box.top-level {
        font-size: 1rem;
    }
    
    .vice-level {
        gap: 2rem;
    }
    
    .horizontal-line {
        width: 150px;
    }
    
    .vice-line.left {
        left: calc(50% - 75px);
    }
    
    .vice-line.right {
        right: calc(50% - 75px);
    }
    
    .members-horizontal-line {
        left: calc(50% - 75px);
        right: calc(50% - 75px);
    }
} 