/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent horizontal scrolling */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #f5f5f5;
    background-color: #0f0f23;
}

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

/* Mobile/Desktop thumbnail controls */
.mobile-thumbnail {
    display: none;
}

.desktop-thumbnail {
    display: block;
}

/* Header */
.header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
    margin: -0.5rem;
    order: 2;
    flex: 1;
    justify-content: center;
}

.header-brand:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.05);
}

.header-brand:focus {
    outline: 2px solid #42a5f5;
    outline-offset: 2px;
}

.header-brand:visited {
    color: inherit;
}

.header-brand .site-title {
    color: white;
    text-decoration: none;
    margin: 0;
}

.header-brand:hover .site-title,
.header-brand:focus .site-title,
.header-brand:active .site-title,
.header-brand:visited .site-title {
    color: white;
    text-decoration: none;
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Header Follow Us Section */
.header-followus-section {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 1rem;
    order: 3;
}

/* Breadcrumb Navigation */
.breadcrumb {
    background: rgba(26, 26, 46, 0.6);
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 10;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.breadcrumb-item:hover {
    color: #42a5f5;
    background: rgba(66, 165, 245, 0.1);
}

.breadcrumb-item.current {
    color: white;
    font-weight: 500;
    cursor: default;
}

.breadcrumb-item.current:hover {
    background: none;
    color: white;
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0.25rem;
    font-size: 0.8rem;
    user-select: none;
}

.breadcrumb-icon {
    width: 14px;
    height: 14px;
    margin-right: 0.4rem;
    opacity: 0.8;
}

/* Mobile breadcrumb adjustments */
@media (max-width: 768px) {
    .breadcrumb {
        padding: 0.6rem 0;
    }
    
    .breadcrumb-nav {
        font-size: 0.85rem;
        gap: 0.3rem;
    }
    
    .breadcrumb-item {
        padding: 0.2rem 0.4rem;
    }
    
    .breadcrumb-icon {
        width: 12px;
        height: 12px;
        margin-right: 0.3rem;
    }
    
    .breadcrumb-separator {
        margin: 0 0.15rem;
    }
}

.header-followus-label {
    font-size: 0.9rem;
    color: white;
    font-weight: 500;
    margin-right: 0.5rem;
    letter-spacing: 0.02em;
}

.header-followus-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    transition: transform 0.2s;
    vertical-align: middle;
}

.header-followus-icon img, .header-followus-icon svg {
    width: 20px;
    height: 20px;
    display: block;
    object-fit: contain;
    margin: 0;
    padding: 0;
}

/* Only apply filter to X icon for white color in header */
.header-followus-icon[aria-label="X (Twitter)"] img {
    filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgba(0,0,0,0.12));
}

.header-followus-icon:hover {
    transform: scale(1.1) translateY(-1px);
}

@media (max-width: 768px) {
    .header-followus-label {
        display: none;
    }
    
    .header-followus-section {
        gap: 0.8rem;
    }
    
    .header-followus-icon {
        width: 24px;
        height: 24px;
    }
    
    .header-followus-icon img, .header-followus-icon svg {
        width: 18px;
        height: 18px;
    }
}

/* Navigation */
.header-nav {
    display: flex;
    align-items: center;
    margin-right: auto;
    margin-left: 0;
    position: relative;
    order: 1;
}

/* Hamburger Menu Button */
.hamburger-menu {
    display: flex;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    gap: 5px;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1002;
    position: relative;
}

.hamburger-menu:hover {
    transform: scale(1.05);
}

