/* Modern About Page Styling */
body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100%;
    padding-bottom: 40px;
}

body > *:not(#header):not(footer) {
    max-width: 1200px;
    width: 100%;
    padding: 2rem 1rem;
    margin: .5 auto;
    box-sizing: border-box;
    padding-bottom: 20px;
}

.aboutMe {
    text-align: justify;
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem auto 1.5rem;
    max-width: 900px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    line-height: 1.8;
}

#heading {
    text-align: center;
    font-size: 2rem;
    color: #667eea;
    margin: 1rem 0 2rem;
    font-weight: 700;
}

.aboutMe p {
    margin: 1rem 0;
    color: #555;
    font-size: 1.05rem;
}

h3 {
    text-align: center;
    font-size: 1.8rem;
    color: #667eea;
    margin: 1.5rem 0 1.5rem;
    font-weight: 600;
}

h4 {
    font-size: 1.2rem;
    color: #333;
    margin: 0.5rem 0;
    font-weight: 600;
}

.info-card {
    background: #f7f7ff;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.06);
}

.container {
    display: flex;
    flex-direction: row;          /* force row on larger screens */
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.75rem;
    /* IMPORTANT: no text-align here */
}

.date {
    margin-left: auto;            
    color: #667eea;
    font-weight: 500;
    text-align: right;              
}

#woxy, #eagle, #pics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
    margin: 1.5rem 0 1.5rem 0;
    padding: 0;
    align-items: start;
}

#woxy figure, #eagle figure, #pics figure {
    margin: 0;
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: visible;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: fit-content;
}
#woxy {
    align-items: center;
}

#woxy figure {
    min-height: auto !important;
    height: auto !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#woxy figure:hover, #eagle figure:hover, #pics figure:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

#roxy, #roxy2, #roxy3, #eagle_pic, #eagle_pic2, #mission_pic, #mission_pic2, #mission_pic3 {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 200px;
    max-height: 500px;
    border-radius: 8px;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
    background: #f5f5f5;
}

/* #roxy2 {
    margin-top: 50%;
} */

#woxy figure:hover img, #eagle figure:hover img, #pics figure:hover img {
    transform: scale(1.02);
}

figcaption {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    line-height: 1.5;
    font-style: italic;
}

/* Section Styling */
.education, .activities, .dog-cont{
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin: 1rem auto;
    max-width: 900px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
}

.education ul, .activities ul {
    list-style: none;
    padding-left: 0;
}

.education ul li, .activities ul li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0e0e0;
    color: #555;
    position: relative;
    padding-left: 1.5rem;
}

.education ul li::before, .activities ul li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.education ul li:last-child, .activities ul li:last-child {
    border-bottom: none;
}

.activities p {
    color: #555;
    line-height: 1.8;
    margin: 1rem 0 1.5rem 0;
}

#ab {
    margin-top: 1rem;
}
.container:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
}

/* @media (max-width: 1100px) {
    #pics {
        grid-template-columns: 1fr;
    }
} */

@media (max-width: 768px) {
    #woxy, #eagle, #pics {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .aboutMe, .education, .activities, .dog-cont {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    #heading {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .container h4,
    .container .date {
        width: 100%;
    }
    
    .date {
        margin-left: 0;
        text-align: center;
    }
}

@media (max-width: 480px) {
    #woxy, #eagle, #pics {
        grid-template-columns: 1fr;
    }
    
    #roxy, #roxy2, #roxy3, #eagle_pic, #eagle_pic2, #mission_pic, #mission_pic2, #mission_pic3 {
        width: 100%;
        max-height: 400px;
        min-height: 150px;
    }
    
    #woxy figure, #eagle figure, #pics figure {
        min-height: 200px;
    }
}

@media (prefers-color-scheme: dark) {
    .aboutMe, .education, .activities, .container, .dog-cont {
        background: #2a2a2a;
        color: #e0e0e0;
    }
    
    .aboutMe p, .activities p, .education ul li, .activities ul li {
        color: #d0d0d0;
    }
    
    h4 {
        color: #000000;
    }

    #dog h4 {
        color: #667eea;
    }
    
    #woxy figure, #eagle figure, #pics figure {
        background: #2a2a2a;
    }
    
    #roxy, #roxy2, #roxy3, #eagle_pic, #eagle_pic2, #mission_pic, #mission_pic2, #mission_pic3 {
        background: #1a1a1a;
    }
    
    figcaption {
        color: #b0b0b0;
    }
    
    .education ul li, .activities ul li {
        border-bottom-color: #3a3a3a;
    }

    .aboutMe, .education, .activities, .dog-cont {
        background: #2a2a2a;
        color: #e0e0e0;
    }

    .info-card {
        background: #2a2a2a;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7);
    }

    .container {
        background: #667eea;
        padding: 1.5rem;
        border-radius: 12px;
        margin: 1.5rem 0;
        border: 1px solid #e0e0f5;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        color: #000000;
    }
    .date {
        color: #000000;
    }
}