/* ============================================
   Wedding Website - Main Stylesheet
   ============================================ */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* ============================================
   CSS Variables
   ============================================ */
:root {
    --primary-color: #d4af37;
    --secondary-color: #8b4513;
    --accent-color: #f5f5dc;
    --text-dark: #2c2c2c;
    --text-light: #666;
    --white: #ffffff;
    --light-bg: #fafafa;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --primary-color: #d4af37;
    --secondary-color: #b8860b;
    --accent-color: #2c2c2c;
    --text-dark: #ffffff;
    --text-light: #ffffff;
    --white: #1a1a1a;
    --light-bg: #2c2c2c;
    --border-color: #444;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.7);
    --footer-bg: #1a1a1a;
    --footer-text: #ffffff;
}

/* ============================================
   Global Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

/* ============================================
   Typography
   ============================================ */
h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 3rem;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 2.5rem;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-align: center;
}

h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 300;
    font-size: 1.75rem;
    line-height: 1.4;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    text-align: center;
}

p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* ============================================
   Header & Navigation
   ============================================ */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand:hover {
    color: var(--secondary-color) !important;
    transform: scale(1.05);
    transition: var(--transition);
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.navbar-nav .nav-item {
    margin: 0 0.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background-color: var(--primary-color);
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

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

/* ============================================
   Buttons
   ============================================ */
.btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    color: #000000 !important;
    text-decoration: none !important;
}

/* Ensure button text is always visible */
.btn *,
.btn-primary *,
.btn-outline-primary *,
.btn-secondary *,
a.btn *,
button.btn * {
    color: #000000 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #000000 !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-weight: 600 !important;
    text-shadow: none !important;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: #000000 !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-weight: 600 !important;
    text-shadow: none !important;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #000000 !important;
    font-weight: 600 !important;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #000000 !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    font-weight: 600 !important;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: #000000 !important;
    background-color: transparent;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-weight: 600 !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: #000000 !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-weight: 600 !important;
}

/* ============================================
   Cards
   ============================================ */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.card-img-top {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-img-top {
    transform: scale(1.1);
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.card-text {
    color: var(--text-light);
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* ============================================
   Sections
   ============================================ */
.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                url('https://images.unsplash.com/photo-1519741497674-611481863552?w=1920&q=80') center/cover no-repeat;
    color: var(--white);
    text-align: center;
    position: relative;
}

.hero-content h1 {
    color: var(--white);
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 5rem;
    position: relative;
    z-index: 1;
}

.footer h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.footer p,
.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    display: inline-block;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
    text-decoration: none;
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
}

/* ============================================
   Forms
   ============================================ */
.form-control {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* ============================================
   Images
   ============================================ */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.lazy-load {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy-load.loaded {
    opacity: 1;
}

/* ============================================
   Utilities
   ============================================ */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 2rem;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Large Desktop (1920px and above) */
@media (min-width: 1920px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-content h1 {
        font-size: 5rem;
    }
    
    .section {
        padding: 6rem 0;
    }
}

/* Desktop (1280px - 1919px) - 1280×720, 1366x768, 1536x864 */
@media (min-width: 1280px) and (max-width: 1919px) {
    .container {
        max-width: 1200px;
    }
    
    .hero-content h1 {
        font-size: 4rem;
    }
}

/* Tablet Landscape (1024px - 1279px) - 1280x800 */
@media (min-width: 1024px) and (max-width: 1279px) {
    .container {
        max-width: 1000px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .section {
        padding: 4rem 0;
    }
}

/* Tablet Portrait (768px - 1023px) - 768x1024, 800x1280, 820x1180 */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        max-width: 750px;
    }
    
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.875rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-item {
        margin: 0.25rem 0;
    }
    
    .section {
        padding: 3.5rem 0;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .dark-mode-toggle {
        width: 55px;
        height: 55px;
        right: 18px;
        font-size: 1.3rem;
    }
}

/* Mobile Landscape (480px - 767px) */
@media (min-width: 480px) and (max-width: 767px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-item {
        margin: 0.25rem 0;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .btn {
        padding: 0.7rem 1.75rem;
        font-size: 0.9rem;
    }
    
    .dark-mode-toggle {
        width: 50px;
        height: 50px;
        right: 15px;
        font-size: 1.25rem;
    }
}

/* Mobile Portrait (up to 479px) - 360×800, 390x844, 393x873, 412×915 */
@media (max-width: 479px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-item {
        margin: 0.25rem 0;
    }
    
    .section {
        padding: 2.5rem 0;
    }
    
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.85rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .dark-mode-toggle {
        width: 45px;
        height: 45px;
        right: 12px;
        font-size: 1.1rem;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer h5 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
}

/* ============================================
   Specific Screen Size Optimizations
   ============================================ */

/* Desktop: 1920x1080 */
@media (min-width: 1920px) and (max-width: 1920px) {
    .container {
        max-width: 1400px;
    }
}

/* Desktop: 1536x864 */
@media (min-width: 1536px) and (max-width: 1536px) {
    .container {
        max-width: 1300px;
    }
}

/* Desktop: 1366x768 */
@media (min-width: 1366px) and (max-width: 1366px) {
    .container {
        max-width: 1200px;
    }
}

/* Desktop: 1280×720 */
@media (min-width: 1280px) and (max-width: 1280px) {
    .container {
        max-width: 1150px;
    }
}

/* Tablet: 1280x800 */
@media (min-width: 1280px) and (max-width: 1280px) and (max-height: 800px) {
    .hero-section {
        min-height: 70vh;
    }
    
    .section {
        padding: 4rem 0;
    }
}

/* Tablet: 1024x768 (iPad) */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        max-width: 950px;
    }
    
    .card-columns {
        column-count: 2;
    }
}

/* Tablet: 800x1280 (Portrait) */
@media (min-width: 800px) and (max-width: 800px) and (min-height: 1280px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .section {
        padding: 4rem 0;
    }
}

/* Tablet: 820x1180 */
@media (min-width: 820px) and (max-width: 820px) {
    .container {
        max-width: 780px;
    }
}

/* Mobile: 412×915 */
@media (max-width: 412px) and (min-height: 915px) {
    .hero-content h1 {
        font-size: 2.25rem;
    }
    
    .section {
        padding: 3rem 0;
    }
}

/* Mobile: 393x873 */
@media (max-width: 393px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .card-body {
        padding: 0.875rem;
    }
    
    .btn {
        padding: 0.55rem 1.25rem;
        font-size: 0.8rem;
    }
}

/* Mobile: 390x844 */
@media (max-width: 390px) {
    h1 {
        font-size: 1.65rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    .hero-content h1 {
        font-size: 1.9rem;
    }
    
    .dark-mode-toggle {
        width: 42px;
        height: 42px;
        right: 10px;
        font-size: 1rem;
    }
}

/* Mobile: 360×800 */
@media (max-width: 360px) {
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    h3 {
        font-size: 1.15rem;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-content p {
        font-size: 0.95rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .dark-mode-toggle {
        width: 40px;
        height: 40px;
        right: 8px;
        font-size: 0.95rem;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .section-title {
        margin-bottom: 1.5rem;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: 100vh;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
}

/* ============================================
   Contact Info
   ============================================ */
.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-info a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* ============================================
   Contact Page - Equal Size Cards
   ============================================ */
.contact-info-cards {
    display: flex;
    flex-direction: column;
}

.contact-info-card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contact-info-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    min-height: 180px;
}

.contact-info-card h5 {
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.contact-info-card p {
    flex-grow: 1;
    display: flex;
    align-items: flex-start;
}

.contact-info-card a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-info-card a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

@media (max-width: 991px) {
    .contact-info-card .card-body {
        min-height: 160px;
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .contact-info-card .card-body {
        min-height: 140px;
        padding: 1.25rem;
    }
}

/* ============================================
   Story Section - Equal Size Cards
   ============================================ */
.story-row {
    display: flex;
    align-items: stretch;
}

.story-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.story-card > div {
    flex: 1;
    display: flex;
}

.story-image-wrapper {
    width: 100%;
    height: 100%;
    min-height: 300px;
    max-height: 300px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-image {
    width: 100%;
    height: 100%;
    min-height: 300px;
    max-height: 300px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
    overflow: hidden;
}

.story-image:hover {
    transform: scale(1.05);
}

/* Remove scrollbars for all images and story containers */
.story-image-wrapper,
.story-text-wrapper,
.story-image {
    overflow: hidden !important;
}

img {
    max-width: 100%;
    height: auto;
    overflow: hidden;
}

.story-text-wrapper {
    width: 100%;
    height: 100%;
    min-height: 300px;
    max-height: 300px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--light-bg);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.story-text-wrapper h2 {
    text-align: left;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.story-text-wrapper p {
    margin-bottom: 1.25rem;
    color: var(--text-light);
}

@media (max-width: 991px) {
    .story-image-wrapper,
    .story-text-wrapper {
        min-height: 280px;
        max-height: 280px;
    }
    
    .story-image {
        min-height: 280px;
        max-height: 280px;
    }
    
    .story-text-wrapper {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .story-image-wrapper,
    .story-text-wrapper {
        min-height: 250px;
        max-height: 250px;
    }
    
    .story-image {
        min-height: 250px;
        max-height: 250px;
    }
    
    .story-text-wrapper {
        padding: 1.5rem;
    }
    
    .story-text-wrapper h2 {
        font-size: 1.75rem;
    }
}

/* ============================================
   Loading & Animations
   ============================================ */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* ============================================
   Alert Messages
   ============================================ */
.alert {
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* ============================================
   Dark Mode Styles
   ============================================ */
[data-theme="dark"] body {
    background-color: var(--white);
    color: var(--text-dark);
}

[data-theme="dark"] .navbar {
    background-color: var(--white);
    color: var(--text-dark);
}

[data-theme="dark"] .navbar-nav .nav-link {
    color: var(--text-dark) !important;
}

[data-theme="dark"] .navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

[data-theme="dark"] .card {
    background-color: var(--light-bg);
    color: var(--text-dark);
    border-color: var(--border-color);
}

[data-theme="dark"] .card-body {
    color: #ffffff !important;
}

[data-theme="dark"] .card-title {
    color: #ffffff !important;
}

[data-theme="dark"] .card-text {
    color: #ffffff !important;
}

[data-theme="dark"] .form-control {
    background-color: var(--light-bg);
    color: #ffffff !important;
    border-color: var(--border-color);
}

[data-theme="dark"] .form-control:focus {
    background-color: var(--light-bg);
    color: #ffffff !important;
    border-color: var(--primary-color);
}

[data-theme="dark"] .form-label {
    color: #ffffff !important;
}

[data-theme="dark"] .story-text-wrapper {
    background-color: var(--light-bg);
    color: #ffffff !important;
}

[data-theme="dark"] .story-text-wrapper h2 {
    color: #ffffff !important;
}

[data-theme="dark"] .story-text-wrapper p {
    color: #ffffff !important;
}

[data-theme="dark"] .contact-info-card .card-body {
    background-color: var(--light-bg);
    color: #ffffff !important;
}

[data-theme="dark"] .contact-info-card h5 {
    color: #ffffff !important;
}

[data-theme="dark"] .contact-info-card p {
    color: #ffffff !important;
}

[data-theme="dark"] .contact-info-card a {
    color: var(--primary-color);
}

[data-theme="dark"] .section-title h1,
[data-theme="dark"] .section-title h2 {
    color: #ffffff !important;
}

[data-theme="dark"] .section-subtitle {
    color: #ffffff !important;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: #ffffff !important;
}

[data-theme="dark"] p {
    color: #ffffff !important;
}

[data-theme="dark"] .hero-content h1,
[data-theme="dark"] .hero-content p {
    color: var(--white);
}

[data-theme="dark"] .dropdown-menu {
    background-color: var(--light-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .dropdown-item {
    color: var(--text-dark);
}

[data-theme="dark"] .dropdown-item:hover {
    background-color: var(--accent-color);
    color: var(--text-dark);
}

[data-theme="dark"] .dropdown-item.active {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Footer Dark Mode */
[data-theme="dark"] .footer {
    background-color: var(--footer-bg) !important;
    color: var(--footer-text) !important;
    position: relative;
    z-index: 1;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

[data-theme="dark"] .footer h5 {
    color: var(--primary-color) !important;
}

[data-theme="dark"] .footer p,
[data-theme="dark"] .footer a {
    color: rgba(245, 245, 245, 0.9) !important;
}

[data-theme="dark"] .footer * {
    color: inherit;
}

[data-theme="dark"] .footer a:hover {
    color: var(--primary-color);
}

[data-theme="dark"] .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .footer-bottom p {
    color: rgba(245, 245, 245, 0.8);
}

[data-theme="dark"] .contact-info p {
    color: rgba(245, 245, 245, 0.9);
}

[data-theme="dark"] .contact-info a {
    color: var(--primary-color);
}

[data-theme="dark"] .contact-info a:hover {
    color: var(--secondary-color);
}

/* Ensure all text is visible in both modes */
[data-theme="dark"] .section {
    color: #ffffff !important;
}

[data-theme="dark"] .section h3 {
    color: #ffffff !important;
}

[data-theme="dark"] .section p {
    color: #ffffff !important;
}

[data-theme="dark"] .section a {
    color: var(--primary-color);
}

/* Ensure all buttons are visible - like events page */
.btn,
.btn-primary,
.btn-outline-primary,
.btn-secondary,
a.btn,
button.btn,
input.btn,
input[type="submit"],
input[type="button"] {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
    text-decoration: none !important;
}

/* Buttons in cards - ensure visibility like events page */
.card .btn,
.card .btn-primary,
.card .btn-outline-primary,
.card-body .btn,
.card-body .btn-primary,
.card-body .btn-outline-primary,
.card .card-body .btn {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
    margin-top: 0.5rem;
    width: auto !important;
    height: auto !important;
}

/* Dark mode - buttons in cards still visible */
[data-theme="dark"] .card .btn,
[data-theme="dark"] .card .btn-primary,
[data-theme="dark"] .card .btn-outline-primary,
[data-theme="dark"] .card-body .btn,
[data-theme="dark"] .card-body .btn-primary,
[data-theme="dark"] .card-body .btn-outline-primary {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Buttons in sections */
.section .btn,
.section .btn-primary,
.section .btn-outline-primary {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Hero section buttons */
.hero-section .btn,
.hero-section .btn-primary,
.hero-section .btn-outline-primary {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
}

[data-theme="dark"] .btn-primary {
    background-color: var(--primary-color) !important;
    color: #000000 !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

[data-theme="dark"] .btn-primary:hover {
    background-color: var(--secondary-color) !important;
    color: #000000 !important;
}

[data-theme="dark"] .btn-outline-primary {
    border-color: var(--primary-color) !important;
    color: #000000 !important;
    background-color: transparent !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

[data-theme="dark"] .btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    color: #000000 !important;
}

[data-theme="dark"] .btn-secondary {
    background-color: var(--secondary-color) !important;
    color: #000000 !important;
}

[data-theme="dark"] .btn-secondary:hover {
    background-color: var(--primary-color) !important;
    color: #000000 !important;
}

[data-theme="dark"] .navbar-brand {
    color: var(--primary-color) !important;
}

[data-theme="dark"] .navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

[data-theme="dark"] .social-icon {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

[data-theme="dark"] .social-icon:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Light mode text visibility fixes */
body {
    color: var(--text-dark);
}

.section h3 {
    color: var(--text-dark);
}

.section a {
    color: var(--primary-color);
}

/* Ensure all text elements are visible in light mode */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
}

p, span, div, li, td, th {
    color: inherit;
}

a:not(.btn):not(.nav-link):not(.dropdown-item) {
    color: var(--primary-color);
}

a:not(.btn):not(.nav-link):not(.dropdown-item):hover {
    color: var(--secondary-color);
}

/* Additional dark mode text visibility */
[data-theme="dark"] a:not(.btn):not(.nav-link):not(.dropdown-item):not(.social-icon) {
    color: var(--primary-color);
}

[data-theme="dark"] a:not(.btn):not(.nav-link):not(.dropdown-item):not(.social-icon):hover {
    color: var(--secondary-color);
}

[data-theme="dark"] .section {
    background-color: transparent;
}

[data-theme="dark"] .container {
    color: #ffffff !important;
}

[data-theme="dark"] .container * {
    color: inherit;
}

[data-theme="dark"] .mb-0,
[data-theme="dark"] .mb-1,
[data-theme="dark"] .mb-2,
[data-theme="dark"] .mb-3,
[data-theme="dark"] .mb-4,
[data-theme="dark"] .mb-5 {
    color: #ffffff !important;
}

[data-theme="dark"] small {
    color: #ffffff !important;
}

[data-theme="dark"] label {
    color: #ffffff !important;
}

[data-theme="dark"] .text-center,
[data-theme="dark"] .text-left,
[data-theme="dark"] .text-right {
    color: inherit;
}

/* Ensure footer links are visible */
[data-theme="dark"] .footer-links a {
    color: rgba(245, 245, 245, 0.9) !important;
}

[data-theme="dark"] .footer-links a:hover {
    color: var(--primary-color) !important;
}

[data-theme="dark"] .footer-links li {
    color: rgba(245, 245, 245, 0.9);
}

/* Ensure all list items are visible */
[data-theme="dark"] ul li,
[data-theme="dark"] ol li {
    color: #ffffff !important;
}

/* Ensure table elements are visible */
[data-theme="dark"] table,
[data-theme="dark"] th,
[data-theme="dark"] td {
    color: #ffffff !important;
    border-color: var(--border-color);
}

/* Ensure alert messages are visible */
[data-theme="dark"] .alert {
    background-color: var(--light-bg);
    color: #ffffff !important;
    border-color: var(--border-color);
}

[data-theme="dark"] .alert-success {
    background-color: #1e4620;
    border-color: #2d5a2f;
    color: #d4edda;
}

[data-theme="dark"] .alert-error {
    background-color: #4a1e1e;
    border-color: #5a2d2d;
    color: #f8d7da;
}

/* Ensure badges and labels are visible */
[data-theme="dark"] .badge {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Ensure blockquotes are visible */
[data-theme="dark"] blockquote {
    color: #ffffff !important;
    border-left-color: var(--primary-color);
}

/* Global dark mode text color override - make all black text white */
[data-theme="dark"] body {
    color: #ffffff !important;
}

/* Override specific elements to ensure white text */
[data-theme="dark"] div:not(.btn):not(.card):not(.navbar):not(.footer):not(.dropdown-menu),
[data-theme="dark"] span:not(.btn):not(.badge),
[data-theme="dark"] li:not(.nav-item),
[data-theme="dark"] td,
[data-theme="dark"] th {
    color: #ffffff !important;
}

/* Keep links with their specific colors but ensure visibility */
[data-theme="dark"] a:not(.btn):not(.nav-link):not(.dropdown-item):not(.social-icon):not(.footer a) {
    color: var(--primary-color) !important;
}

[data-theme="dark"] .btn-primary {
    color: #ffffff !important;
}

[data-theme="dark"] .btn-outline-primary {
    color: var(--primary-color) !important;
}

[data-theme="dark"] .btn-outline-primary:hover {
    color: #ffffff !important;
}

/* Events and Gallery page buttons - black text in both light and dark mode */
.events-page .btn-primary,
.gallery-page .btn-primary,
.gallery-page .btn-outline-primary,
[data-page="events"] .btn-primary,
[data-page="gallery"] .btn-primary,
[data-page="gallery"] .btn-outline-primary {
    color: #000000 !important;
}

/* Dark mode - keep black text for events and gallery buttons */
[data-theme="dark"] .events-page .btn-primary,
[data-theme="dark"] .gallery-page .btn-primary,
[data-theme="dark"] .gallery-page .btn-outline-primary,
[data-theme="dark"] [data-page="events"] .btn-primary,
[data-theme="dark"] [data-page="gallery"] .btn-primary,
[data-theme="dark"] [data-page="gallery"] .btn-outline-primary {
    color: #000000 !important;
}

/* Ensure buttons in cards are visible */
.card .btn,
.card .btn-primary,
.card .btn-outline-primary {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

[data-theme="dark"] .card .btn-primary {
    background-color: var(--primary-color) !important;
    color: #000000 !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

[data-theme="dark"] .card .btn-outline-primary {
    border-color: var(--primary-color) !important;
    color: #000000 !important;
    background-color: transparent !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

[data-theme="dark"] .card .btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    color: #000000 !important;
}

/* Ensure buttons in sections are visible */
.section .btn,
.section .btn-primary,
.section .btn-outline-primary {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

[data-theme="dark"] .section .btn-primary {
    background-color: var(--primary-color) !important;
    color: #000000 !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

[data-theme="dark"] .section .btn-outline-primary {
    border-color: var(--primary-color) !important;
    color: #000000 !important;
    background-color: transparent !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

[data-theme="dark"] .section .btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    color: #000000 !important;
}

/* Ensure hero section buttons are visible */
.hero-section .btn,
.hero-section .btn-primary,
.hero-section .btn-outline-primary {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
}

[data-theme="dark"] .hero-section .btn-primary {
    background-color: var(--primary-color) !important;
    color: #000000 !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

[data-theme="dark"] .hero-section .btn-outline-primary {
    border-color: #ffffff !important;
    color: #000000 !important;
    background-color: transparent !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

[data-theme="dark"] .hero-section .btn-outline-primary:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
}

/* Override any text color rules that might affect buttons - ALL buttons black text in dark mode */
[data-theme="dark"] .btn,
[data-theme="dark"] .btn-primary,
[data-theme="dark"] .btn-outline-primary,
[data-theme="dark"] .btn-secondary,
[data-theme="dark"] a.btn,
[data-theme="dark"] button.btn,
[data-theme="dark"] input.btn,
[data-theme="dark"] .btn-lg,
[data-theme="dark"] .btn-sm,
[data-theme="dark"] .btn-xs {
    color: #000000 !important;
}

/* Ensure button text is not affected by parent color rules - ALL buttons black text */
[data-theme="dark"] * .btn,
[data-theme="dark"] * .btn-primary,
[data-theme="dark"] * .btn-outline-primary,
[data-theme="dark"] * .btn-secondary,
[data-theme="dark"] * a.btn,
[data-theme="dark"] * button.btn {
    color: #000000 !important;
}

/* All button states - black text */
[data-theme="dark"] .btn:focus,
[data-theme="dark"] .btn:active,
[data-theme="dark"] .btn:visited,
[data-theme="dark"] .btn-primary:focus,
[data-theme="dark"] .btn-primary:active,
[data-theme="dark"] .btn-primary:visited,
[data-theme="dark"] .btn-outline-primary:focus,
[data-theme="dark"] .btn-outline-primary:active,
[data-theme="dark"] .btn-outline-primary:visited {
    color: #000000 !important;
}

/* Global override - ALL buttons black text in dark mode, no exceptions */
[data-theme="dark"] .btn *,
[data-theme="dark"] .btn-primary *,
[data-theme="dark"] .btn-outline-primary *,
[data-theme="dark"] .btn-secondary *,
[data-theme="dark"] a.btn *,
[data-theme="dark"] button.btn * {
    color: #000000 !important;
}

/* Force all button text to black in dark mode - highest priority */
[data-theme="dark"] .btn,
[data-theme="dark"] .btn-primary,
[data-theme="dark"] .btn-outline-primary,
[data-theme="dark"] .btn-secondary,
[data-theme="dark"] .btn-lg,
[data-theme="dark"] .btn-sm,
[data-theme="dark"] .btn-xs,
[data-theme="dark"] a.btn,
[data-theme="dark"] button.btn,
[data-theme="dark"] input.btn,
[data-theme="dark"] input[type="submit"],
[data-theme="dark"] input[type="button"] {
    color: #000000 !important;
}

/* All button states and locations - black text */
[data-theme="dark"] .hero-section .btn,
[data-theme="dark"] .hero-section .btn-primary,
[data-theme="dark"] .hero-section .btn-outline-primary,
[data-theme="dark"] .card .btn,
[data-theme="dark"] .card .btn-primary,
[data-theme="dark"] .card .btn-outline-primary,
[data-theme="dark"] .section .btn,
[data-theme="dark"] .section .btn-primary,
[data-theme="dark"] .section .btn-outline-primary,
[data-theme="dark"] .container .btn,
[data-theme="dark"] .container .btn-primary,
[data-theme="dark"] .container .btn-outline-primary {
    color: #000000 !important;
}

/* Ensure all text in cards is white */
[data-theme="dark"] .card *:not(.btn):not(a) {
    color: #ffffff !important;
}

/* Ensure all text in sections is white */
[data-theme="dark"] .section *:not(.btn):not(a):not(.card) {
    color: #ffffff !important;
}

/* Dark Mode Toggle Button in Navbar */
.dark-mode-toggle {
    background-color: transparent;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-dark);
    font-size: 1.2rem;
    padding: 0;
    margin-left: 0.5rem;
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
    color: var(--primary-color);
    background-color: rgba(212, 175, 55, 0.1);
}

[data-theme="dark"] .dark-mode-toggle {
    color: var(--text-dark);
}

[data-theme="dark"] .dark-mode-toggle:hover {
    color: var(--primary-color);
    background-color: rgba(212, 175, 55, 0.1);
}

.dark-mode-toggle i {
    transition: var(--transition);
}

@media (max-width: 768px) {
    .dark-mode-toggle {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
        margin-left: 0.25rem;
    }
}

