* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================================
   HEADER STYLES
   ================================ */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c5aa0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    text-align: center;
    line-height: 1.2;
}

.logo-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.logo-slogan {
    font-size: 0.75rem;
    color: #e91e63;
    font-style: italic;
    margin-top: -2px;
}

.logo .heart {
    color: #e74c3c;
    margin-right: 12px;
    font-size: 2.2rem;
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 3rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    font-size: 0.95rem;
}

nav a:hover,
nav a.active {
    color: #2c5aa0;
}

nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #2c5aa0;
    transition: width 0.3s;
}

nav a:hover:after,
nav a.active:after {
    width: 100%;
}

.header-donate-btn {
    background: #EC008C;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(231, 76, 60, 0.3);
}

.header-donate-btn:hover {
    background: #673F98;
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(231, 76, 60, 0.4);
}

/* ================================
   HERO SECTION STYLES
   ================================ */
.hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 50%, #2d5a27 100%);
    color: white;
    padding: 180px 0 120px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
    background-image: url('../images/HHAM_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: overlay;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.4) 60%),
                radial-gradient(ellipse at 20% 80%, rgba(76, 175, 80, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 2;
}

#networkCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 4;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    max-width: 800px;
    opacity: 0.95;
    line-height: 1.5;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

/* Header Stats */
.header-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
	color: #673F98;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ================================
   FLOATING FACEBOOK BUTTON
   ================================ */
.floating-facebook {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
}

.floating-facebook a {
    display: block;
    background: #1877f2;
    padding: 15px;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(24, 119, 242, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-facebook a:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(24, 119, 242, 0.6);
}

.floating-fb-icon {
    width: 30px;
    height: 30px;
    display: block;
    /* Remove filter in case it's causing issues */
}

/* Fallback: If image doesn't load, show 'f' text */
.floating-facebook a::before {
    content: 'f';
    color: white;
    font-size: 28px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

/* Hide the text when image loads successfully */
.floating-fb-icon:not([src=""]):not([src*="data:"]) + .floating-facebook a::before,
.floating-facebook a:has(.floating-fb-icon[src]:not([src=""])) ::before {
    display: none;
}

/* Alternative approach - hide text when image is present */
.floating-facebook a:has(img) ::before {
    display: none;
}

/* Hide floating button on mobile to avoid interference */
@media (max-width: 768px) {
    .floating-facebook {
        right: 15px;
        opacity: 0.8;
    }
    
    .floating-facebook a {
        width: 50px;
        height: 50px;
        padding: 12px;
    }
    
    .floating-fb-icon {
        width: 24px;
        height: 24px;
    }
}

/* ================================
   BUTTON STYLES
   ================================ */
.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    align-items: center;
	text-align: center;	
}

.btn {
    padding: 18px 35px;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 56px;
    white-space: nowrap;
    text-align: center;
    box-sizing: border-box;
}

.btn span {
    font-size: 1.2rem;
    line-height: 1;
    flex-shrink: 0;
}

/* Image icon styling for buttons */
.btn-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 3px;
}

.btn img.btn-icon {
    vertical-align: middle;
    display: inline-block;
}

.btn-primary {
    background: #EC407A;
    color: white;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #673F98;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
	display: block;	
}

.btn-secondary-highlight {
    background: #673F98;
    color: #FFFFFF;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
	display: block;	
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    background: #27ae60;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
}

.btn:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* ================================
   SCROLL SECTIONS
   ================================ */
.scroll-wrapper {
    position: relative;
    margin: 3rem 0;
}

.scroll-container {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

.scroll-card {
    min-width: 350px;
    max-width: 350px;
    min-height: 480px;
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    border: 1px solid #ecf0f1;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.scroll-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.scroll-card-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #27ae60;
    flex-shrink: 0;
}

.scroll-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.scroll-card p {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.scroll-card ul {
    list-style: none;
    padding: 0;
    flex-grow: 1;
}

.scroll-card li {
    color: #7f8c8d;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9rem;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.scroll-card li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

/* Navigation Arrows */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: #333;
    transition: all 0.3s ease;
    z-index: 10;
}

.nav-arrow:hover {
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.nav-arrow.prev {
    left: -25px;
}

.nav-arrow.prev:before {
    content: '‹';
}

.nav-arrow.next {
    right: -25px;
}

.nav-arrow.next:before {
    content: '›';
}

/* Pagination Dots */
.pagination-container {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background 0.3s ease;
}

.pagination-dot.active {
    background: #2c5aa0;
}

/* ================================
   SECTION STYLES
   ================================ */
.section {
    padding: 100px 0;
    background: white;
}

.section-dark {
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #2c5aa0, #27ae60);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.3rem;
    color: #7f8c8d;
    max-width: 700px;
    margin: 0 auto;
}

/* ================================
   TECH TAGS
   ================================ */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.tech-tag {
    background: #f8f9fa;
    color: #2c3e50;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    border: 2px solid #ecf0f1;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: #2c5aa0;
    color: white;
    border-color: #2c5aa0;
}

/* ================================
   BOARD MEMBER CARDS
   ================================ */
.board-member-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    border: 1px solid #ecf0f1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.board-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.5rem;
    position: relative;
    border: 4px solid #ecf0f1;
    transition: border-color 0.3s ease;
}

.board-member-card:hover .member-photo {
    border-color: #2c5aa0;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.board-member-card:hover .member-photo img {
    transform: scale(1.1);
}

.member-photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: none;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
}

.photo-icon {
    font-size: 3rem;
    color: #6c757d;
}

.member-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.member-info h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.member-title {
    color: #2c5aa0;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.member-description {
    color: #7f8c8d;
    line-height: 1.6;
    font-size: 0.9rem;
    text-align: center;
}

/* ================================
   CONTACT CARDS
   ================================ */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    border: 1px solid #ecf0f1;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

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

.contact-icon {
    font-size: 4rem;
    color: #2c5aa0;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.contact-card h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.contact-card p {
    color: #7f8c8d;
    margin-bottom: 0.8rem;
    line-height: 1.5;
    font-size: 0.95rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.contact-card strong {
    color: #2c3e50;
}

.contact-highlight {
    background: #e8f4fd;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    border-left: 4px solid #2c5aa0;
}

/* ================================
   FOOTER STYLES
   ================================ */
footer {
    background: #2c3e50;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: #ecf0f1;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-section p,
.footer-section li {
    color: #bdc3c7;
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 2rem;
    text-align: center;
    color: #bdc3c7;
}

/* ================================
   ANIMATIONS
   ================================ */
.animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.animate-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 1024px) {
    .cta-buttons {
        justify-content: center;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .cta-buttons {
        gap: 1.2rem;
    }
    
    .btn {
        padding: 16px 28px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .header-stats {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .cta-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
        padding: 16px 30px;
        font-size: 1rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-center {
        flex-direction: column;
        gap: 1.5rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    nav a {
        font-size: 0.9rem;
    }

    .scroll-card {
        min-width: 300px;
        max-width: 300px;
        min-height: 450px;
    }

    .nav-arrow {
        display: none;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 14px 25px;
        font-size: 0.95rem;
        min-height: 52px;
    }
    
    .btn span {
        font-size: 1.1rem;
    }
    
    .btn-icon {
        width: 18px;
        height: 18px;
    }
}

/* ================================
   TEMPLATE SYSTEM STYLES
   ================================ */
#header-placeholder,
#footer-placeholder {
    min-height: 60px;
}

#header-placeholder.loading,
#footer-placeholder.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.error {
    color: #e74c3c;
    padding: 1rem;
    text-align: center;
    background-color: #fdf2f2;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    margin: 1rem 0;
}

/* Print styles */
@media print {
    header,
    footer {
        position: static !important;
    }
    
    #header-placeholder,
    #footer-placeholder {
        display: none;
    }
}

/* Updated Header Stats */
.header-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* New Event-Specific Styles */
.event-title {
    margin-bottom: 1rem;
}

.event-details {
    margin: 1rem 0;
    line-height: 1.6;
}

.event-details strong {
    color: #ffffff;
    display: block;
    margin-bottom: 0.5rem;
}

.event-location {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.event-time {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 1rem;
}

/* Updated Button Styles for Events */
.event-btn {
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    line-height: 1.4;
}

.event-btn-primary {
    background: #673F98;
    color: white;
    box-shadow: 0 4px 15px rgba(103, 63, 152, 0.3);
}

.event-btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #673F98;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.event-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.event-btn-primary:hover {
    background: #5a356b;
}

.event-btn-secondary:hover {
    background: rgba(255, 255, 255, 1);
    color: #5a356b;
}

/* Enhanced Mobile Responsive Styles */
@media (max-width: 768px) {
    .header-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }

    .stat-item {
        padding: 1.5rem 1rem;
        min-height: auto;
    }

    .event-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    .event-details {
        font-size: 0.9rem;
    }

    .event-location {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .header-stats {
        gap: 1rem;
    }

    .stat-item {
        padding: 1.25rem 0.75rem;
    }

    .event-btn {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .event-details {
        font-size: 0.85rem;
        margin: 0.75rem 0;
    }

    .event-location {
        font-size: 0.8rem;
    }
}

/* Clickable heading without underline - centered */
.clickable-heading {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    transition: color 0.3s ease;
    width: fit-content;
    margin: 0 auto; /* Centers the inline-block element */
}

/* If you need to center within a parent container */
.clickable-heading-container {
    text-align: center; /* Centers the clickable-heading */
}

.clickable-heading:hover {
    color: #2c5aa0;
    cursor: pointer;
}

.clickable-heading:visited {
    color: inherit;
}

.clickable-heading h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
    transition: color 0.3s ease;
    display: inline;
    text-align: center;
}

.clickable-heading:hover h4 {
    color: #2c5aa0;
}

/* Subtle hover underline effect - only under text */
.subtle-hover {
    position: relative;
}

.subtle-hover::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #2c5aa0;
    transition: width 0.3s ease;
}

.subtle-hover:hover::after {
    width: 100%;
}