.hamburger-menu:hover .hamburger-line {
    background: linear-gradient(135deg, #ffffff, #e3f2fd);
    filter: brightness(1.4);
    box-shadow: 0 1px 6px rgba(255, 255, 255, 0.4), 0 0 8px rgba(255, 255, 255, 0.2);
}

.hamburger-menu:active {
    transform: scale(0.95);
}



.hamburger-line {
    width: 25px;
    height: 3px;
    background: linear-gradient(135deg, #ffffff, #e3f2fd);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
    background: linear-gradient(135deg, #42a5f5, #1976d2);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
    background: linear-gradient(135deg, #42a5f5, #1976d2);
}

/* Navigation Drawer */
.nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1001;
    visibility: hidden;
    transition: visibility 0s linear 0.3s;
}

.nav-drawer.open {
    visibility: visible;
    transition: visibility 0s linear 0s;
}

.nav-drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-drawer.open .nav-drawer-overlay {
    opacity: 1;
}

.nav-drawer-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 320px;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(26, 26, 46, 0.98) 0%, 
        rgba(20, 20, 35, 0.98) 100%);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        4px 0 30px rgba(0, 0, 0, 0.4),
        inset -1px 0 0 rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.nav-drawer.open .nav-drawer-content {
    transform: translateX(0);
}

/* Navigation Header */
.nav-drawer-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1;
}

.nav-drawer-header h2 {
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    background: linear-gradient(135deg, #ffffff, #42a5f5);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(66, 165, 245, 0.3);
}

/* Navigation Menu */
.nav-drawer-menu {
    list-style: none;
    margin: 0;
    padding: 1.5rem 0;
}

.nav-drawer-menu li {
    margin: 0;
}

.nav-drawer-menu a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    padding: 1.2rem 2rem;
    display: block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-size: 1.1rem;
    border-left: 4px solid transparent;
    overflow: hidden;
}

.nav-drawer-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(66, 165, 245, 0.1) 50%, 
        transparent 100%);
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-drawer-menu a:hover::before {
    left: 100%;
}

.nav-drawer-menu a:hover {
    background: rgba(66, 165, 245, 0.15);
    color: #42a5f5;
    border-left-color: rgba(66, 165, 245, 0.5);
    transform: translateX(12px);
    box-shadow: inset 0 0 20px rgba(66, 165, 245, 0.1);
}

.nav-drawer-menu a.active {
    background: linear-gradient(90deg, 
        rgba(66, 165, 245, 0.2) 0%, 
        rgba(66, 165, 245, 0.1) 100%);
    color: #42a5f5;
    border-left-color: #42a5f5;
    transform: translateX(12px);
    box-shadow: 
        inset 0 0 20px rgba(66, 165, 245, 0.15),
        0 2px 10px rgba(66, 165, 245, 0.2);
}

