/* Custom CSS for NRA Support Website */

/* Root Variables */
:root {
    --primary-color: #1e3a8a;
    --secondary-color: #dc2626;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f8fafc;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Global Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Navigation Styles */
.navbar {
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.navbar-brand {
    text-decoration: none;
}

.office-info h6 {
    color: var(--primary-color) !important;
    font-weight: 600;
    display: block;
}

.office-info small {
    display: block !important;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin-bottom: 0.1rem;
    line-height: 1.2;
}

/* Ensure office info elements stack vertically */
.office-info {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Force all small elements in office-info to be block */
.office-info small {
    display: block !important;
    width: 100%;
    clear: both;
    float: none !important;
    margin-right: 0 !important;
}

/* Override any Bootstrap inline styling */
.office-info small.d-block {
    display: block !important;
}

/* Desktop and tablet responsive adjustments */
@media (min-width: 768px) {
    .office-info {
        min-width: 200px;
    }
    
    .office-info h6 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .office-info small {
        font-size: 0.8rem;
        margin-bottom: 0.1rem;
        line-height: 1.3;
    }
}

/* Language Toggle Styles */
.btn-group .btn {
    transition: all 0.3s ease;
    border-radius: 0.375rem !important;
}

.btn-group .btn.active {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

.btn-group .btn:not(.active) {
    background-color: transparent !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

.btn-group .btn:not(.active):hover {
    background-color: var(--primary-color) !important;
    color: white !important;
}

/* Language toggle form styling */
.btn-group form {
    display: inline-block;
    margin: 0;
}

.btn-group form button {
    margin: 0;
    border-radius: 0.375rem !important;
    margin-left: -1px;
}

.btn-group form:first-child button {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.btn-group form:last-child button {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    margin-left: 0;
}

/* Mobile Navigation Styles */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-collapse {
    margin-top: 1rem;
}

/* Responsive Navigation */
@media (max-width: 991.98px) {
    .navbar-brand {
        flex-direction: row;
        align-items: center;
    }
    
    .office-info {
        margin-left: 0.5rem;
    }
    
    .navbar-collapse {
        background: white;
        border-radius: 10px;
        padding: 1rem;
        margin-top: 0.5rem;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }
    
    .btn-group {
        width: 100%;
        justify-content: center;
    }
    
    .btn-group .btn {
        flex: 1;
        max-width: 120px;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 0.25rem 0;
        min-height: 70px;
    }
    
    .navbar .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .navbar-brand {
        flex-direction: row;
        align-items: center !important;
        max-width: calc(100% - 60px);
        margin-right: 0.5rem;
    }
    
    .navbar-brand img {
        height: 40px !important;
        margin-right: 0.5rem;
        flex-shrink: 0;
    }
    
    .office-info {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }
    
    .office-info h6 {
        font-size: 0.8rem;
        margin-bottom: 0.05rem;
        line-height: 1.1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .office-info small {
        font-size: 0.6rem;
        display: block !important;
        margin-bottom: 0.02rem;
        line-height: 1.0;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        clear: both;
    }
    
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 1rem;
    }
    
    .navbar-toggler-icon {
        width: 1.2em;
        height: 1.2em;
    }
    
    .btn-group .btn {
        font-size: 0.8rem;
        padding: 0.375rem 0.5rem;
    }
}

/* Extra small devices (below 400px) */
@media (max-width: 400px) {
    .navbar {
        padding: 0.2rem 0;
        min-height: 65px;
    }
    
    .navbar .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .navbar-brand {
        max-width: calc(100% - 50px);
    }
    
    .navbar-brand img {
        height: 35px !important;
        margin-right: 0.4rem;
    }
    
    .office-info h6 {
        font-size: 0.75rem;
    }
    
    .office-info small {
        font-size: 0.55rem;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        clear: both;
        display: block !important;
        margin-bottom: 0.01rem;
    }
    
    .navbar-toggler {
        padding: 0.2rem 0.4rem;
        font-size: 0.9rem;
    }
    
    .btn-group .btn {
        font-size: 0.7rem;
        padding: 0.3rem 0.4rem;
    }
    
    /* Make sure the brand area doesn't overflow */
    .navbar-brand {
        overflow: hidden;
    }
    
    .hero-section {
        padding-top: 90px !important;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3b82f6 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding-top: 140px !important;
}

.other-hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3b82f6 100%);
    min-height: 40vh;
    display: flex;
    align-items: center;
    padding-top: 140px !important;
}

.hero-section .btn {
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.hero-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    background-color: #f8f9fa;
    color: var(--primary-color);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3b82f6 100%);
}

/* Timer Section */
.timer-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3b82f6 100%);
    color: white;
}

/* Collected Amount Display within Timer Section */
.collected-amount-display {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.collected-amount-display .amount-display {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    margin: 1rem 0;
}

.collected-amount-display .currency {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-right: 0.5rem;
}

.collected-amount-display .amount {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.collected-amount-display .amount-description {
    font-size: 1rem;
    font-weight: 500;
}

/* Donation Actions */
.donation-actions {
    padding: 1rem;
}

.donation-icon {
    animation: pulse 2s infinite;
}

.donation-actions .btn {
    background: white;
    color: var(--primary-color);
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.donation-actions .btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Countdown Timer */
.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.time-unit {
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 1.5rem 1rem;
    border-radius: 15px;
    min-width: 100px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.time-unit:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.25);
}

.time-unit .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.time-unit .label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Collected Amount Section */
.collected-amount-section {
    background: white;
}

.amount-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.amount-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #28a745, var(--accent-color));
}

.amount-display {
    display: flex;
    align-items: baseline;
    margin: 1.5rem 0;
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-right: 0.5rem;
}

.amount {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.amount-description {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Progress Circle */
.progress-circle {
    position: relative;
    display: inline-block;
}

.progress-ring {
    position: relative;
}

.progress-ring-svg {
    transform: rotate(-90deg);
}

.progress-ring-circle {
    transition: stroke-dasharray 0.5s ease-in-out;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-percentage {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.progress-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Donation Section */
.donation-section {
    background: var(--bg-light);
}

.carousel-item img {
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
}

/* Donation section equal height columns */
.donation-section .row {
    align-items: stretch;
}

.donation-section .carousel {
    height: 100%;
}

.donation-section .carousel-inner {
    height: 100%;
}

.donation-section .carousel-item {
    height: 100%;
}

.donation-section .carousel-item img {
    height: 100%;
    object-fit: cover;
}

.card {
    border: none;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.qr-code-container {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.bank-details {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.account-info .row {
    border-bottom: 1px solid #e5e7eb;
    padding: 0.5rem 0;
}

.account-info .row:last-child {
    border-bottom: none;
}

/* Committee Members Section */
.committee-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.committee-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="committee-grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23e2e8f0" opacity="0.2"/><circle cx="75" cy="75" r="1" fill="%23e2e8f0" opacity="0.2"/><circle cx="50" cy="10" r="0.5" fill="%23e2e8f0" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="%23e2e8f0" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="%23e2e8f0" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23committee-grain)"/></svg>');
    opacity: 0.1;
}

.committee-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.committee-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #3b82f6, var(--accent-color));
}

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

.member-photo {
    position: relative;
    display: inline-block;
}

.member-photo::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, var(--primary-color), #3b82f6, var(--accent-color));
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.committee-card:hover .member-photo::before {
    opacity: 0.3;
}

.member-photo img {
    transition: all 0.3s ease;
    border: 4px solid white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.committee-card:hover .member-photo img {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.committee-card .card-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.committee-card h6 {
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.committee-card .card-text {
    line-height: 1.6;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.member-contact {
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.member-contact small {
    color: var(--text-light);
    font-weight: 500;
}

.member-contact i {
    color: var(--primary-color);
}

.mission-statement {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(30, 58, 138, 0.1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out;
}

.mission-statement::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #3b82f6, var(--accent-color));
}

.mission-statement h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mission-statement p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-dark);
    font-weight: 400;
}

/* Responsive adjustments for committee section */
@media (max-width: 768px) {
    .committee-card {
        margin-bottom: 2rem;
    }
    
    .member-photo img {
        width: 120px !important;
        height: 120px !important;
    }
    
    .committee-card .card-title {
        font-size: 1.2rem;
    }
    
    .committee-card .card-text {
        font-size: 0.9rem;
    }
    
    .mission-statement {
        padding: 2rem !important;
    }
    
    .mission-statement p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .member-photo img {
        width: 100px !important;
        height: 100px !important;
    }
    
    .committee-card .card-title {
        font-size: 1.1rem;
    }
    
    .committee-card h6 {
        font-size: 0.8rem;
    }
    
    .committee-card .card-text {
        font-size: 0.85rem;
    }
    
    .mission-statement {
        padding: 1.5rem !important;
    }
    
    .mission-statement h4 {
        font-size: 1.3rem;
    }
    
    .mission-statement p {
        font-size: 0.95rem;
    }
}

/* Namaste Section */
.namaste-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.namaste-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23e2e8f0" opacity="0.3"/><circle cx="75" cy="75" r="1" fill="%23e2e8f0" opacity="0.3"/><circle cx="50" cy="10" r="0.5" fill="%23e2e8f0" opacity="0.2"/><circle cx="10" cy="60" r="0.5" fill="%23e2e8f0" opacity="0.2"/><circle cx="90" cy="40" r="0.5" fill="%23e2e8f0" opacity="0.2"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.namaste-content {
    position: relative;
    z-index: 2;
}

.namaste-icon-container {
    position: relative;
    display: inline-block;
}

.namaste-icon {
    font-size: 8rem;
    color: var(--primary-color);
    animation: namasteFloat 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(30, 58, 138, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes namasteFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    50% { 
        transform: translateY(-20px) rotate(5deg); 
    }
}

@keyframes glowPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.6;
    }
}

.namaste-text h1 {
    font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease-out;
}

.namaste-text h2 {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.namaste-text p {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.message-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(30, 58, 138, 0.1);
    position: relative;
    overflow: hidden;
    animation: slideInUp 1s ease-out 0.6s both;
}

.message-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #3b82f6, var(--accent-color));
}

.impact-stats .stat-item {
    padding: 1rem;
    border-radius: 15px;
    background: var(--bg-light);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.impact-stats .stat-item:hover {
    transform: translateY(-5px);
    background: #e0f2fe;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.impact-stats .stat-item h4 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.impact-stats .stat-item p {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

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

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments for Namaste section */
@media (max-width: 768px) {
    .namaste-icon {
        font-size: 6rem;
    }
    
    .icon-glow {
        width: 150px;
        height: 150px;
    }
    
    .namaste-text h1 {
        font-size: 3rem;
    }
    
    .namaste-text h2 {
        font-size: 2rem;
    }
    
    .namaste-text p {
        font-size: 1.2rem;
    }
    
    .message-card {
        padding: 2rem !important;
    }
    
    .impact-stats .stat-item h4 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .namaste-icon {
        font-size: 4rem;
    }
    
    .icon-glow {
        width: 120px;
        height: 120px;
    }
    
    .namaste-text h1 {
        font-size: 2.5rem;
    }
    
    .namaste-text h2 {
        font-size: 1.8rem;
    }
    
    .impact-stats .stat-item {
        margin-bottom: 1rem;
    }
}

/* Contact Section */
.contact-section {
    background: white;
}


/* reCAPTCHA Styling */
.recaptcha-container {
    display: flex;
    justify-content: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.recaptcha-container .cf-turnstile {
    transform: scale(0.9);
}

/* Contact Form reCAPTCHA Styling */
.contact-info .g-recaptcha {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
}

.contact-info .g-recaptcha > div {
    transform: scale(0.9);
    transform-origin: center;
}

/* Error message styling for reCAPTCHA */
.contact-info .errorlist {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}

.contact-info .errorlist li {
    color: #dc3545;
    font-size: 0.875rem;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 0.375rem;
    padding: 0.5rem;
    margin: 0.25rem 0;
}

/* Documents Page Styling */
.documents-section {
    background: #f8f9fa;
}

.document-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.document-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.document-icon {
    transition: all 0.3s ease;
}

.document-card:hover .document-icon {
    transform: scale(1.1);
}

.download-btn {
    transition: all 0.3s ease;
    border-radius: 25px;
    font-weight: 500;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.3);
}

.document-info {
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

/* Pagination Styling */
.pagination .page-link {
    color: var(--primary-color);
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.75rem;
    margin: 0 0.125rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
}

/* No Documents Styling */
.no-documents-icon {
    opacity: 0.5;
    animation: float 3s ease-in-out infinite;
}

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

/* Responsive adjustments for documents */
@media (max-width: 768px) {
    .document-card {
        margin-bottom: 1.5rem;
    }
    
    .document-icon i {
        font-size: 2rem !important;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .document-info {
        font-size: 0.8rem;
    }
}

/* Donation History Page Styling */
.total-amount-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.total-amount-card {
    background: white;
    border: 1px solid #dee2e6;
    position: relative;
    overflow: hidden;
}

.total-amount-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #1e40af);
}

.amount-display {
    position: relative;
}

.amount {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-item {
    padding: 1rem;
    border-radius: 10px;
    background: rgba(30, 58, 138, 0.05);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(30, 58, 138, 0.1);
    transform: translateY(-2px);
}

/* Donation Table Styling */
.donation-table {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.donation-table thead th {
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 1rem 0.75rem;
}

.donation-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #f1f3f4;
}

.donation-table tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.01);
}

.donation-table tbody td {
    padding: 1rem 0.75rem;
    vertical-align: middle;
    border: none;
}

.amount-badge {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.payment-method {
    color: #6c757d;
    font-size: 0.9rem;
}

.transaction-id {
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #495057;
}

.donation-date {
    color: #6c757d;
    font-size: 0.9rem;
}

.remarks {
    color: #495057;
    font-size: 0.9rem;
    cursor: help;
}

.donor-info strong {
    color: var(--primary-color);
    font-size: 1rem;
}

/* Transparency Section */
.transparency-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
}

.transparency-section h4 {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* No Donations Styling */
.no-donations-icon {
    opacity: 0.5;
    animation: pulse 2s ease-in-out infinite;
}

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

/* Responsive adjustments for donation history */
@media (max-width: 768px) {
    .total-amount-card {
        padding: 2rem !important;
    }
    
    .amount {
        font-size: 2.5rem !important;
    }
    
    .donation-table {
        font-size: 0.85rem;
    }
    
    .donation-table th,
    .donation-table td {
        padding: 0.5rem 0.25rem;
    }
    
    .amount-badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .table-responsive {
        border-radius: 10px;
    }
}

@media (max-width: 576px) {
    .donation-table th:nth-child(5),
    .donation-table td:nth-child(5),
    .donation-table th:nth-child(7),
    .donation-table td:nth-child(7) {
        display: none;
    }
    
    .stat-item h4 {
        font-size: 1.5rem;
    }
}

/* Robot Validator Styling */
.robot-validator {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.robot-validator .form-check {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.robot-validator .form-check-input {
    margin-right: 0.5rem;
    transform: scale(1.2);
}

.robot-validator .form-check-label {
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    margin: 0;
}

.robot-validator .form-check-label i {
    color: #6c757d;
    font-size: 1.1rem;
}

.robot-validator .form-check-input:checked + .form-check-label i {
    color: var(--primary-color);
}

.robot-validator .form-check-input:checked + .form-check-label {
    color: var(--success-color, #28a745);
}

.contact-item {
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: #e0f2fe;
    transform: translateX(5px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 8px rgba(30, 58, 138, 0.2);
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(30, 58, 138, 0.3);
}


/* Message Section */
.message-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
}

.app-preview {
    animation: float 3s ease-in-out infinite;
}

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

/* Footer */
.footer {
    background: #1f2937 !important;
}

.footer h5 {
    color: white !important;
}

.footer .text-primary {
    color: #60a5fa !important;
}

/* Important Links Section */
.important-links-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 2rem;
}

.link-category h6 {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.link-category ul li a {
    transition: all 0.3s ease;
    display: block;
    padding: 0.25rem 0;
    border-radius: 4px;
}

.link-category ul li a:hover {
    color: var(--primary-color) !important;
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.1);
    padding-left: 0.5rem;
}

.link-category ul li a i {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Copyright Section */
.copyright-section {
    background: #111827 !important;
}

/* Button Styles */
.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 10px;
    padding: 0.75rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #1e40af;
    border-color: #1e40af;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover,
.btn-outline-primary.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .countdown-timer {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .time-unit {
        min-width: 60px;
        padding: 0.75rem;
    }
    
    .time-unit .number {
        font-size: 1.5rem;
    }
    
    .hero-section {
        min-height: 60vh;
        text-align: center;
        padding-top: 120px !important;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .carousel-item img {
        height: 200px;
    }
    
    
    .countdown-timer {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .time-unit {
        min-width: 80px;
        padding: 1rem 0.75rem;
    }
    
    .time-unit .number {
        font-size: 2rem;
    }
    
    .amount-card {
        padding: 2rem;
    }
    
    .amount {
        font-size: 3rem;
    }
    
    .progress-ring-svg {
        width: 100px;
        height: 100px;
    }
    
    .collected-amount-display {
        padding: 1.5rem;
    }
    
    .collected-amount-display .amount {
        font-size: 2.5rem;
    }
    
    .collected-amount-display .amount-display {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .collected-amount-display .currency {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .donation-actions {
        padding: 0.5rem;
    }
    
    .donation-actions .btn {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .countdown-timer {
        flex-direction: column;
        align-items: center;
    }
    
    .time-unit {
        width: 100%;
        max-width: 200px;
    }
    
    .time-unit .number {
        font-size: 1.8rem;
    }
    
    .timer-section h2 {
        font-size: 2rem;
    }
    
    .amount-card {
        padding: 1.5rem;
    }
    
    .amount {
        font-size: 2.5rem;
    }
    
    .amount-display {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .currency {
        font-size: 1.2rem;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .progress-ring-svg {
        width: 80px;
        height: 80px;
    }
    
    .progress-percentage {
        font-size: 1.5rem;
    }
    
    .collected-amount-display {
        padding: 1rem;
    }
    
    .collected-amount-display .amount {
        font-size: 2rem;
    }
    
    .donation-actions {
        padding: 0.25rem;
    }
    
    .donation-actions .btn {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
    
    .donation-icon i {
        font-size: 2rem !important;
    }
    
    .important-links-section {
        padding-top: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .link-category h6 {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .link-category ul li a {
        font-size: 0.85rem;
        padding: 0.2rem 0;
    }
    
    .navbar-brand {
        flex-direction: column;
        text-align: center;
    }
    
    .office-info {
        margin-top: 0.5rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-left {
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-in-right {
    animation: slideInRight 1s ease-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.shadow-custom {
    box-shadow: var(--shadow);
}

.shadow-lg-custom {
    box-shadow: var(--shadow-lg);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

