/* ===================================
   RESET & BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Black & White Theme */
    --primary-gold: #000000;
    --dark-navy: #FFFFFF;
    --deep-blue: #F5F5F5;
    --slate-blue: #E0E0E0;
    --light-gold: #333333;
    --white: #000000;
    --off-white: #1a1a1a;
    --gray: #666666;
    
    /* Typography */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Lora', serif;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: #FFFFFF;
    color: #1a1a1a;
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   BACKGROUND
   =================================== */
.geometry-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #FFFFFF;
    z-index: -1;
    pointer-events: none;
}

/* ===================================
   NAVIGATION
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 2px solid #000000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.compass-icon {
    font-size: 28px;
    color: #FFFFFF;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.lodge-name {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #000000;
}

.lodge-number {
    color: #000000;
}

.nav-menu {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    list-style: none;
    padding: 10px 0;
    min-width: 220px;
    border: 2px solid #000000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-link {
    display: block;
    font-family: var(--font-heading);
    font-size: 13px;
    letter-spacing: 1px;
    color: #333333;
    text-decoration: none;
    text-transform: uppercase;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.dropdown-link:hover {
    background: #F5F5F5;
    color: #000000;
    padding-left: 25px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 14px;
    letter-spacing: 1px;
    color: #333333;
    text-decoration: none;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #000000;
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #000000;
}

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

/* Login Link Styling */
.login-link {
    color: #333333 !important;
    transition: color 0.3s ease;
    cursor: pointer;
    pointer-events: auto;
}

.login-link i {
    margin-right: 5px;
    pointer-events: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: #000000;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: 
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url('images/hero-background.jpg') center center / cover no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.02) 2px, rgba(0, 0, 0, 0.02) 4px);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.masonic-emblem {
    margin: 80px auto 40px;
    width: 200px;
    height: 200px;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.emblem-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.3));
}

.emblem-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.2));
}

.triangle {
    fill: none;
    stroke: #000000;
    stroke-width: 2;
    animation: pulse 3s ease-in-out infinite;
}

.circle {
    fill: none;
    stroke: #000000;
    stroke-width: 2;
}

