/* Custom Styles for Buddhist Society Portal */

:root {
    --primary-color: #1565C0;
    --secondary-color: #FFD700;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --buddhist-blue: #1565C0;
    --buddhist-gold: #FFD700;
    --buddhist-orange: #FF8F00;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Navigation Styles */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1565c0 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
}

/* Compact Hero Section */
.compact-hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1565c0 100%);
    min-height: 25vh;
    padding: 15px 0;
}

.compact-hero-row {
    align-items: center;
    min-height: 200px;
}

.left-photos-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.right-photo-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.top-photo-container {
    margin-bottom: 10px;
    margin-top: -50px;
    margin-left: -160px;
    display: flex;
    justify-content: center;
}

.main-photo-container {
    margin-bottom: 0;
    margin-top: -235px;
    margin-left: 110px;
    display: flex;
    justify-content: center;
}

.bottom-photo-container {
    margin-top: 20px;
    margin-left: -160px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.photo-spacer {
    height: -40px;
}

.hero-photo-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    background: white;
    padding: 3px;
}

.hero-photo-wrapper.compact-photo {
    height: 150px;
    width: 150px;
    margin: 0 auto;
}

.hero-photo-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.hero-photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.4));
    color: white;
    padding: 15px 12px 8px 12px;
    text-align: center;
}

.hero-photo-overlay.compact-overlay {
    padding: 12px 6px 5px 6px;
    background: linear-gradient(transparent, rgba(0,0,0,0.5));
}

.hero-photo-overlay h6 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    line-height: 1.0;
    word-spacing: -1px;
}

