/*
Theme Name: AOII Inspired Theme
Theme URI: https://example.com/aoii-theme
Author: Your Name
Author URI: https://example.com
Description: A WordPress theme inspired by the Alpha Omicron Pi website design
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aoii-theme
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
    --aoii-red: #c8102e;
    --aoii-cardinal: #8c1515;
    --aoii-white: #ffffff;
    --aoii-light-gray: #f5f5f5;
    --aoii-gray: #666666;
    --aoii-dark: #333333;
    --font-primary: 'Playfair Display', Georgia, serif;
    --font-secondary: 'Lato', 'Helvetica Neue', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--aoii-dark);
    background-color: var(--aoii-white);
}

body.menu-open {
    overflow: hidden;
}

body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

a {
    color: var(--aoii-red);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--aoii-cardinal);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background-color: var(--aoii-white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Top Utility Bar */
.top-bar {
    background-color: var(--aoii-white);
    border-bottom: 1px solid #e5e5e5;
    padding: 8px 0;
}

.top-bar .container {
    display: flex;
    justify-content: flex-end;
}

.top-bar-nav {
    display: flex;
}

.top-bar-menu {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.top-bar-menu li {
    margin: 0;
}

.top-bar-menu a {
    color: var(--aoii-red);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.3s ease;
}

.top-bar-menu a:hover {
    opacity: 0.7;
}

.top-bar-menu i {
    font-size: 16px;
}

/* Main Header */
.header-main {
    padding: 20px 0 0;
    background-color: var(--aoii-white);
}

.header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
}

.header-nav-row {
    border-top: 1px solid #e5e5e5;
    padding-top: 15px;
    padding-bottom: 15px;
}

/* Site Branding / Logo */
.site-branding {
    flex-shrink: 0;
}

.site-branding a {
    text-decoration: none;
}

.site-title-group {
    display: flex;
    flex-direction: column;
}

.site-title {
    font-family: var(--font-primary);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--aoii-red);
    margin: 0;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.site-tagline {
    font-family: 'Dancing Script', cursive;
    font-size: 1.4rem;
    color: var(--aoii-red);
    margin: 8px 0 0 0;
    font-weight: 400;
    font-style: italic;
}

.custom-logo-link {
    display: block;
}

.custom-logo-link img {
    max-height: 100px;
    width: auto;
}

/* Main Navigation */
.main-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.primary-menu {
    list-style: none;
    display: flex;
    gap: 35px;
    margin: 0;
    padding: 0;
    align-items: center;
    flex: 1;
}

.primary-menu > li {
    position: relative;
    margin: 0;
}

.primary-menu > li > a {
    color: var(--aoii-red);
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 0;
    display: block;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.primary-menu > li > a:hover {
    opacity: 0.7;
    color: var(--aoii-red);
}

/* Dropdown Menu Styles */
.primary-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--aoii-white);
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
    z-index: 1000;
    list-style: none;
    margin: 0;
}

.primary-menu li:hover > .sub-menu {
    display: flex;
}

.primary-menu .sub-menu li {
    margin: 0;
}

.primary-menu .sub-menu a {
    padding: 12px 20px;
    font-size: 13px;
    text-transform: none;
    font-weight: 600;
    color: var(--aoii-dark);
    display: block;
    border-bottom: 1px solid #f0f0f0;
    letter-spacing: 0.3px;
}

.primary-menu .sub-menu a:hover {
    background-color: var(--aoii-light-gray);
    color: var(--aoii-red);
}

.primary-menu .sub-menu li:last-child a {
    border-bottom: none;
}

/* Search Form in Header */
.header-search {
    flex-shrink: 0;
}

.header-search .search-form {
    display: flex;
    align-items: center;
    background-color: var(--aoii-light-gray);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.header-search .search-field {
    border: none;
    background: transparent;
    padding: 10px 15px;
    font-size: 14px;
    outline: none;
    min-width: 200px;
}

.header-search .search-submit {
    background-color: var(--aoii-red);
    border: none;
    color: white;
    padding: 10px 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.header-search .search-submit:hover {
    background-color: var(--aoii-cardinal);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--aoii-red);
    display: block;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--aoii-white);
    max-width: 800px;
    padding: 0 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 400;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.8;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--aoii-red);
    color: var(--aoii-white);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 2px solid var(--aoii-red);
}

.btn:hover {
    background-color: var(--aoii-cardinal);
    border-color: var(--aoii-cardinal);
    color: var(--aoii-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.4);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--aoii-white);
    color: var(--aoii-white);
}

.btn-outline:hover {
    background-color: var(--aoii-white);
    color: var(--aoii-red);
}