.emblem-g {
    font-family: var(--font-heading);
    font-size: 60px;
    font-weight: 700;
    fill: #000000;
    text-anchor: middle;
    dominant-baseline: middle;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 6px;
    color: #FFFFFF;
    margin-bottom: 10px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 20px;
    color: #FFFFFF;
    margin-bottom: 15px;
    letter-spacing: 4px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-motto {
    margin-bottom: 30px;
}

.motto-line {
    font-size: 18px;
    font-style: italic;
    color: #FFFFFF;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    letter-spacing: 1px;
}

.cta-button {
    display: inline-block;
    padding: 18px 50px;
    background: #000000;
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid #000000;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background: #333333;
}

.cta-button:hover::before {
    left: 100%;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #000000;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, #000000, transparent);
}

/* ===================================
   SECTION HEADERS
   =================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-icon {
    font-size: 40px;
    color: #000000;
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    color: #000000;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.title-underline {
    width: 100px;
    height: 3px;
    background: #000000;
    margin: 0 auto;
}

/* ===================================
   MASTER MESSAGE SECTION
   =================================== */
.master-message {
    padding: var(--section-padding);
    background: linear-gradient(180deg, #FFFFFF 0%, #F5F5F5 100%);
}

.message-card {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #000000;
    border-radius: 10px;
    padding: 60px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.pillar-left,
.pillar-right {
    position: absolute;
    top: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(to bottom, #000000, transparent, #000000);
    opacity: 0.2;
}

.pillar-left { left: 20px; }
.pillar-right { right: 20px; }

.message-text {
    font-size: 18px;
    line-height: 1.9;
}

.greeting {
    font-family: var(--font-heading);
    font-size: 24px;
    color: #000000;
    margin-bottom: 20px;
}

.message-text p {
    margin-bottom: 20px;
}

.message-text strong {
    color: #000000;
    font-weight: 600;
}

.signature {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #000000;
    text-align: right;
}

.master-name {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 5px;
}

.master-title,
.lodge-name-sig {
    font-size: 14px;
    color: #333333;
}

/* ===================================
   UNIVERSAL DECLARATION SECTION
   =================================== */
.universal-declaration {
    padding: var(--section-padding);
    background: #F5F5F5;
}

.declaration-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
}

.declaration-preamble {
    font-size: 12px;
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.declaration-support {
    font-size: 14px;
    color: #666666;
    font-style: italic;
    margin-bottom: 30px;
    line-height: 1.8;
}

.declaration-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.declaration-subtitle {
    font-size: 16px;
    font-style: italic;
    color: #666666;
    margin-bottom: 0;
}

.declaration-slider {
    position: relative;
    max-width: 1000px;
    margin: 50px auto 0;
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 600px;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
}

.slide.active {
    display: block;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #FFFFFF;
}

.slide-content {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    overflow: hidden;
}

.slide-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 30px;
    color: #FFFFFF;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.slide-content:hover .slide-overlay {
    transform: translateY(-10px);
}

.slide-overlay h3 {
    font-family: var(--font-heading);
    font-size: 28px;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.slide-overlay p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.slide-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    padding: 40px;
}

.placeholder-logo {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 30px;
    opacity: 0.9;
    filter: grayscale(100%);
}

.placeholder-text {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    color: #000000;
    text-align: center;
    letter-spacing: 2px;
}

.slide-file-preview {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    padding: 40px;
}

.slide-file-preview i {
    margin-bottom: 20px;
}

.slide-file-preview p {
    color: #000000;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.btn-view-more {
    display: inline-flex;
    align-items: center;
    padding: 12px 30px;
    background: #000000;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-view-more:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: #FFFFFF;
    text-decoration: none;
}

.btn-view-more i {
    font-size: 14px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #FFFFFF;
    border: none;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}

.slider-dots {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.05);
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #CCCCCC;
    margin: 0 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background: #000000;
    transform: scale(1.2);
}

/* ===================================
   THREE PILLARS SECTION (LEGACY - CAN BE REMOVED)
   =================================== */
.three-pillars {
    padding: var(--section-padding);
    background: #FFFFFF;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.pillar-card {
    text-align: center;
    padding: 50px 30px;
    background: rgba(245, 245, 245, 0.8);
    border: 1px solid #E0E0E0;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pillar-card:hover {
    transform: translateY(-10px);
    border-color: #000000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.pillar-card:hover::before {
    opacity: 1;
}

.pillar-card.highlight {
    background: rgba(0, 0, 0, 0.05);
    border-color: #000000;
}

.pillar-icon {
    font-size: 60px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.2));
}

.pillar-card h3 {
    font-family: var(--font-heading);
    font-size: 26px;
    color: #000000;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.pillar-card p {
    font-size: 16px;
    color: #1a1a1a;
    line-height: 1.8;
}

/* ===================================
   ACTIVITIES SECTION
   =================================== */
.activities {
    padding: var(--section-padding);
    background: linear-gradient(180deg, #FFFFFF 0%, #F5F5F5 50%, #FFFFFF 100%);
}

.activity-category {
    margin-bottom: 80px;
}

.category-title {
    font-family: var(--font-heading);
    font-size: 32px;
    color: #000000;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 2px solid #000000;
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-icon {
    font-size: 36px;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.2));
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.activity-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #E0E0E0;
    cursor: pointer;
}

.activity-card:hover {
    transform: translateY(-10px);
    border-color: #000000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.activity-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.activity-card:hover .activity-image {
    transform: scale(1.1);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: #E5E5E5;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder::before {
    content: '';
    width: 80px;
    height: 80px;
    background: #C0C0C0;
    border-radius: 8px;
    position: relative;
}

.image-placeholder::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background: #A0A0A0;
    border-radius: 50%;
    top: calc(50% - 25px);
    left: calc(50% - 20px);
}

