/* Pettis Co main styles */
/* Color used: #000000, #8E1616, #E8C999, #F8EEDF */
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Verdana, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #000000;
    background-color: #F8EEDF;
}

/* Default font for all headers */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Meow Script', cursive;
    font-weight: normal;
}

/* Grid Container */
.container {
    display: grid;
    grid-template-columns: 1fr 300px;
    grid-template-rows: auto 1fr auto auto;
    grid-template-areas: 
        "header header"
        "content sidebar"
        "flex-container flex-container"
        "footer footer";
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
    padding: 20px;
}

/* Header Styles */
.header {
    grid-area: header;
    background: linear-gradient(135deg, #000000 0%, #000000 30%, #8E1616 100%);
    color: #F8EEDF;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    position: relative;
    min-height: 120px;
}

.mogw-logo {
    position: absolute;
    left: 5px;
    top: 1px;
}

.usgenweb-logo {
    position: absolute;
    right: 5px;
    top: 1px;
    max-height: 100px;
    width: auto;
}

.header-text {
    position: absolute;
    left: 170px;
    top: 10px;
    text-align: left;
}

.header h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 2px;
}

.tagline {
    font-family: 'Meow Script', cursive;
    font-size: 1.5rem;
    color: #F8EEDF;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    margin-top: 0px;
    left: 220px;
}

/* Main Content Styles */
.content {
    grid-area: content;
    background-color: #F8EEDF;
    padding: 30px;
    border-radius: 8px;
    color: #000000;
    border: 2px solid #E8C999;
}

.content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #8E1616;
}

.content p.breadcrumb { 
    font-size: smaller; 
    margin-top: 0 !important; 
}

.content p.back-to-top, 
.content p.source { 
    font-size: smaller; 
    text-align: right; 
    margin-right: 10px;
}
    
.content p.footnote, 
.photo-description p.footnote { 
    font-size: smaller; 
    text-align: left; 
}

/* Make h3 in content area use regular font */
.content h3 {
    font-family: Verdana, Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: #8E1616;
    margin-top: 25px;
    margin-bottom: 15px;
}

.content p {
    margin-bottom: 15px;
}

sup { 
    font-family: Verdana, Arial, sans-serif;
    font-size: smaller;
    color: #8E1616; 
}

/* Image Float Styles with Shadow */
.float-left {
    float: left;
    margin: 0 20px 15px 0;
    max-width: 300px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid #E8C999;
}

.float-right {
    float: right;
    margin: 0 0 15px 20px;
    max-width: 300px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid #E8C999;
}