/* Content Cards Section */
.content-cards {
    padding: 80px 0;
    background-color: var(--aoii-light-gray);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.card {
    background-color: var(--aoii-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.card-content {
    padding: 30px;
}

.card-content h3 {
    color: var(--aoii-red);
    margin-bottom: 15px;
}

.card-content p {
    color: var(--aoii-gray);
    margin-bottom: 20px;
}

/* Ends Section */
.ends-section {
    padding: 80px 0;
    background-color: var(--aoii-white);
    text-align: center;
}

.ends-section h2 {
    color: var(--aoii-red);
    margin-bottom: 20px;
}

.ends-section > p {
    max-width: 800px;
    margin: 0 auto 50px;
    color: var(--aoii-gray);
    font-size: 1.1rem;
}

.ends-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.end-tab {
    padding: 12px 30px;
    background-color: var(--aoii-light-gray);
    color: var(--aoii-dark);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    transition: all 0.3s ease;
}

.end-tab:hover,
.end-tab.active {
    background-color: var(--aoii-red);
    color: var(--aoii-white);
}

/* Carousel Section */
.carousel-section {
    padding: 80px 0;
    background-color: var(--aoii-light-gray);
}

.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
}

.carousel-item {
    flex: 0 0 calc(33.333% - 20px);
    background-color: var(--aoii-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.carousel-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.carousel-item-content {
    padding: 30px;
}

.carousel-item h3 {
    color: var(--aoii-red);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--aoii-red);
    color: var(--aoii-white);
    border: none;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background-color: var(--aoii-cardinal);
    transform: scale(1.1);
}

/* Features Grid */
.features-section {
    padding: 80px 0;
    background-color: var(--aoii-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-top: 40px;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: var(--aoii-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--aoii-white);
    font-size: 36px;
}

.feature-item h3 {
    color: var(--aoii-red);
    margin-bottom: 15px;
}

.feature-item p {
    color: var(--aoii-gray);
}

/* Footer */
.site-footer {
    background-color: var(--aoii-dark);
    color: var(--aoii-white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--aoii-white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ccc;
    font-size: 14px;
}

.footer-section a:hover {
    color: var(--aoii-white);
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 60px;
    filter: brightness(0) invert(1);
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: #999;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }
    
    .header-nav-row {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--aoii-white);
        padding: 80px 30px 30px;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        overflow-y: auto;
        z-index: 999;
        border-top: none;
    }
    
    .header-nav-row.active {
        right: 0;
    }
    
    .main-navigation {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .primary-menu {
        flex-direction: column;
        width: 100%;
        gap: 0;
        align-items: stretch;
    }
    
    .primary-menu > li {
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
    }
    
    .primary-menu > li > a {
        padding: 15px 0;
        width: 100%;
    }
    
    .primary-menu .sub-menu {
        position: static;
        box-shadow: none;
        background-color: var(--aoii-light-gray);
        padding: 0;
        width: 100%;
    }
    
    .header-search {
        width: 100%;
        margin-top: 20px;
    }
    
    .header-search .search-field {
        width: 100%;
        min-width: auto;
    }
    
    .top-bar-menu {
        gap: 15px;
        font-size: 11px;
    }
    
    .top-bar-menu a span {
        display: none;
    }
    
    .site-title {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    .site-tagline {
        font-size: 1rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .carousel-item {
        flex: 0 0 100%;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }
    
    .hero-section {
        height: 400px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .content-cards,
    .ends-section,
    .carousel-section,
    .features-section {
        padding: 50px 0;
    }
}

/* Blog/Posts Styles */
.blog-posts {
    padding: 60px 20px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.post-item {
    background-color: var(--aoii-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.post-thumbnail img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.post-content {
    padding: 30px;
}

.post-title {
    margin-bottom: 15px;
}

.post-title a {
    color: var(--aoii-red);
}

.post-title a:hover {
    color: var(--aoii-cardinal);
}

.post-meta {
    color: var(--aoii-gray);
    font-size: 14px;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
}

.post-excerpt {
    color: var(--aoii-gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination .page-numbers {
    padding: 10px 18px;
    background-color: var(--aoii-light-gray);
    color: var(--aoii-dark);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background-color: var(--aoii-red);
    color: var(--aoii-white);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Entry Content Styles */
.entry-content {
    color: var(--aoii-dark);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: var(--aoii-red);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-content img {
    border-radius: 8px;
    margin: 2rem 0;
}

.entry-content a {
    color: var(--aoii-red);
    text-decoration: underline;
}

.entry-content a:hover {
    color: var(--aoii-cardinal);
}

.entry-content blockquote {
    border-left: 4px solid var(--aoii-red);
    padding-left: 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--aoii-gray);
}

/* No Posts Message */
.no-posts {
    padding: 100px 20px;
    text-align: center;
}

.no-posts h2 {
    color: var(--aoii-red);
    margin-bottom: 20px;
}

/* WordPress Core Alignment Classes */
.alignleft {
    float: left;
    margin: 0 2rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1rem 2rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Additional Responsive Adjustments */
@media (max-width: 480px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        padding: 12px 30px;
        font-size: 14px;
    }
    
    .ends-tabs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .end-tab {
        width: 100%;
    }
}