.nav-drawer-menu a.active::after {
    content: '';
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #42a5f5;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(66, 165, 245, 0.6);
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
    .header-content {
        position: relative;
        flex-wrap: nowrap;
        align-items: center;
    }
    
    .header-nav {
        margin-left: 0.5rem;
        flex-shrink: 0;
    }
    
    .header-brand {
        flex: 1;
        min-width: 0;
        justify-content: center;
        padding: 0.25rem;
    }
    
    .site-title {
        font-size: 1rem;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    
    .header-followus-section {
        margin-right: 0.5rem;
        flex-shrink: 0;
    }
    
    .nav-drawer-content {
        width: 290px;
    }
    
    .nav-drawer-header {
        padding: 1.5rem 1.5rem 1rem;
        justify-content: flex-end;
    }
    
    .nav-drawer-header h2 {
        font-size: 1.2rem;
        text-align: right;
    }
    
    .nav-drawer-menu a {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        gap: 0.5rem;
    }
    
    .header-nav {
        margin-left: 0.25rem;
    }
    
    .header-followus-section {
        margin-right: 0.25rem;
    }
    
    .site-title {
        font-size: 0.9rem;
    }
    
    .logo {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 375px) {
    .site-title {
        font-size: 0.8rem;
    }
    
    .header-brand {
        gap: 0.5rem;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
    color: white;
    position: relative;
    min-height: 70vh; /* Back to original size */
    display: flex;
    align-items: center;
    padding: 5rem 0; /* Back to normal padding */
}

/* Hero section links styling for better readability */
.hero a {
    color: #42a5f5; /* Light blue that contrasts well with dark background */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.hero a:hover {
    color: #e94560; /* Pink highlight on hover */
    text-decoration: none;
}

.hero a:visited {
    color: #81c784; /* Light green for visited links */
}

/* Alternative: Links with background highlight for extra visibility */
.hero a.highlight-link {
    background: rgba(66, 165, 245, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(66, 165, 245, 0.3);
}

.hero a.highlight-link:hover {
    background: rgba(233, 69, 96, 0.2);
    border-color: rgba(233, 69, 96, 0.3);
}

.hero-content {
    display: block;
    width: 100%;
    text-align: left;
}

.hero-text {
    width: 100%;
}

.hero-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    opacity: 1;
    transition: opacity 1.2s cubic-bezier(0.4,0,0.2,1);
}

.hero-title.fade-in {
    opacity: 1;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Mobile responsive styles for hero section */
@media (max-width: 768px) {
    .hero {
        min-height: 60vh;
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
        line-height: 1.4;
        padding: 0 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 50vh;
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.6rem;
        margin-bottom: 1rem;
        line-height: 1.5;
        padding: 0 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.7;
    }
}

@media (max-width: 375px) {
    .hero-title {
        font-size: 1.4rem;
        line-height: 1.6;
        padding: 0 1rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.8;
        padding: 0 0.5rem;
    }
}

/* Stats Section - Single Prominent Counter */
.stats {
    background: #1a1a2e;
    padding: 4rem 0;
    border-bottom: 1px solid #2a2a4e;
}

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

.single-counter {
    text-align: center;
    background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
    border-radius: 2rem;
    padding: 3rem 4rem;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(66, 165, 245, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    min-width: 300px;
}

.single-counter::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(66, 165, 245, 0.1), transparent);
    animation: shimmer 3s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.counter-number {
    font-size: 4.5rem;
    font-weight: 800;
    color: #42a5f5;
    margin-bottom: 0.5rem;
    text-shadow: 
        0 0 20px rgba(66, 165, 245, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.3);
    animation: pulse 2s ease-in-out infinite alternate;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 2;
}

/* Additional counter animation states */
.counter-number.counting {
    animation: counting 0.1s ease-in-out infinite alternate;
}

@keyframes counting {
    0% { 
        transform: scale(1.02);
        color: #60a5fa;
    }
    100% { 
        transform: scale(1.05);
        color: #42a5f5;
    }
}

.counter-number.count-complete {
    animation: celebrate 0.6s ease-out;
}

@keyframes celebrate {
    0% { 
        transform: scale(1.05);
        color: #42a5f5;
    }
    50% { 
        transform: scale(1.15);
        color: #22d3ee;
        text-shadow: 
            0 0 40px rgba(34, 211, 238, 0.8),
            0 0 80px rgba(34, 211, 238, 0.4);
    }
    100% { 
        transform: scale(1.05);
        color: #42a5f5;
        text-shadow: 
            0 0 20px rgba(66, 165, 245, 0.5),
            0 2px 4px rgba(0, 0, 0, 0.3);
    }
}

@keyframes pulse {
    0% { 
        transform: scale(1);
        text-shadow: 
            0 0 20px rgba(66, 165, 245, 0.5),
            0 2px 4px rgba(0, 0, 0, 0.3);
    }
    100% { 
        transform: scale(1.05);
        text-shadow: 
            0 0 30px rgba(66, 165, 245, 0.8),
            0 0 50px rgba(66, 165, 245, 0.3),
            0 2px 4px rgba(0, 0, 0, 0.3);
    }
}

.counter-label {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    z-index: 2;
}

.counter-description {
    font-size: 1rem;
    color: #b0bfcf;
    font-style: italic;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

/* Mobile responsive styles for single counter */
@media (max-width: 768px) {
    .single-counter {
        padding: 2.5rem 2rem;
        min-width: 280px;
        margin: 0 1rem;
    }
    
    .counter-number {
        font-size: 3.5rem;
    }
    
    .counter-label {
        font-size: 1.2rem;
    }
    
    .counter-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .single-counter {
        padding: 2rem 1.5rem;
        min-width: 250px;
        margin: 0 0.5rem;
    }
    
    .counter-number {
        font-size: 3rem;
    }
    
    .counter-label {
        font-size: 1.1rem;
    }
}

/* Petition Content */
.petition-content {
    background: #1a1a2e;
    padding: 4rem 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.petition-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 600;
}

.petition-text p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: white;
    line-height: 1.7;
}

.petition-points {
    list-style: none;
    margin: 2rem 0;
}

.petition-points li {
    position: relative;
    padding: 0.75rem 0 0.75rem 2rem;
    font-size: 1.125rem;
    color: white;
}

.petition-points li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #009639;
    font-weight: bold;
    font-size: 1.25rem;
}

.content-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 
        0 0 20px rgba(76, 175, 80, 0.4),
        0 0 40px rgba(76, 175, 80, 0.2),
        0 0 60px rgba(76, 175, 80, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-image:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 0 30px rgba(129, 199, 132, 0.6),
        0 0 60px rgba(129, 199, 132, 0.3),
        0 0 90px rgba(129, 199, 132, 0.15);
}

/* Clickable image styling */
.petition-image a {
    display: inline-block;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.petition-image a:hover .content-image {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 0 40px rgba(102, 187, 106, 0.7),
        0 0 80px rgba(102, 187, 106, 0.4),
        0 0 120px rgba(102, 187, 106, 0.2);
}

/* Add a subtle pointer cursor hint */
.content-image {
    cursor: pointer;
}

/* Mobile touch glow effects for letter thumbnail */
.content-image.touch-glow {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 0 40px rgba(102, 187, 106, 0.7),
        0 0 80px rgba(102, 187, 106, 0.4),
        0 0 120px rgba(102, 187, 106, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Enhanced touch feedback for mobile */
@media (max-width: 768px) {
    .content-image {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        user-select: none;
        -webkit-user-select: none;
        -webkit-touch-callout: none;
    }
    
    /* Touch active state */
    .content-image:active {
        transform: translateY(-3px) scale(1.01);
        box-shadow: 
            0 0 25px rgba(76, 175, 80, 0.6),
            0 0 50px rgba(76, 175, 80, 0.3),
            0 0 75px rgba(76, 175, 80, 0.15);
    }
    
    /* Mobile touch glow - enhanced for mobile visibility */
    .content-image.touch-glow {
        transform: translateY(-10px) scale(1.04);
        box-shadow: 
            0 0 60px rgba(102, 187, 106, 1),
            0 0 120px rgba(102, 187, 106, 0.7),
            0 0 180px rgba(102, 187, 106, 0.4);
        transition: transform 0.15s ease, box-shadow 0.15s ease;
    }
    
    /* Enhanced mobile thumbnail glow for mobile thumbnails specifically */
    .mobile-thumbnail .content-image.touch-glow {
        transform: translateY(-12px) scale(1.06);
        box-shadow: 
            0 0 80px rgba(102, 187, 106, 1),
            0 0 160px rgba(102, 187, 106, 0.8),
            0 0 240px rgba(102, 187, 106, 0.5);
    }
}

/* Sign Petition Section */
.sign-petition {
    background: #16213e;
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: white;
    font-weight: 600;
}

.sign-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.sign-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sign-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: block;
}

.sign-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 600;
}

.sign-card p {
    color: #b0bfcf;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(26, 26, 46, 0.6);
    background: linear-gradient(135deg, #22225a 0%, #1a2454 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, #0f3460 0%, #e94560 100%);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(233, 69, 96, 0.5);
    background: linear-gradient(135deg, #134080 0%, #ff4d75 100%);
}

/* New non-Cisconian button style */
.btn-non-cisco {
    background: linear-gradient(135deg, #283593 0%, #42a5f5 100%);
    color: #fff;
    border: none;
}

.btn-non-cisco:hover {
    background: linear-gradient(135deg, #42a5f5 0%, #283593 100%);
    color: #fff;
    box-shadow: 0 10px 20px rgba(66, 165, 245, 0.5);
}

/* Large Button Style */
.btn-large {
    width: 100%;
    height: 100%;
    font-size: 2rem;
    padding: 2.5rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    border-radius: 16px;
    text-align: center;
    line-height: 1.3;
}

/* Sign Card Adjustments for Large Button */
.sign-card {
    padding: 0;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    height: 220px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

@media (max-width: 768px) {
    .btn-large {
        font-size: 1.3rem;
        padding: 2rem 0.5rem;
    }
    .sign-card {
        height: 160px;
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    }
    .sign-card:hover {
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
    }
    
    /* Mobile-specific button fixes to eliminate white shadows */
    .btn-secondary {
        border: none !important;
        box-shadow: none !important;
        background: linear-gradient(135deg, #0f3460 0%, #e94560 100%) !important;
    }
    
    .btn-secondary:hover {
        box-shadow: 0 10px 20px rgba(233, 69, 96, 0.5) !important;
        border: none !important;
        background: linear-gradient(135deg, #134080 0%, #ff4d75 100%) !important;
    }
    
    .btn-secondary:active {
        box-shadow: 0 5px 10px rgba(233, 69, 96, 0.3) !important;
        border: none !important;
    }
}

/* Footer */
.footer {
    background: #1a1a2e;
    color: white;
    padding: 2rem 0;
}

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

/* Enhanced Signatories Section Styling */
#signatory-list {
  background: #16213e;
  border-radius: 1.2em;
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.5), 0 1.5px 4px 0 rgba(0,0,0,0.3);
  margin: 2em auto 3em auto;
  padding: 2em 1.5em 2em 1.5em;
  max-width: 700px;
}
#signatory-list h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 2em;
  margin-top: 2em;
  padding: 0 1.5em;
  letter-spacing: 0.02em;
  text-align: center;
}
.signatory-subtitle {
  color: #b0bfcf;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5em;
  text-align: center;
  padding: 0 1em;
}
.signatory-subtitle a {
  color: #42a5f5;
  text-decoration: none;
  transition: color 0.3s ease;
}
.signatory-subtitle a:hover {
  color: #60a5fa;
  text-decoration: underline;
}
ol.signatories {
  list-style: none;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 0.7em;
  background: #1a1a2e;
  box-shadow: 0 1px 4px 0 rgba(0,0,0,0.3);
}
ol.signatories li {
  background: rgba(22, 33, 62, 0.3);
  border-bottom: none;
  border-radius: 0;
  margin-bottom: 0;
  margin-left: -1.5em;
  margin-right: -1.5em;
  padding: 0.75em 2.3em 0.75em 2.3em;
  font-size: 1.1em;
  color: #c9d1d9;
  box-shadow: none;
  transition: all 0.3s ease;
  word-break: break-word;
  line-height: 1.6;
  cursor: pointer;
}
ol.signatories li:hover {
  background: #16213e !important;
  margin-left: -1.5em;
  margin-right: -1.5em;
  color: #ffffff;
  transform: translateX(3px);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
ol.signatories li em {
  color: #42a5f5;
  font-style: normal;
  font-weight: 500;
  transition: all 0.3s ease;
}
ol.signatories li:hover em {
  color: #60a5fa;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(96, 165, 250, 0.4);
}
.signatory-comment {
  color: #8b949e;
  font-size: 1.05em;
  margin-left: 0.5em;
  transition: all 0.3s ease;
}
ol.signatories li:hover .signatory-comment {
  color: #b0bfcf;
  transform: translateX(2px);
}
@media (max-width: 600px) {
  #signatory-list {
    padding: 1em 0.5em;
  }
  ol.signatories li {
    font-size: 0.93em;
    margin-left: -0.5em;
    margin-right: -0.5em;
    padding: 0.28em 1em;
  }
}

/* Follow Us Section */
.followus-section {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    gap: 1.2rem;
}
.followus-label {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 500;
    margin-right: 0.7rem;
    letter-spacing: 0.02em;
}
.followus-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    transition: transform 0.2s;
    /* Prevent extra space for inline-block SVGs */
    vertical-align: middle;
}
.followus-icon img, .followus-icon svg {
    width: 24px;
    height: 24px;
    display: block;
    object-fit: contain;
    margin: 0;
    padding: 0;
}
/* Only apply filter to X icon for white color */
.followus-icon[aria-label="X (Twitter)"] img {
    filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgba(0,0,0,0.12));
}
.followus-icon:hover {
    transform: scale(1.12) translateY(-2px);
}

/* Mobile portrait mode styles */
@media (max-width: 768px) and (orientation: portrait) {
    /* Fix horizontal scrolling */
    .container {
        padding: 0 15px;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    /* Make content grid single column on mobile */
    .content-grid {
        display: block;
        width: 100%;
        max-width: 100%;
    }
    
    /* Hide desktop thumbnail, show mobile thumbnail */
    .desktop-thumbnail {
        display: none;
    }
    
    .mobile-thumbnail {
        display: block;
        margin: 1.5rem 0;
        text-align: center;
        width: 100%;
        max-width: 100%;
    }
    
    /* Make mobile PDF thumbnail larger and not squished */
    .mobile-thumbnail .content-image {
        width: 100%;
        max-width: 280px;
        height: auto;
        max-height: none;
        object-fit: contain;
        margin: 0 auto;
        display: block;
    }
    
    /* Ensure petition text doesn't overflow */
    .petition-text {
        width: 100%;
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
    
    .petition-text h2 {
        font-size: 2rem;
        line-height: 1.2;
        word-wrap: break-word;
    }
    
    #signatory-list h2 {
        font-size: 2.5rem;
        text-align: center;
        margin-top: 2em;
        margin-bottom: 2em;
        padding: 0 1.5em;
    }
    
    .petition-text p {
        font-size: 1rem;
        word-wrap: break-word;
    }
    
    .petition-points {
        width: 100%;
        max-width: 100%;
    }
    
    .petition-points li {
        font-size: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Fix stats section overflow */
    .stat-math {
        width: 100%;
        max-width: calc(100vw - 30px);
        overflow-x: hidden;
    }
    
    .stat-row {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Fix signatory list overflow */
    #signatory-list {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    ol.signatories {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    ol.signatories li {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
    
    /* Header adjustments to prevent overflow */
    .header-content {
        flex-wrap: nowrap;
        gap: 0.25rem;
        max-width: 100%;
    }
    
    .site-title {
        font-size: 0.85rem;
        word-wrap: break-word;
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Sign petition cards stack properly */
    .sign-options {
        display: block;
        width: 100%;
    }
    
    .sign-card {
        margin-bottom: 1.5rem;
        width: 100%;
        max-width: 100%;
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    }
    
    /* Additional mobile button fixes for portrait mode */
    .btn-secondary {
        border: none !important;
        box-shadow: none !important;
        outline: none !important;
        background: linear-gradient(135deg, #0f3460 0%, #e94560 100%) !important;
    }
    
    .btn-secondary:hover,
    .btn-secondary:focus,
    .btn-secondary:active {
        box-shadow: 0 10px 20px rgba(233, 69, 96, 0.5) !important;
        border: none !important;
        outline: none !important;
        background: linear-gradient(135deg, #134080 0%, #ff4d75 100%) !important;
    }
}

/* Mobile frame ordering - cisconian above non-cisconian */
@media (max-width: 768px) and (orientation: portrait) {
    .cisconian-frame, .cisconian-section {
        order: 1;
        margin-bottom: 1.5rem;
    }
    
    .non-cisconian-frame, .non-cisconian-section {
        order: 2;
        margin-top: 1.5rem;
    }
    
    /* If frames are within a flex container */
    .frames-container, .signatures-container {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Ensure any iframe or embedded content doesn't overflow */
    iframe, embed, object {
        max-width: 100% !important;
        width: 100% !important;
        overflow-x: hidden;
    }
}

/* General mobile styles for all orientations */
@media (max-width: 768px) {
    /* Ensure all text elements don't overflow */
    h1, h2, h3, h4, h5, h6, p, li, span, div {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
    
    /* Prevent images from overflowing */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Fix any potential flex or grid overflows */
    .header-followus-section {
        flex-shrink: 0;
        min-width: 0;
    }
}

/* Cisconian card ordering for mobile portrait mode */
@media (max-width: 768px) and (orientation: portrait) {
    .sign-options {
        display: flex;
        flex-direction: column;
    }
    
    .cisconian-card {
        order: 1;
        margin-bottom: 1.5rem;
    }
    
    .non-cisconian-card {
        order: 2;
    }
}

/* Desktop keeps original side-by-side layout */
@media (min-width: 769px) {
    .sign-options {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* Mobile portrait mode - add space between heading and thumbnail */
@media (max-width: 768px) and (orientation: portrait) {
    .petition-text h2 {
        margin-bottom: 2.5rem; /* Increased from default 1.5rem */
    }
    
    .mobile-thumbnail {
        margin-top: 1rem;
        margin-bottom: 2rem; /* Increased bottom margin too */
    }
    
    /* Ensure glow doesn't interfere with heading */
    .mobile-thumbnail .content-image {
        margin-top: 0.5rem; /* Additional top spacing for the image itself */
    }
}

/* Floating Action Button */
.floating-action-btn {
  position: fixed;
  left: 50%;
  transform: translateX(-50%); /* Always center, even when :active */
  bottom: 7vw; /* lowered a bit from previous 14vw */
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2em 2.8em;
  border: none;
  border-radius: 2.5em;
  background: rgba(30, 40, 60, 0.18); /* even more translucent */
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.13), 0 2px 12px 0 rgba(0,0,0,0.07);
  backdrop-filter: blur(18px) saturate(1.8);
  -webkit-backdrop-filter: blur(18px) saturate(1.8);
  border: 1.5px solid rgba(255,255,255,0.18);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s, opacity 0.3s;
  outline: none;
  opacity: 0.96;
  overflow: hidden;
}
.floating-action-btn:active {
  transform: translateX(-50%) scale(0.98); /* Keep centered on click */
}
.floating-action-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 2.5em;
  background: linear-gradient(120deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.08) 100%);
  pointer-events: none;
  z-index: 0;
}
.floating-action-btn span {
  position: relative;
  z-index: 1;
  pointer-events: none;
}
.floating-action-btn:hover, .floating-action-btn:focus {
  background: rgba(40, 60, 100, 0.38);
  box-shadow: 0 12px 48px 0 rgba(31, 38, 135, 0.22), 0 3px 16px 0 rgba(0,0,0,0.18);
  transform: translateX(-50%) scale(1.07); /* Keep centered on hover */
  opacity: 1;
}
@media (max-width: 600px) {
  .floating-action-btn {
    font-size: 1.08rem;
    padding: 1em 1.7em;
    left: 50%;
    transform: translateX(-50%);
    bottom: 14vw;
  }
  .floating-action-btn:active {
    transform: translateX(-50%) scale(0.98);
  }
}
.floating-action-btn.hide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}