/* Different background colors for different categories */
.civic-1 { background: #ECECEC; }
.civic-2 { background: #E8E8E8; }
.civic-3 { background: #E5E5E5; }
.civic-4 { background: #E0E0E0; }

.masonic-1 { background: #EDEDED; }
.masonic-2 { background: #E6E6E6; }
.masonic-3 { background: #EAEAEA; }
.masonic-4 { background: #E3E3E3; }

.fund-1 { background: #EFEFEF; }
.fund-2 { background: #EBEBEB; }
.fund-3 { background: #E7E7E7; }

.family-1 { background: #E9E9E9; }
.family-2 { background: #EEEEEE; }

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #000000;
    color: #FFFFFF;
    padding: 5px 15px;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
}

.card-content {
    padding: 25px;
}

.card-content h4 {
    font-family: var(--font-heading);
    font-size: 20px;
    color: #000000;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.card-content p {
    font-size: 15px;
    color: #1a1a1a;
    line-height: 1.7;
}

/* ===================================
   YOUTH SECTION
   =================================== */
.youth-section {
    margin-top: 60px;
}

.youth-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.youth-card {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #000000;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.youth-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.youth-emblem {
    width: 120px;
    height: 120px;
    margin: 0 auto 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    border: 3px solid #000000;
}

.youth-emblem.jobs {
    background: linear-gradient(135deg, #D0D0D0 0%, #A0A0A0 100%);
}

.youth-emblem.demolay {
    background: linear-gradient(135deg, #DADADA 0%, #AAAAAA 100%);
}

.youth-card h4 {
    font-family: var(--font-heading);
    font-size: 24px;
    color: #000000;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.youth-chapter {
    color: #000000;
    font-style: italic;
    margin-bottom: 15px;
}

.youth-card p {
    font-size: 15px;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.7;
}

.youth-link {
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.youth-link:hover {
    color: #333333;
    letter-spacing: 2px;
}

/* ===================================
   GRAND LODGE SECTION
   =================================== */
.grand-lodge {
    padding: 80px 0;
    background: linear-gradient(135deg, #F5F5F5, #E0E0E0);
    border-top: 3px solid #000000;
    border-bottom: 3px solid #000000;
}

.grand-lodge-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.grand-lodge-content h3 {
    font-family: var(--font-heading);
    font-size: 28px;
    color: #000000;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.grand-lodge-motto {
    font-size: 20px;
    font-style: italic;
    color: #333333;
    margin-bottom: 25px;
}

.grand-master {
    font-size: 16px;
    color: #000000;
    line-height: 1.8;
}

/* ===================================
   GRAND LODGE OFFICERS SECTION
   =================================== */
.grand-lodge-officers {
    padding: var(--section-padding);
    background: 
        linear-gradient(180deg, #FFFFFF 0%, #F5F5F5 100%);
    position: relative;
}

.officers-year {
    font-family: var(--font-heading);
    font-size: 18px;
    color: #000000;
    letter-spacing: 3px;
    margin-top: 10px;
    margin-bottom: 0;
}

.officers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
    margin-bottom: 60px;
}

.officer-card {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #D8D8D8;
    border-radius: 15px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.officer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.officer-card:hover {
    transform: translateY(-10px);
    border-color: #AAAAAA;
    border-width: 2px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.officer-card:hover::before {
    opacity: 1;
}

.officer-card.featured {
    grid-column: span 1;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05), rgba(255, 255, 255, 0.98));
    border-color: #AAAAAA;
    border-width: 2px;
}

.officer-photo {
    position: relative;
    margin-bottom: 25px;
}

.photo-frame {
    width: 300px;
    height: 300px;
    margin: 0 auto;
    position: relative;
    border: 2px solid #333333;
    border-radius: 15px;
    padding: 0;
    background: #FFFFFF;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.photo-frame::before {
    content: none;
}

.officer-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 13px;
    display: block;
}

.officer-image.default-img {
    object-fit: contain;
    padding: 30px;
    background: #FFFFFF;
}

.officer-jewel {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #FFFFFF;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 3px solid #FFFFFF;
}

.officer-info {
    position: relative;
    z-index: 1;
}

.officer-title {
    font-family: var(--font-heading);
    font-size: 14px;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: 600;
}

.officer-card.featured .officer-title {
    font-size: 16px;
}

.officer-name {
    font-family: var(--font-heading);
    font-size: 18px;
    color: #000000;
    margin-bottom: 8px;
    letter-spacing: 1px;
    font-weight: 600;
}

.officer-card.featured .officer-name {
    font-size: 20px;
}

.officer-nickname {
    font-style: italic;
    color: #333333;
    font-size: 16px;
    margin-bottom: 15px;
}

.officer-email {
    display: inline-block;
    width: 35px;
    height: 35px;
    background: rgba(0, 0, 0, 0.1);
    border: 2px solid #000000;
    border-radius: 50%;
    color: #000000;
    text-decoration: none;
    font-size: 18px;
    line-height: 31px;
    transition: all 0.3s ease;
}

.officer-email:hover {
    background: #000000;
    color: #FFFFFF;
    transform: scale(1.1);
}

/* ===================================
   CENTENNIAL BADGES
   =================================== */
.centennial-badges {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #000000;
}

.badge-left,
.badge-right {
    width: 150px;
    height: 150px;
}

.centennial-logo {
    width: 100%;
    height: 100%;
    border: 3px solid #000000;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.05) 0%, transparent 70%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 9px;
    color: #000000;
    text-align: center;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.logo-center {
    font-size: 50px;
    color: #000000;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.3));
}

.logo-ribbon {
    font-size: 30px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
}

.logo-years {
    font-family: var(--font-heading);
    font-size: 11px;
    color: #000000;
    font-weight: 600;
    margin-top: 10px;
    letter-spacing: 1px;
}

/* ===================================
   LOCATION & CONTACT SECTION
   =================================== */
.location-contact {
    padding: var(--section-padding);
    background: #FFFFFF;
}

.contact-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info-column {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.info-section {
    padding: 30px;
    background: #F5F5F5;
    border-radius: 10px;
}

.info-icon-header {
    font-size: 36px;
    color: #000000;
    margin-bottom: 15px;
}

.info-section h4 {
    font-family: var(--font-heading);
    font-size: 20px;
    color: #000000;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.info-title {
    font-size: 16px;
    color: #666666;
    font-style: italic;
    margin-bottom: 15px;
}

.info-details {
    color: #333333;
    line-height: 1.8;
}

.info-subtitle {
    font-size: 14px;
    color: #999999;
    margin-top: 20px;
    margin-bottom: 5px;
}

.info-name {
    font-family: var(--font-heading);
    color: #000000;
    font-weight: 600;
    margin-bottom: 5px;
}

.info-email a {
    color: #666666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-email a:hover {
    color: #000000;
    text-decoration: underline;
}

.contact-form-section {
    padding: 40px;
    background: #F5F5F5;
    border-radius: 10px;
}

.contact-form-section h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    color: #000000;
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-family: var(--font-heading);
    font-size: 14px;
    color: #333333;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #DDDDDD;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000000;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    padding: 15px 40px;
    background: #000000;
    color: #FFFFFF;
    border: none;
    border-radius: 5px;
    font-family: var(--font-heading);
    font-size: 14px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.submit-btn:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.location-map-full {
    margin-top: 60px;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.location-map-full iframe {
    display: block;
    width: 100%;
}

.map-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #E0E0E0, #F5F5F5);
    border: 2px solid #000000;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.map-marker {
    font-size: 80px;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.2));
}

.map-placeholder p {
    font-family: var(--font-heading);
    font-size: 18px;
    color: #000000;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: #F5F5F5;
    padding: 60px 0 30px;
    border-top: 3px solid #000000;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #FFFFFF;
}

.footer-logo h3 {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 40px;
}

.footer-links a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #CCCCCC;
}

.footer-motto {
    color: #FFFFFF;
    font-style: italic;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #E0E0E0;
    color: #FFFFFF;
    font-size: 14px;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 968px) {
    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .youth-grid {
        grid-template-columns: 1fr;
    }
    
    .officers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .centennial-badges {
        justify-content: space-around;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        padding: 40px 0;
        border-top: 2px solid #000000;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-dropdown {
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        width: 100%;
        border: none;
        border-top: 1px solid #E0E0E0;
        border-bottom: 1px solid #E0E0E0;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }
    
    .nav-dropdown.active .dropdown-menu {
        max-height: 300px;
        padding: 10px 0;
    }
    
    .dropdown-link {
        padding: 12px 20px;
        font-size: 12px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }
    
    .hero-title {
        font-size: 32px;
        letter-spacing: 4px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .message-card {
        padding: 40px 30px;
    }
    
    .pillar-left,
    .pillar-right {
        display: none;
    }
    
    .activity-grid {
        grid-template-columns: 1fr;
    }
    
    .officers-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .photo-frame {
        width: 260px;
        height: 260px;
    }
    
    .social-links {
        flex-direction: column;
    }
    
    .centennial-badges {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
    
    .badge-left,
    .badge-right {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .photo-frame {
        width: 220px;
        height: 220px;
        border-width: 2px;
    }
    
    .officer-card {
        padding: 25px 20px;
        border-width: 2px;
    }
    
    .officer-card.featured {
        border-width: 2px;
    }
    
    .lodge-name {
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 24px;
        letter-spacing: 2px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        letter-spacing: 2px;
    }
    
    .motto-line {
        font-size: 14px;
    }
    
    .cta-button {
        padding: 15px 35px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .message-card {
        padding: 30px 20px;
    }
    
    .message-text {
        font-size: 16px;
    }
    
    .category-title {
        font-size: 24px;
        flex-direction: column;
        text-align: center;
    }
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.activity-card,
.pillar-card,
.youth-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Stagger animation for cards */
.activity-card:nth-child(1) { animation-delay: 0.1s; }
.activity-card:nth-child(2) { animation-delay: 0.2s; }
.activity-card:nth-child(3) { animation-delay: 0.3s; }
.activity-card:nth-child(4) { animation-delay: 0.4s; }

/* ===== HISTORY PAGE STYLES ===== */

/* Page Hero Section */
.page-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)), url('images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 180px 0 120px;
    text-align: center;
    position: relative;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, #FFFFFF);
}

.page-title {
    font-family: var(--font-heading);
    font-size: 64px;
    color: #FFFFFF;
    margin-bottom: 20px;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

/* History Content Section */
.history-content {
    padding: 100px 0;
    background: linear-gradient(to bottom, #FFFFFF 0%, #F8F8F8 100%);
}

.history-text {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.history-text .section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 42px;
    position: relative;
    padding-bottom: 20px;
}

.history-text .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: #000000;
}

.history-paragraph {
    margin-bottom: 40px;
    padding: 40px;
    background: #FFFFFF;
    border-left: 6px solid #000000;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.history-paragraph::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 0;
    background: linear-gradient(to bottom, #000000, #666666);
    transition: height 0.3s ease;
}

.history-paragraph:hover {
    transform: translateX(10px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
}

.history-paragraph:hover::before {
    height: 100%;
}

.history-paragraph p {
    font-size: 18px;
    line-height: 2;
    color: #333333;
    text-align: justify;
    margin: 0;
    position: relative;
    z-index: 1;
}

.history-paragraph:first-of-type {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    border-left: 6px solid #FFFFFF;
    color: #FFFFFF;
}

.history-paragraph:first-of-type p {
    color: #FFFFFF;
    font-style: italic;
    font-size: 20px;
    font-weight: 500;
}

.history-timeline {
    margin: 80px 0;
    padding: 60px 40px;
    background: #FFFFFF;
    border-radius: 15px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
}

.history-timeline h3 {
    font-family: var(--font-heading);
    font-size: 36px;
    color: #000000;
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 20px;
}

.history-timeline h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #000000;
}

.timeline-item {
    padding: 40px;
    background: linear-gradient(135deg, #F8F8F8 0%, #FFFFFF 100%);
    border-radius: 12px;
    margin-bottom: 20px;
    position: relative;
    border: 2px solid #E0E0E0;
    transition: all 0.3s ease;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: #000000;
    border-radius: 50%;
    border: 4px solid #FFFFFF;
    box-shadow: 0 0 0 2px #000000;
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: #000000;
}

.timeline-date {
    font-family: var(--font-heading);
    font-size: 24px;
    color: #000000;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 2px;
    display: inline-block;
    padding: 8px 20px;
    background: #000000;
    color: #FFFFFF;
    border-radius: 5px;
}

.timeline-content p {
    font-size: 18px;
    line-height: 2;
    color: #333333;
}

.history-cta {
    margin-top: 80px;
    padding: 70px 50px;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.history-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.history-cta h3 {
    font-family: var(--font-heading);
    font-size: 38px;
    color: #FFFFFF;
    margin-bottom: 25px;
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.history-cta p {
    font-size: 20px;
    color: #DDDDDD;
    margin-bottom: 40px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.cta-button {
    display: inline-block;
    padding: 18px 50px;
    background: #FFFFFF;
    color: #000000;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 8px;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
}

.cta-button:hover {
    background: #F0F0F0;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.4);
}

/* Footer Styles */
.footer {
    background: #000000;
    color: #FFFFFF;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    width: 80px;
    margin-bottom: 15px;
}

.footer-logo p {
    font-size: 14px;
    color: #CCCCCC;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

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

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #CCCCCC;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #FFFFFF;
}

.footer-contact p {
    font-size: 14px;
    color: #CCCCCC;
    line-height: 1.8;
    margin-bottom: 10px;
}

.footer-contact i {
    margin-right: 10px;
    color: #FFFFFF;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333333;
}

.footer-bottom p {
    font-size: 14px;
    color: #FFFFFF;
}

/* Responsive */
@media (max-width: 968px) {
    .page-title {
        font-size: 48px;
        letter-spacing: 3px;
    }
    
    .page-hero {
        padding: 150px 0 100px;
    }
    
    .history-text .section-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 36px;
        letter-spacing: 2px;
    }
    
    .page-hero {
        padding: 120px 0 80px;
    }
    
    .history-content {
        padding: 60px 0;
    }
    
    .history-text {
        padding: 0 15px;
    }
    
    .history-text .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .history-paragraph {
        padding: 25px;
        margin-bottom: 30px;
    }
    
    .history-paragraph p,
    .history-paragraph:first-of-type p {
        font-size: 16px;
        line-height: 1.8;
    }
    
    .history-paragraph:hover {
        transform: translateX(5px);
    }
    
    .history-timeline {
        padding: 40px 20px;
        margin: 60px 0;
    }
    
    .history-timeline h3 {
        font-size: 28px;
    }
    
    .timeline-item {
        padding: 25px;
        padding-left: 35px;
    }
    
    .timeline-item::before {
        left: -8px;
        width: 16px;
        height: 16px;
    }
    
    .timeline-date {
        font-size: 18px;
        padding: 6px 15px;
    }
    
    .timeline-content p {
        font-size: 16px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .history-cta {
        padding: 40px 25px;
        margin-top: 60px;
    }
    
    .history-cta h3 {
        font-size: 26px;
        letter-spacing: 2px;
    }
    
    .history-cta p {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .cta-button {
        padding: 15px 35px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 28px;
    }
    
    .history-paragraph {
        padding: 20px;
    }
    
    .history-cta {
        padding: 30px 20px;
    }
    
    .history-cta h3 {
        font-size: 22px;
    }
}
