/* General body styling with font family and background */
body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

/* Header styling with navigation */
header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    text-align: center;
}

/* Header h1 specific styling to override main h1 */
header h1 {
    color: white;
    font-size: 2.2em;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Navigation bar styling */
nav {
    background-color: #34495e;
    padding: 0.5rem 0;
}

/* Navigation links styling */
nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

nav li {
    display: inline;
    margin: 0 15px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav a:hover {
    color: #3498db;
    text-decoration: underline;
    background-color: rgba(52, 152, 219, 0.1);
}

/* Current page styling for navigation */
nav a.current {
    background-color: #3498db;
    color: white;
    text-decoration: none;
}

nav a.current:hover {
    background-color: #2980b9;
    color: white;
    text-decoration: none;
}

/* Main content container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Main heading styling */
h1 {
    color: #2c3e50;
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

/* Profile image styling with float and height properties */
.profile-image {
    float: left;
    height: 200px;
    width: auto;
    margin: 0 20px 20px 0;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Introduction paragraph styling */
.intro-text {
    font-size: 1.2em;
    color: #2c3e50;
    text-align: justify;
    margin-bottom: 30px;
}

/* Text formatting examples */
.highlight {
    background-color: #f39c12;
    color: white;
    padding: 2px 5px;
    border-radius: 3px;
}

.bold-text {
    font-weight: bold;
    color: #e74c3c;
}

.italic-text {
    font-style: italic;
    color: #8e44ad;
}

/* Navigation links section */
.nav-section {
    clear: both;
    margin-top: 40px;
    padding: 20px;
    background-color: #ecf0f1;
    border-radius: 8px;
}

.nav-section h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.8em;
}

/* List styling for navigation links */
.page-links {
    list-style-type: disc;
    padding-left: 30px;
}

.page-links li {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.page-links a {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

.page-links a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Footer styling */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* Clear float utility class */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Website features heading styling */
.features-heading {
    color: #34495e;
    margin-top: 25px;
}

/* Website features list styling */
.features-list {
    color: #7f8c8d;
    font-size: 1.1em;
}

/* Table styling for about page */
.skills-table, .soft-skills-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 1em;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

/* Table headers */
.skills-table thead th, .soft-skills-table thead th {
    background-color: #34495e;
    color: white;
    font-weight: bold;
    padding: 15px 12px;
    text-align: left;
    font-size: 1.1em;
    letter-spacing: 0.5px;
}

/* Table body cells */
.skills-table tbody td, .soft-skills-table tbody td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    vertical-align: top;
}

/* Alternating row colors */
.skills-table tbody tr:nth-child(even), .soft-skills-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.skills-table tbody tr:nth-child(odd), .soft-skills-table tbody tr:nth-child(odd) {
    background-color: white;
}

/* Hover effect for table rows */
.skills-table tbody tr:hover, .soft-skills-table tbody tr:hover {
    background-color: #e8f4fd;
    transform: scale(1.01);
    transition: all 0.3s ease;
    cursor: pointer;
}

/* First column styling for categories */
.skills-table tbody td:first-child, .soft-skills-table tbody td:first-child {
    font-weight: bold;
    color: #2c3e50;
    background-color: #ecf0f1;
    border-right: 3px solid #3498db;
}

/* Table sections spacing */
.skills-section, .soft-skills-section {
    margin: 40px 0;
}

.skills-section h2, .soft-skills-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8em;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

/* Responsive table styling */
@media screen and (max-width: 768px) {
    .skills-table, .soft-skills-table {
        font-size: 0.9em;
    }
    
    .skills-table thead th, .soft-skills-table thead th {
        padding: 10px 8px;
        font-size: 1em;
    }
    
    .skills-table tbody td, .soft-skills-table tbody td {
        padding: 10px 8px;
    }
}

/* About page specific styling */

/* Custom horizontal rule styling */
hr {
    border: none;
    height: 3px;
    background: linear-gradient(to right, #3498db, #2ecc71, #3498db);
    margin: 40px 0;
    border-radius: 2px;
    opacity: 0.8;
}

/* About intro section styling */
.about-intro {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    border-left: 5px solid #3498db;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
}

.about-intro .intro-text {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #2c3e50;
}

.about-intro .intro-text:last-child {
    margin-bottom: 0;
}

/* About page profile image */
.about-profile-image {
    float: right;
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 0 20px 30px;
    border: 4px solid #3498db;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

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

/* Education section styling */
.education-section {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    margin: 40px 0;
    border: 1px solid #e1e8ed;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.education-section h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.8em;
    border-bottom: 2px solid #2ecc71;
    padding-bottom: 10px;
    position: relative;
}

.education-section h2::after {
    content: "🎓";
    position: absolute;
    right: 0;
    font-size: 1.2em;
}

.education-info {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #2ecc71;
}

.education-info h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.4em;
}

.education-info p {
    margin: 8px 0;
    color: #555;
}

.education-info ul {
    margin-top: 15px;
    padding-left: 20px;
}

.education-info li {
    margin-bottom: 8px;
    color: #666;
    line-height: 1.6;
}

/* Media section styling */
.media-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin: 40px 0;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.media-section h2 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.8em;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding-bottom: 10px;
}

.media-content h3 {
    color: #f1f2f6;
    margin: 25px 0 15px 0;
    font-size: 1.3em;
}

.media-content p {
    color: #e9ecef;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Audio and video player styling */
.audio-player, .video-player {
    width: 100%;
    max-width: 500px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.audio-player {
    height: 40px;
}

.video-player {
    max-height: 300px;
}

/* Page navigation section styling */
.page-navigation {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    padding: 25px;
    border-radius: 12px;
    margin: 40px 0;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.page-navigation h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.4em;
}

.page-navigation .page-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.page-navigation .page-links li {
    margin: 0;
}

.page-navigation .page-links a {
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: bold;
    display: inline-block;
}

.page-navigation .page-links a:hover {
    background-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Responsive adjustments for about page */
@media screen and (max-width: 768px) {
    .about-intro, .education-section, .media-section, .philosophy-section, .page-navigation {
        padding: 20px;
        margin: 30px 0;
    }
    
    .about-profile-image {
        float: none;
        display: block;
        margin: 0 auto 20px auto;
        width: 150px;
        height: 150px;
    }
    
    .page-navigation .page-links {
        flex-direction: column;
        align-items: center;
    }
    
    .page-navigation .page-links a {
        width: 80%;
        text-align: center;
    }
}

/* Home page styling enhancements */

/* Enhanced container styling for home page */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    border-radius: 12px;
}

/* Enhanced home page introduction section */
.clearfix {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    border-left: 5px solid #e74c3c;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Enhanced profile image for home page */
.profile-image {
    float: left;
    height: 200px;
    width: 200px;
    object-fit: cover;
    margin: 0 20px 20px 0;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    border: 3px solid #e74c3c;
}

.profile-image:hover {
    transform: scale(1.03);
}

/* Enhanced navigation section for home page */
.nav-section {
    clear: both;
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.nav-section h2 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.8em;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding-bottom: 10px;
}

/* Enhanced page links styling for home page */
.page-links {
    list-style-type: none;
    padding-left: 0;
}

.page-links li {
    margin-bottom: 15px;
    font-size: 1.1em;
    background-color: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #f39c12;
    transition: all 0.3s ease;
}

.page-links li:hover {
    background-color: rgba(255,255,255,0.2);
    transform: translateX(5px);
}

.page-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.page-links a:hover {
    color: #f39c12;
    text-decoration: none;
}

/* Enhanced features section for home page */
.features-heading {
    color: white;
    margin-top: 30px;
    font-size: 1.4em;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding-bottom: 10px;
}

.features-list {
    background-color: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
}

.features-list li {
    color: #f1f2f6;
    font-size: 1.1em;
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Responsive adjustments for home page */
@media screen and (max-width: 768px) {
    .profile-image {
        float: none;
        display: block;
        margin: 0 auto 20px auto;
        width: 150px;
        height: 150px;
    }
    
    .clearfix, .nav-section {
        padding: 20px;
    }
    
    .page-links li {
        padding: 12px;
    }
}

/* ===============================================
   HOBBIES PAGE STYLING
   =============================================== */

/* Hobbies page introduction section */
.hobbies-intro {
    background-color: #ecf0f1;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 5px solid #3498db;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Enhanced text readability for hobbies intro */
.hobbies-intro .intro-text {
    font-size: 1.2em;
    color: #2c3e50;
    text-align: justify;
    margin: 0;
    line-height: 1.6;
}

/* Main container for all hobby sections */
.hobbies-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin: 40px 0;
}

/* Individual hobby section styling with alternating layouts */
.hobby-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-left: 8px solid #e74c3c;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* Hover animation for hobby sections */
.hobby-section:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    border-left-color: #c0392b;
}

/* Alternating border colors for visual variety */
.hobby-section:nth-child(even) {
    border-left-color: #3498db;
    background: linear-gradient(135deg, #f0f8ff, #ddeeff);
}

.hobby-section:nth-child(even):hover {
    border-left-color: #2980b9;
}

.hobby-section:nth-child(3) {
    border-left-color: #2ecc71;
    background: linear-gradient(135deg, #f0fff4, #e6ffe6);
}

.hobby-section:nth-child(3):hover {
    border-left-color: #27ae60;
}

.hobby-section:nth-child(4) {
    border-left-color: #f39c12;
    background: linear-gradient(135deg, #fffbf0, #fff3e0);
}

.hobby-section:nth-child(4):hover {
    border-left-color: #e67e22;
}

/* Hobby header styling with custom fonts */
.hobby-header {
    margin-bottom: 25px;
    text-align: center;
}

.hobby-header h2 {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 2.2em;
    color: #2c3e50;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    letter-spacing: 1px;
    position: relative;
}

/* Animated underline for hobby headers */
.hobby-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #e74c3c, #f39c12);
    transition: width 0.5s ease;
    border-radius: 2px;
}

.hobby-section:hover .hobby-header h2::after {
    width: 60%;
}

/* Hobby content layout with flexbox */
.hobby-content {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

/* Image placeholder styling with animations */
.hobby-image-placeholder {
    flex: 0 0 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    border: 3px solid white;
}

/* Rotating animation on hover for image placeholders */
.hobby-image-placeholder:hover {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

/* Icon styling within image placeholders */
.image-placeholder {
    font-size: 3em;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: pulse 2s infinite;
}

/* Pulsing animation for icons */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Hobby description text styling */
.hobby-description {
    flex: 1;
    font-family: 'Times New Roman', serif;
}

.hobby-description p {
    font-size: 1.1em;
    line-height: 1.7;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: justify;
    text-indent: 25px;
}

/* Enhanced highlight styling for hobby descriptions */
.hobby-description .highlight {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    padding: 3px 8px;
    border-radius: 5px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.hobby-description .bold-text {
    font-weight: bold;
    color: #c0392b;
    font-family: 'Arial Black', sans-serif;
}

.hobby-description .italic-text {
    font-style: italic;
    color: #8e44ad;
    font-family: 'Georgia', serif;
    font-size: 1.05em;
}

/* Hobby highlights list styling */
.hobby-highlights {
    background-color: rgba(255,255,255,0.7);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    border: 2px solid #bdc3c7;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.hobby-highlights li {
    font-size: 1em;
    color: #34495e;
    margin-bottom: 8px;
    padding: 8px 12px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 8px;
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
    list-style: none;
    position: relative;
    font-family: 'Verdana', sans-serif;
}

/* Animated bullets for hobby highlights */
.hobby-highlights li::before {
    content: '▶';
    color: #3498db;
    font-weight: bold;
    position: absolute;
    left: -20px;
    transition: transform 0.3s ease;
}

.hobby-highlights li:hover {
    background-color: rgba(52, 152, 219, 0.2);
    transform: translateX(10px);
    border-left-color: #2980b9;
}

.hobby-highlights li:hover::before {
    transform: translateX(5px);
}

/* Hobbies connection section styling */
.hobbies-connection {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 40px;
    border-radius: 20px;
    margin: 50px 0;
    text-align: center;
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
    border: 3px solid #7f8c8d;
    position: relative;
    overflow: hidden;
}

/* Animated background pattern for connection section */
.hobbies-connection::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.hobbies-connection h2 {
    font-family: 'Arial Black', sans-serif;
    font-size: 2em;
    margin-bottom: 25px;
    color: #ecf0f1;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.hobbies-connection .intro-text {
    font-size: 1.2em;
    line-height: 1.8;
    color: #bdc3c7;
    position: relative;
    z-index: 1;
}

/* Responsive design for mobile devices */
@media screen and (max-width: 768px) {
    /* Stack hobby content vertically on mobile */
    .hobby-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .hobby-image-placeholder {
        flex: none;
        margin-bottom: 20px;
    }
    
    .hobby-description {
        text-align: left;
    }
    
    .hobby-section {
        padding: 25px;
        margin: 20px 0;
    }
    
    .hobbies-intro,
    .hobbies-connection {
        padding: 25px;
        margin: 25px 0;
    }
    
    .hobby-header h2 {
        font-size: 1.8em;
    }
    
    .hobby-highlights li {
        margin-bottom: 12px;
        padding: 12px;
    }
}

/* Print styles for hobbies page */
@media print {
    .hobby-section {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
        margin-bottom: 20px;
    }
    
    .hobby-image-placeholder {
        display: none;
    }
    
    .hobbies-intro,
    .hobbies-connection {
        background: none;
        color: #000;
        border: 1px solid #000;
    }
}

/* Additional animation classes */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}

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

/* Floating animation for icons */
.floating {
    animation: floating 3s ease-in-out infinite;
}

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

/* Custom Google Font Integration */
/* Applying Roboto font to specific elements for enhanced typography */
.photos-intro .intro-text,
.photo-caption h3,
.photo-info .intro-text,
.hobby-description .highlight {
    font-family: 'Roboto', sans-serif;
}

/* ========================================
   PHOTO COLLECTION PAGE STYLES
   ======================================== */

/* Photo introduction section styling */
.photos-intro {
    background-color: #ecf0f1;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 5px solid #3498db;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.photos-intro .intro-text {
    font-size: 1.2em;
    color: #2c3e50;
    text-align: justify;
    margin: 0;
    line-height: 1.6;
}

/* Photo categories section */
.photo-categories {
    margin-bottom: 50px;
}

.photo-categories h2 {
    color: #2c3e50;
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 30px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
}

/* FLEXBOX GRID LAYOUT FOR PHOTOS */
/* Main photo grid container using Flexbox for responsive layout */
.photo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    margin: 0 auto;
    max-width: 1200px;
}

/* Individual photo item styling */
.photo-item {
    flex: 1 1 300px;
    min-width: 280px;
    max-width: 350px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.photo-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

/* Photo container styling for real images */
.photo-container {
    height: 220px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.photo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Specific image positioning adjustments */
/* Sleepy Cats - zoom out a bit by using object-fit contain */
img[src*="CatsWhiskersAndAsheSleeping.jpeg"] {
    object-fit: contain;
    background-color: #f8f9fa;
}

/* Gaming with Tucker - show more of the top */
img[src*="brotherTuckerAndIGaming.jpg"] {
    object-position: center 20%;
}

/* High School Siblings - show more of the top */
img[src*="highschoolSiblings.jpg"] {
    object-position: center 35%;
}

/* Sister Lily with burger - show more of the top */
img[src*="SisterLilyBurger.jpg"] {
    object-position: center 30%;
}

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

/* Photo overlay for hover effect */
.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-container:hover .photo-overlay {
    opacity: 1;
}

.view-text {
    color: white;
    font-size: 1.1em;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    text-align: center;
    padding: 10px;
    border: 2px solid white;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
}

/* Photo caption styling */
.photo-caption {
    padding: 20px;
    background: white;
}

.photo-caption h3 {
    color: #2c3e50;
    font-size: 1.3em;
    margin: 0 0 8px 0;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
}

.photo-caption p {
    color: #6c757d;
    font-size: 0.95em;
    margin: 0;
    line-height: 1.5;
}

/* Photo info section styling */
.photo-info {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
    margin-top: 50px;
    border-left: 5px solid #3498db;
}

.photo-info h2 {
    color: #2c3e50;
    font-size: 1.8em;
    margin-bottom: 20px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
}

.photo-info .intro-text {
    font-size: 1.1em;
    color: #495057;
    margin-bottom: 20px;
    line-height: 1.7;
}

.photo-note {
    background: #e3f2fd;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid #2196f3;
    margin: 20px 0 0 0;
    font-size: 0.95em;
    color: #1565c0;
}

/* ========================================
   UPDATED HOBBY IMAGES STYLES
   ======================================== */

/* Updated hobby image container to replace placeholder */
.hobby-image-container {
    flex: 0 0 250px;
    height: 180px;
    margin-right: 25px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.hobby-image-container:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

/* Actual image styling for hobbies */
.hobby-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Update hobby content layout for better image integration */
.hobby-content {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 20px;
}

.hobby-description {
    flex: 1;
}

/* ========================================
   RESPONSIVE DESIGN FOR NEW FEATURES
   ======================================== */

/* Tablet responsiveness */
@media screen and (max-width: 768px) {
    .photo-grid {
        gap: 20px;
        padding: 0 10px;
    }
    
    .photo-item {
        flex: 1 1 280px;
        min-width: 260px;
    }
    
    .photos-intro,
    .photo-info {
        padding: 25px;
        margin-left: 10px;
        margin-right: 10px;
    }
    
    .hobby-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .hobby-image-container {
        flex: none;
        width: 100%;
        height: 200px;
        margin-right: 0;
    }
    
    .photo-categories h2 {
        font-size: 1.8em;
    }
}

/* Mobile responsiveness */
@media screen and (max-width: 480px) {
    .photo-grid {
        gap: 15px;
        padding: 0 5px;
    }
    
    .photo-item {
        flex: 1 1 100%;
        min-width: auto;
        max-width: none;
    }
    
    .photos-intro .intro-text {
        font-size: 1.1em;
    }
    
    .photo-caption {
        padding: 15px;
    }
    
    .photo-info {
        padding: 20px;
        margin-left: 5px;
        margin-right: 5px;
    }
    
    .hobby-image-container {
        height: 180px;
    }
}

/* ========================================
   ENHANCED ACCESSIBILITY AND ANIMATIONS
   ======================================== */

/* Focus states for better accessibility */
.photo-item:focus {
    outline: 3px solid #3498db;
    outline-offset: 2px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .photo-item,
    .hobby-image-container,
    .hobby-image {
        transition: none;
    }
    
    .photo-placeholder::before {
        animation: none;
    }
}

/* ========================================
   PHOTO MODAL STYLES
   ======================================== */

/* Modal background overlay */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

/* Modal content container */
.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Modal image styling */
.modal-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Modal caption */
.modal-caption {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 15px 20px;
    margin-top: 15px;
    border-radius: 8px;
    max-width: 100%;
    text-align: center;
    font-family: 'Roboto', sans-serif;
}

.modal-caption p {
    margin: 0;
    font-size: 1em;
    line-height: 1.4;
}

/* Close button */
.close {
    position: absolute;
    top: -40px;
    right: -10px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    transition: background 0.3s ease;
}

.close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Modal fade-in animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Print styles for photo collection */
@media print {
    .photo-grid {
        display: block;
        columns: 2;
        column-gap: 20px;
    }
    
    .photo-item {
        break-inside: avoid;
        margin-bottom: 20px;
    }
    
    .photos-intro {
        background: none;
        color: black;
        border: 2px solid #333;
    }
    
    /* Hide modal in print */
    .modal {
        display: none !important;
    }
}

/* ========================================
   NOTABLE PLACES MAP STYLES
   ======================================== */

/* Places Introduction Section */
.places-intro {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #ecf0f1;
    border-radius: 8px;
}

.places-intro .intro-text {
    font-size: 1.1em;
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: justify;
}

/* Map Container Styles */
.map-container {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    border: 2px solid #e9ecef;
}

.map-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background-color: white;
    border-radius: 8px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

/* SVG Container and Map Styles */
.map-svg-container {
    position: relative;
    width: 100%;
}

.usa-map {
    width: 100%;
    height: auto;
    display: block;
}

/* Pins Overlay */
.pins-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Allow clicks to pass through to pins */
}

/* Map Pin Styles */
.map-pin {
    position: absolute;
    cursor: pointer;
    pointer-events: auto; /* Re-enable pointer events for pins */
    transition: transform 0.2s ease, filter 0.2s ease;
    transform-origin: center;
    transform: translate(-50%, -50%); /* Center the pin on its coordinates */
    z-index: 10;
}

.map-pin:hover,
.map-pin.pin-hover {
    transform: translate(-50%, -50%) scale(1.15);
}

.map-pin.pin-clicked {
    animation: pinPulse 0.5s ease-in-out;
}

@keyframes pinPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); }
    100% { transform: scale(1.2); }
}

.pin-circle {
    width: 16px;
    height: 16px;
    background-color: #e74c3c;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

.pin-center {
    width: 8px;
    height: 8px;
    background-color: #ffffff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.pin-label {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Georgia', serif;
    font-weight: bold;
    font-size: 12px;
    color: #2c3e50;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
    pointer-events: none;
    white-space: nowrap;
}

.map-pin:hover .pin-circle,
.map-pin.pin-hover .pin-circle {
    background-color: #c0392b;
    filter: drop-shadow(3px 3px 6px rgba(0,0,0,0.4));
    transform: translate(-50%, -50%) scale(1.1);
}

.map-pin:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
    border-radius: 50%;
}

/* Map Controls Styles */
.map-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding: 15px;
    background-color: #ecf0f1;
    border-radius: 8px;
    flex-wrap: wrap;
}

.control-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.control-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.control-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}



/* Location Information Panel */
.location-info {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-left: 5px solid #3498db;
    min-height: 200px;
    transition: all 0.3s ease;
}

.location-info.info-highlight {
    background-color: #fff3cd;
    border-left-color: #f39c12;
    transform: scale(1.02);
}

.location-info h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5em;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
}

.location-info h4 {
    color: #34495e;
    margin: 15px 0 10px 0;
    font-size: 1.2em;
}

.location-info h5 {
    color: #e74c3c;
    margin: 15px 0 8px 0;
    font-size: 1.1em;
}

.location-info p {
    color: #2c3e50;
    line-height: 1.6;
    margin-bottom: 12px;
}

.location-info ul {
    margin: 10px 0;
    padding-left: 20px;
}

.location-info li {
    color: #34495e;
    margin-bottom: 8px;
    line-height: 1.5;
}

.location-summary {
    border-bottom: 1px solid #ecf0f1;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.location-summary:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Map Statistics Styles */
.map-stats {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.map-stats h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.4em;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.stat-item {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.stat-number {
    display: block;
    font-size: 2em;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 5px;
}

.stat-label {
    display: block;
    color: #7f8c8d;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tooltip Styles */
.map-tooltip {
    position: fixed; /* Use fixed positioning to stay above all content */
    background-color: #2c3e50;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    z-index: 10000; /* Very high z-index to stay above zoomed content */
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    display: none;
}

.map-tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #2c3e50;
}

/* Responsive Design for Notable Places */
@media screen and (max-width: 768px) {
    .map-controls {
        flex-direction: column;
        gap: 10px;
    }
    

    
    .control-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .location-info {
        padding: 20px;
    }
    
    .places-intro {
        padding: 15px;
    }
    
    .map-container {
        padding: 15px;
    }
}

@media screen and (max-width: 480px) {
    .usa-map {
        max-width: 100%;
    }
    
    .pin-label {
        font-size: 12px;
    }
    
    .location-info h3 {
        font-size: 1.3em;
    }
    
    .stat-number {
        font-size: 1.5em;
    }
    
    .map-wrapper {
        padding: 10px;
    }
}

/* Places Summary Section Styling for About Page */
.places-summary-section {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
    border-left: 5px solid #3498db;
}

.places-summary-section h2 {
    color: #2c3e50;
    font-size: 1.8em;
    margin-bottom: 15px;
    text-align: center;
}

.places-summary-section .intro-text {
    font-size: 1.1em;
    color: #34495e;
    text-align: center;
    margin-bottom: 20px;
}

#placesSummaryStats {
    color: #e74c3c;
    font-weight: bold;
}

.places-quick-summary {
    min-height: 50px;
    margin: 20px 0;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.places-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.place-summary-card {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.place-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.place-summary-card h4 {
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-size: 1.2em;
}

.place-summary-description {
    color: #7f8c8d;
    margin: 8px 0;
    line-height: 1.4;
}

.place-summary-highlights {
    display: inline-block;
    background-color: #ecf0f1;
    color: #2c3e50;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: bold;
}

.random-place-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.random-place-highlight h3 {
    color: white;
    margin-top: 0;
    font-size: 1.5em;
}

.random-place-highlight p {
    margin: 10px 0;
    line-height: 1.5;
}

.random-place-highlight a {
    color: #f1c40f;
    text-decoration: none;
    font-weight: bold;
}

.random-place-highlight a:hover {
    text-decoration: underline;
}

.places-summary-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.summary-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.summary-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.summary-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.summary-link {
    color: #e74c3c;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    padding: 8px 16px;
    border: 2px solid #e74c3c;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.summary-link:hover {
    background-color: #e74c3c;
    color: white;
    text-decoration: none;
}

/* Responsive design for places summary */
@media screen and (max-width: 768px) {
    .places-summary-section {
        padding: 15px;
    }
    
    .places-summary-grid {
        grid-template-columns: 1fr;
    }
    
    .places-summary-controls {
        flex-direction: column;
    }
    
    .summary-btn, .summary-link {
        width: 100%;
        text-align: center;
        max-width: 250px;
    }
}

/* Screen reader only text - hidden visually but available to assistive technology */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== BOOTSTRAP INTEGRATION STYLES ===== */

/* Bootstrap navbar customization to match existing design */
.navbar-custom {
    background-color: #34495e !important;
}

.navbar-custom .navbar-brand {
    color: white !important;
    font-weight: bold;
}

.navbar-custom .navbar-toggler {
    border-color: white;
}

.navbar-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-custom .navbar-nav .nav-link {
    color: white !important;
    font-weight: bold;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 4px;
}

.navbar-custom .navbar-nav .nav-link:hover {
    color: #3498db !important;
    background-color: rgba(52, 152, 219, 0.1);
    text-decoration: underline;
}

.navbar-custom .navbar-nav .nav-link.active {
    background-color: #3498db !important;
    color: white !important;
    text-decoration: none;
}

.navbar-custom .navbar-nav .nav-link.active:hover {
    background-color: #2980b9 !important;
    color: white !important;
    text-decoration: none;
}

/* ===== WORLDVIEW PAGE SPECIFIC STYLES ===== */

/* Hero section styling */
.worldview-hero {
    padding: 40px 30px;
    margin: 30px 0;
    text-align: center;
}

.worldview-hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #2c3e50;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.worldview-hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #2c3e50;
    font-weight: 400;
}

.worldview-hero-button {
    border: 2px solid #3498db;
    color: #3498db;
    background: transparent;
    font-weight: bold;
    padding: 12px 24px;
    font-size: 1.1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
    cursor: pointer;
}

.worldview-hero-button:hover {
    background-color: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.worldview-hero-button.active {
    background-color: #3498db;
    color: white;
}

/* Hero expandable content */
.worldview-hero-content {
    margin-top: 2rem;
    display: none;
}

.worldview-hero-card {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    margin: 0 auto;
    max-width: 600px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.worldview-hero-card h5 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: bold;
    color: #2c3e50;
}

.worldview-hero-card p {
    color: #2c3e50;
    line-height: 1.6;
    margin: 0;
}

/* Core Beliefs Section */
.core-beliefs-section {
    margin-bottom: 3rem;
}

.core-beliefs-title {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
    font-size: 2rem;
    font-weight: bold;
}

.core-beliefs-filters {
    text-align: center;
    margin-bottom: 2rem;
}

.core-beliefs-filters .btn-group {
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.beliefs-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    align-items: start;
    grid-auto-rows: min-content;
}

@media (min-width: 992px) {
    .beliefs-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .beliefs-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 576px) {
    .beliefs-container {
        grid-template-columns: 1fr;
    }
}

/* Hero button styling for better visibility */
.worldview-hero .btn-outline-light {
    border: 2px solid #ecf0f1;
    color: #ecf0f1;
    font-weight: bold;
    padding: 12px 24px;
    transition: all 0.3s ease;
}

.worldview-hero .btn-outline-light:hover {
    background-color: #ecf0f1;
    color: #2c3e50;
    border-color: #ecf0f1;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.worldview-hero .btn-light {
    background-color: #ecf0f1;
    color: #2c3e50;
    border: 2px solid #ecf0f1;
    font-weight: bold;
}

.worldview-hero .btn-light:hover {
    background-color: #bdc3c7;
    border-color: #bdc3c7;
    color: #2c3e50;
}

/* Core Beliefs Cards */
.belief-card {
    transition: all 0.4s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.belief-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.15);
}

.belief-card .card-header {
    border-bottom: none;
    font-weight: bold;
    padding: 1.25rem;
}

.belief-card .card-body {
    padding: 1.5rem 1.25rem;
}

/* Fix blockquote styling in belief cards */
.belief-card blockquote,
.belief-card .blockquote {
    margin: 1rem 0;
    padding: 1rem;
    border-left: 4px solid #3498db;
    font-style: italic;
    background-color: #f8f9fa !important;
    border-radius: 4px;
    border: none !important;
}

.belief-card .blockquote-footer,
.belief-card blockquote footer {
    color: #6c757d !important;
    background-color: transparent !important;
    font-size: 0.9rem;
    font-weight: bold;
    margin-top: 0.5rem;
    border: none !important;
    padding: 0 !important;
    text-align: right;
}

.belief-card .blockquote-footer::before,
.belief-card blockquote footer::before {
    content: "— ";
}

/* Override Bootstrap's blockquote styling specifically in belief cards */
.belief-card .card-body blockquote {
    border-left: 4px solid #3498db !important;
    background-color: #f8f9fa !important;
    margin: 1rem 0 !important;
    padding: 1rem !important;
}

/* Belief filter buttons */
.belief-filter {
    margin: 0 0.25rem 0.5rem 0.25rem;
    border-radius: 25px;
    padding: 8px 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.belief-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Belief items smooth transitions with minimal layout shift */
.belief-item {
    transition: opacity 0.25s ease-out, transform 0.25s ease-out;
    opacity: 1;
    transform: scale3d(1, 1, 1);
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.belief-item.filtering-out {
    opacity: 0;
    transform: scale3d(0.98, 0.98, 1);
    pointer-events: none;
}

.belief-item.filtering-in {
    opacity: 1;
    transform: scale3d(1, 1, 1);
    pointer-events: all;
}

.belief-item.hidden {
    display: none;
}

/* Card headers with custom colors */
.belief-card-header-primary {
    background-color: #3498db;
    color: white;
    padding: 1.25rem;
    font-weight: bold;
    border-bottom: none;
}

.belief-card-header-success {
    background-color: #27ae60;
    color: white;
    padding: 1.25rem;
    font-weight: bold;
    border-bottom: none;
}

.belief-card-header-info {
    background-color: #17a2b8;
    color: white;
    padding: 1.25rem;
    font-weight: bold;
    border-bottom: none;
}

.belief-card-header-warning {
    background-color: #f39c12;
    color: white;
    padding: 1.25rem;
    font-weight: bold;
    border-bottom: none;
}

.belief-card-header-secondary {
    background-color: #6c757d;
    color: white;
    padding: 1.25rem;
    font-weight: bold;
    border-bottom: none;
}

.belief-card-header-danger {
    background-color: #e74c3c;
    color: white;
    padding: 1.25rem;
    font-weight: bold;
    border-bottom: none;
}

/* Accordion styling */
.accordion-button:not(.collapsed) {
    background-color: #667eea;
    color: white;
    border-color: #667eea;
}

.accordion-button:not(.collapsed)::after {
    filter: invert(1);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
    border-color: #667eea;
}

/* Personal Reflections Section */
.personal-reflections-section {
    margin-bottom: 3rem;
}

.personal-reflections-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.personal-reflections-header {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-bottom: 1px solid #dee2e6;
}

.personal-reflections-title {
    margin: 0;
    font-size: 1.5rem;
    color: #2c3e50;
}

.personal-reflections-subtitle {
    color: #6c757d;
    margin: 0;
    font-size: 0.9rem;
}

.personal-reflections-body {
    padding: 1.5rem;
}

/* Container for reflection content to maintain consistent height */
.reflection-content-container {
    position: relative;
    min-height: 200px;
    margin-top: 1.5rem;
    padding: 0 1rem;
}

.reflection-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.reflection-toggle {
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid;
    background: transparent;
    cursor: pointer;
}

.reflection-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.reflection-toggle.primary {
    border-color: #3498db;
    color: #3498db;
}

.reflection-toggle.primary.active {
    background-color: #3498db;
    color: white;
}

.reflection-toggle.success {
    border-color: #27ae60;
    color: #27ae60;
}

.reflection-toggle.success.active {
    background-color: #27ae60;
    color: white;
}

.reflection-toggle.info {
    border-color: #17a2b8;
    color: #17a2b8;
}

.reflection-toggle.info.active {
    background-color: #17a2b8;
    color: white;
}

.reflection-toggle.warning {
    border-color: #f39c12;
    color: #f39c12;
}

.reflection-toggle.warning.active {
    background-color: #f39c12;
    color: white;
}

/* Reflection content with smooth transitions and fixed height to prevent layout shift */
.reflection-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.reflection-content.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.reflection-alert {
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid;
}

.reflection-alert.primary {
    background-color: #e3f2fd;
    border-left-color: #3498db;
    color: #1976d2;
}

.reflection-alert.success {
    background-color: #e8f5e8;
    border-left-color: #27ae60;
    color: #2e7d32;
}

.reflection-alert.info {
    background-color: #e0f2f1;
    border-left-color: #17a2b8;
    color: #00695c;
}

.reflection-alert.warning {
    background-color: #fff3e0;
    border-left-color: #f39c12;
    color: #ef6c00;
}

.reflection-default-message {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    text-align: center;
    color: #6c757d;
    padding: 2rem;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.reflection-default-message.hidden {
    opacity: 0;
    pointer-events: none;
}

.reflection-default-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}



/* Fix blockquote styling completely */
blockquote.blockquote {
    background: none !important;
    border: none !important;
    border-left: 4px solid #3498db !important;
    padding-left: 1rem !important;
    margin: 1rem 0 !important;
    font-style: italic !important;
}

blockquote.blockquote p {
    background: none !important;
    color: #555 !important;
    margin-bottom: 0.5rem !important;
}

blockquote.blockquote footer,
blockquote.blockquote .blockquote-footer {
    background: none !important;
    border: none !important;
    color: #6c757d !important;
    font-size: 0.9rem !important;
    text-align: right !important;
    margin-top: 0.5rem !important;
}

/* Override any Bootstrap blockquote styles */
.blockquote {
    background: none !important;
    border: none !important;
    border-left: 4px solid #3498db !important;
    padding-left: 1rem !important;
    margin: 1rem 0 !important;
    font-style: italic !important;
}

.blockquote p {
    background: none !important;
    color: #555 !important;
    margin-bottom: 0.5rem !important;
}

.blockquote footer,
.blockquote .blockquote-footer {
    background: none !important;
    border: none !important;
    color: #6c757d !important;
    font-size: 0.9rem !important;
    text-align: right !important;
    margin-top: 0.5rem !important;
}



/* Responsive adjustments for worldview page */
@media screen and (max-width: 768px) {
    .worldview-hero {
        padding: 2rem 0;
    }
    
    .worldview-hero .display-4 {
        font-size: 2rem;
    }
    
    .worldview-hero .lead {
        font-size: 1.1rem;
    }
    
    /* Fix filter buttons to stack properly on mobile */
    .core-beliefs-filters .btn-group {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .belief-filter {
        display: block;
        width: 90%;
        max-width: 250px;
        margin: 0.25rem 0;
        text-align: center;
    }
    
    .reflection-toggle {
        display: block;
        width: 100%;
        margin: 0.25rem 0;
    }
    
    .belief-card {
        margin-bottom: 1rem;
    }
    
    /* Fix personal reflections container height on mobile */
    .reflection-content-container {
        min-height: 250px;
    }
    
    /* Improve belief buttons grid layout */
    .reflection-buttons {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    /* Improve overall container spacing on mobile */
    .container.my-5 {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Adjust section spacing on mobile */
    .core-beliefs-section,
    .personal-reflections-section {
        margin-bottom: 2rem;
    }
}

/* Medium screen adjustments (tablets) */
@media screen and (max-width: 991px) and (min-width: 769px) {
    .belief-filter {
        font-size: 0.95rem;
        padding: 10px 18px;
    }
    
    .reflection-content-container {
        min-height: 220px;
    }
    
    .core-beliefs-filters .btn-group {
        flex-wrap: wrap;
        justify-content: center;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media screen and (max-width: 480px) {
    .worldview-hero {
        padding: 1.5rem 0;
    }
    
    .worldview-hero-title {
        font-size: 2rem;
    }
    
    .worldview-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .worldview-hero-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Core beliefs title adjustment */
    .core-beliefs-title {
        font-size: 1.6rem;
    }
    
    /* Further adjust filter buttons for very small screens */
    .belief-filter {
        width: 95%;
        font-size: 0.9rem;
        padding: 10px 16px;
    }
    
    /* Adjust reflection container for small screens */
    .reflection-content-container {
        min-height: 320px;
    }
    
    /* Stack reflection toggles more compactly */
    .reflection-toggle {
        font-size: 0.9rem;
        padding: 10px 16px;
    }
    
    /* Adjust card padding for mobile */
    .belief-card .card-body {
        padding: 1rem;
    }
    
    .belief-card .card-header {
        padding: 1rem;
    }
}

/* Contact page specific styles */
.contact-intro {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.contact-intro .intro-text {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.1em;
}

.contact-intro .intro-text:last-child {
    margin-bottom: 0;
}

/* Contact form section styling */
.contact-form-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contact-form-section h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.8em;
    text-align: center;
    position: relative;
}

.contact-form-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 2px;
}

/* Form styling enhancements */
.contact-form .form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.contact-form .form-label i {
    margin-right: 0.5rem;
    color: #3498db;
}

.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.contact-form .form-text {
    color: #6c757d;
    font-size: 0.9em;
    margin-top: 0.25rem;
}

/* Form check styling */
.contact-form .form-check {
    margin-bottom: 0.5rem;
}

.contact-form .form-check-input:checked {
    background-color: #3498db;
    border-color: #3498db;
}

.contact-form .form-check-label {
    color: #2c3e50;
    font-weight: 500;
}

/* Button styling */
.contact-form .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-form .btn-primary {
    background-color: #3498db;
    border-color: #3498db;
}

.contact-form .btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.contact-form .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.contact-form .btn-secondary:hover {
    background-color: #5a6268;
    border-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* Contact information section */
.contact-info-section {
    margin-bottom: 3rem;
}

.contact-info-section h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 1.8em;
    text-align: center;
    position: relative;
}

.contact-info-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 2px;
}

/* Contact cards styling */
.contact-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e9ecef;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #3498db;
}

.contact-icon {
    margin-bottom: 1rem;
}

.contact-icon i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.contact-card h3 {
    color: #2c3e50;
    font-size: 1.4em;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-card p {
    color: #6c757d;
    margin-bottom: 1.5rem;
    font-size: 1em;
}

.contact-card .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Response info section */
.response-info {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid #28a745;
}

.response-info h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.6em;
    text-align: center;
}

.info-item {
    text-align: center;
    padding: 1rem;
}

.info-item i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.info-item h4 {
    color: #2c3e50;
    font-size: 1.2em;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.info-item p {
    color: #6c757d;
    margin-bottom: 0;
    font-size: 0.95em;
}

/* Responsive adjustments for contact page */
@media screen and (max-width: 768px) {
    .contact-form-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .contact-form-section h2 {
        font-size: 1.6em;
    }
    
    .contact-info-section h2 {
        font-size: 1.6em;
    }
    
    .contact-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .contact-card h3 {
        font-size: 1.3em;
    }
    
    .response-info {
        padding: 1.5rem;
    }
    
    .response-info h3 {
        font-size: 1.4em;
    }
    
    .info-item {
        padding: 0.75rem;
    }
    
    .info-item i {
        font-size: 1.75rem;
    }
    
    .info-item h4 {
        font-size: 1.1em;
    }
    
    .contact-form .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .contact-form .d-grid {
        flex-direction: column;
    }
}

@media screen and (max-width: 480px) {
    .contact-intro {
        padding: 1rem;
    }
    
    .contact-form-section {
        padding: 1rem;
    }
    
    .contact-form-section h2 {
        font-size: 1.4em;
    }
    
    .contact-info-section h2 {
        font-size: 1.4em;
    }
    
    .contact-card {
        padding: 1rem;
    }
    
    .contact-card h3 {
        font-size: 1.2em;
    }
    
    .response-info {
        padding: 1rem;
    }
    
    .response-info h3 {
        font-size: 1.3em;
    }
    
    .info-item {
        padding: 0.5rem;
    }
    
    .info-item i {
        font-size: 1.5rem;
    }
    
    .info-item h4 {
        font-size: 1em;
    }
    
    .info-item p {
        font-size: 0.9em;
    }
}

/* Form validation styling */
.contact-form .form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.contact-form .form-control.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 0.25rem;
}

.valid-feedback {
    display: block;
    color: #28a745;
    font-size: 0.875em;
    margin-top: 0.25rem;
}

/* Loading state for form submission */
.contact-form .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.contact-form .btn .spinner-border {
    margin-right: 0.5rem;
}

/* Success/error message styling */
.alert {
    border-radius: 8px;
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}