/* Optional: Add hover effect for interactive shadow */
.float-left:hover,
.float-right:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Clearfix utility class to clear floats when needed */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Dropcap Styles */
.dropcap::first-letter {
    font-family: 'Meow Script', cursive;
    font-size: 4em;
    line-height: 0.8;
    float: left;
    margin: 0.1em 0.1em 0 0;
    color: #8E1616;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Sidebar Styles */
.sidebar {
    grid-area: sidebar;
    background-color: #E8C999;
    padding: 30px;
    border-radius: 8px;
    color: #000000;
}

.sidebar h2 {
    color: #000000;
    font-weight: bold;
    font-size: 2.2rem !important;  /* Reduced from 3.5rem */
    margin-bottom: 25px;
    /* h2 will use script font from global rule */
}

.sidebar h3 {
    color: #000000;
    font-weight: 600;
    font-size: 1.8rem !important;  /* Reduced from 2.1rem */
    margin-bottom: 10px;
}

.sidebar-item {
    margin-bottom: 20px;
}

.sidebar-item td.pad { 
    padding-left: 15px !important;
    padding-right: 10px !important; 
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 8px;
}

.sidebar a {
    color: #000000;
    text-decoration: none;
    font-weight: normal;
}

.sidebar a:hover {
    color: #8E1616;
    text-decoration: underline;
}

.sidebar p.small { 
    font-size: smaller; 
    margin-top: 0; 
}

/* Flexbox Container */
.flex-container {
    grid-area: flex-container;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

/* Flex Items */
.flex-item {
    flex: 1 1 calc(25% - 15px);
    min-width: 250px;
    background-color: #F8EEDF;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.flex-item:nth-child(4n+1) {
    background-color: #000000;
    color: #F8EEDF;
}
.flex-item:nth-child(4n+1) p a {
	color: lightblue;
}

.flex-item:nth-child(4n+2) {
    background-color: #8E1616;
    color: #F8EEDF;
}

.flex-item:nth-child(4n+3) {
    background-color: #F8EEDF;
    color: #000000;
    border: 2px solid #8E1616;
}

.flex-item:nth-child(4n+4) {
    background-color: #E8C999;
    color: #000000;
}

.flex-item:nth-child(12) h3 {
    margin-bottom: -5px !important;
}

.flex-item:nth-child(12) p {
    margin-top: 0 !important;
}

.flex-item h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.flex-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px #8E1616;
}

.flex-item p.smaller { 
    font-size: smaller; 
    margin-top: 0; 
}

.flex-item.coordinators {
    display: block !important;
}

.flex-item.coordinators h3 {
    margin-bottom: 2px !important;
}

.flex-item.coordinators p.smaller {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Read More Button Styles */
.read-more {
    display: inline-block;
    margin-top: auto;
    padding: 8px 16px;
    background-color: #F8EEDF;
    border: 2px solid #8E1616;
    color: #8E1616;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.8em;
    transition: all 0.3s ease;
    align-self: center;
}

.read-more:hover {
    background-color: #8E1616;
    color: #F8EEDF;
}

.read-more-btn {
    background-color: #F8EEDF;
    border: 2px solid #8E1616;
    color: #8E1616;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.8em;
    margin-top: auto;
    transition: all 0.3s ease;
    align-self: center;
}

.read-more-btn:hover {
    background-color: #8E1616;
    color: #F8EEDF;
}

/* Page footer info - last modified and back to top */
.page-footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #E8C999;
    font-size: smaller;
}

.last-modified {
    color: #666;
    font-style: italic;
}

.back-to-top a {
    color: #8E1616;
    text-decoration: none;
    font-weight: bold;
}

.back-to-top a:hover {
    text-decoration: underline;
}

/* Footer Styles */
footer {
    grid-area: footer;
    background: linear-gradient(0deg, #8E1616 0%, #F8EEDF 40%);
    width: 100%;
    margin: 0;
    clear: both;
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    color: #000000;
}

footer p { 
    padding: 10px 0;
}

footer p a { 
    padding: 0 10px 0 5px; 
    color: #000000;
    text-decoration: none;
} 

footer p a:hover {
    color: #8E1616;
    text-decoration: underline;
}

footer p.small, 
footer span { 
    padding: 0; 
    font-size: small; 
}

footer span.small {
    font-size: small;
}

/* Responsive Design */

@media screen and (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "header"
            "content"
            "sidebar"
            "flex-container"
            "footer";
        padding: 10px;
        gap: 15px;
    }
    
    .header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        min-height: auto;
        align-items: center;
    }
    
    .mogw-logo,
    .usgenweb-logo {
        position: static;
        margin: 5px;
    }
    
    .header-text {
        position: static;
        margin-top: 15px;
        text-align: center;
    }
    
    .header h1 {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.2rem;
        margin-top: 10px;
    }
    
    .content h2 {
        font-size: 2rem;
    }
    
    .sidebar h2 {
        font-size: 2.8rem !important;
    }
    
    .sidebar h3 {
        font-size: 1rem !important;
        font-family: Verdana, Arial, sans-serif !important;
    }
    
    .flex-item {
        flex: 1 1 calc(50% - 10px);
        min-width: 200px;
    }
    
    .flex-item h3 {
        font-size: 1.8rem;
        margin-bottom: 10px;
        font-weight: bold;
        letter-spacing: 0.05em;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 5px;
        gap: 10px;
    }
    
    .header,
    .content,
    .sidebar,
    .flex-item,
    footer {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .content h2 {
        font-size: 1.8rem;
    }
    
    .sidebar h2 {
        font-size: 2.2rem !important;
    }
    
    .sidebar h3 {
        font-size: 1.5rem !important;
        font-family: Verdana, Arial, sans-serif !important;
    }
    
    .flex-item {
        flex: 1 1 100%;
        min-width: auto;
    }
    
    .flex-item h3 {
        font-size: 1.4rem;
    }
    
    .page-footer-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