.hero-photo-overlay.compact-overlay h6 {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0px;
    line-height: 0.9;
    letter-spacing: -0.8px;
    word-spacing: -2px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.hero-photo-overlay small {
    font-size: 0.7rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    line-height: 0.05;
    word-spacing: -1px;
    letter-spacing: -0.5px;
    display: inline-block;
    max-width: 100%;
}

.hero-photo-overlay.compact-overlay small {
    font-size: 0.7rem;
    opacity: 0.95;
    line-height: 0.8;
    letter-spacing: -0.3px;
    word-spacing: -1px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.photo-caption {
    padding: 0 8px;
}

.photo-caption h6 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.photo-caption small {
    font-size: 0.75rem;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.intro-text {
    padding: 0 8px;
    text-align: left;
    color: white;
    margin-left: 120px;
    margin-right: 10px;
    max-width: 350px;
}

.intro-text p {
    line-height: 1.3;
    color: #f8f9fa !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.organization-info {
    padding: 0 20px;
}

.organization-title {
    color: white;
    font-weight: bold;
    font-size: 2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.organization-title-hindi {
    color: #f8f9fa;
    font-weight: 600;
    font-size: 1.5rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.organization-details {
    color: white;
}

.organization-details p {
    color: #f8f9fa;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    line-height: 1.2;
    margin-bottom: 4px;
}

.highlighted-info {
    background: none;
    padding: 0;
    border-radius: 0;
    backdrop-filter: none;
}

/* Responsive Design */
@media (max-width: 992px) {
    .compact-hero-section {
        min-height: auto;
        padding: 10px 0;
    }
    
    .compact-hero-row {
        min-height: auto;
    }
    
    .organization-title {
        font-size: 1.7rem;
    }
    
    .organization-title-hindi {
        font-size: 1.3rem;
    }
    
    .hero-photo-wrapper.compact-photo {
        height: 130px;
        width: 130px;
    }
    
    .photo-spacer {
        height: 20px;
    }
}

@media (max-width: 768px) {
    .compact-hero-section {
        padding: 5px 0;
    }
    
    .left-photos-column {
        margin-bottom: 15px;
    }
    
    .right-photo-column {
        margin-top: 15px;
    }
    
    .organization-info {
        padding: 0 10px;
        margin: 15px 0;
    }
    
    .organization-title {
        font-size: 1.5rem;
    }
    
    .organization-title-hindi {
        font-size: 1.2rem;
    }
    
    .hero-photo-wrapper.compact-photo {
        height: 110px;
        width: 110px;
    }
    
    .photo-spacer {
        height: 15px;
    }
    
    .intro-text {
        margin-top: 6px;
    }
}

/* Card Styles */
.card {
    transition: all 0.3s ease;
    border-radius: 10px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

/* Feature Icons */
.feature-icon {
    font-size: 2rem;
}

/* Buttons */
.btn {
    border-radius: 50px;
    font-weight: 500;
    padding: 12px 30px;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Forms */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(25, 118, 210, 0.25);
}

.form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
}

/* Input Groups */
.input-group-text {
    border-radius: 10px 0 0 10px;
    border: 2px solid #e9ecef;
    border-right: none;
    background-color: #f8f9fa;
}

.input-group .form-control {
    border-radius: 0 10px 10px 0;
    border-left: none;
}

.input-group .form-control:focus {
    border-left: none;
}

.input-group .form-control:focus + .input-group-text,
.input-group-text + .form-control:focus {
    border-color: var(--primary-color);
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
    font-weight: 500;
}

/* Footer */
footer {
    margin-top: auto;
}

footer a:hover {
    color: #ffffff !important;
}

/* Dashboard Styles */
.dashboard-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
}

/* Statistics Cards */
.stats-card {
    border-radius: 15px;
    overflow: hidden;
}

/* List Groups */
.list-group-item {
    border: none;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 0;
}

.list-group-item:last-child {
    border-bottom: none;
}

/* Badges */
.badge {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        text-align: center;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner-border-custom {
    width: 3rem;
    height: 3rem;
    border: 0.3em solid rgba(25, 118, 210, 0.25);
    border-right: 0.3em solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Dark theme for cards in dashboard */
.bg-primary { background-color: var(--primary-color) !important; }
.bg-success { background-color: var(--success-color) !important; }
.bg-warning { background-color: var(--warning-color) !important; }
.bg-info { background-color: var(--info-color) !important; }
.bg-danger { background-color: var(--danger-color) !important; }

/* ============================================================================
   ANNOUNCEMENT BANNER - Modern Scrolling Event Banner
   ============================================================================ */

.announcement-banner {
    background: linear-gradient(90deg, #ffc107 0%, #ffcd39 50%, #ffc107 100%);
    border-bottom: 3px solid #e0a800;
    overflow: hidden;
    position: relative;
    height: 50px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.scrolling-text {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}

.announcement-content {
    display: inline-block;
    animation: scroll-left 20s linear infinite;
    font-weight: 600;
    font-size: 1.1rem;
    color: #212529;
    padding: 0 2rem;
}

.announcement-content:hover {
    animation-play-state: paused;
}

/* Scrolling animation */
@keyframes scroll-left {
    0% {
        transform: translateX(100vw);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .announcement-banner {
        height: 45px;
    }
    
    .announcement-content {
        font-size: 1rem;
        animation-duration: 15s;
    }
}

/* Alternative pulsing effect for smaller screens */
@media (max-width: 576px) {
    .announcement-content {
        animation: scroll-left 12s linear infinite, pulse 2s ease-in-out infinite alternate;
    }
}

@keyframes pulse {
    from {
        opacity: 0.8;
    }
    to {
        opacity: 1;
    }
}

/* Buddhist Society Logo Styles */
.navbar-brand img, .footer img {
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.navbar-brand:hover img {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(21, 101, 192, 0.4) !important;
    border-color: #FFD700;
}

.footer img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(21, 101, 192, 0.4) !important;
}

/* Make Buddhist Society text more prominent */
.navbar-brand span {
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Notification Styles */
.notification-container {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 10000 !important;
    min-width: 300px !important;
    max-width: 400px !important;
    pointer-events: none;
}

.notification-container .alert {
    pointer-events: auto;
    margin-bottom: 10px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    border: none !important;
    border-radius: 8px !important;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive notification positioning */
@media (max-width: 768px) {
    .notification-container {
        top: 10px !important;
        right: 10px !important;
        left: 10px !important;
        min-width: auto !important;
        max-width: none !important;
    }
}

@media (max-width: 480px) {
    .notification-container {
        top: 5px !important;
        right: 5px !important;
        left: 5px !important;
    }
}

/* Buddhist Theme Colors */
.bg-primary {
    background-color: var(--buddhist-blue) !important;
}

.text-warning {
    color: var(--buddhist-gold) !important;
}

.btn-primary {
    background-color: var(--buddhist-blue);
    border-color: var(--buddhist-blue);
}

.btn-primary:hover {
    background-color: #0d47a1;
    border-color: #0d47a1;
}

/* Lotus Icon Animation */
@keyframes lotus-glow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    }
    50% {
        text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    }
}

.fa-lotus {
    animation: lotus-glow 3s ease-in-out infinite;
}

.blink_text
{
    animation:1s blinker linear infinite;
    -webkit-animation:2s blinker linear infinite;
    -moz-animation:1s blinker linear infinite;
    color: red;
}

@-moz-keyframes blinker
{  
    0% { opacity: 1.0; }
    50% { opacity: 0.0; }
    100% { opacity: 1.0; }
}

@-webkit-keyframes blinker
{  
    0% { opacity: 1.0; }
    50% { opacity: 0.0; }
    100% { opacity: 1.0; }
}

@keyframes blinker
{  
    0% { opacity: 1.0; }
    50% { opacity: 0.0; }
    100% { opacity: 1.0; }
 }