/* --- Main Layout & Components --- */

/* Header & Navigation */
.site-header {
    background-color: var(--secondary-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.site-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title a {
    font-family: var(--heading-font);
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.main-navigation {
    display: flex;
    align-items: center;
}

#primary-menu {
    display: flex;
    margin-right: 30px;
}

#primary-menu li {
    margin-left: 25px;
}

#primary-menu a {
    color: var(--white);
    font-weight: 400;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#primary-menu a:hover {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

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

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 31, 63, 0.8), rgba(0, 31, 63, 0.8)), url('../img/hero-bg.jpg') no-repeat center center/cover;
    height: 80vh;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
}

.hero-inner {
    max-width: 800px;
}

.hero-subtitle {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--heading-font);
    font-size: 64px;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-title span {
    color: var(--primary-color);
    font-style: italic;
}

.hero-description {
    font-size: 18px;
    margin-bottom: 35px;
    opacity: 0.9;
}

.hero-actions .btn {
    margin: 0 10px;
}

/* Sections */
.section-padding {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-family: var(--heading-font);
    font-size: 36px;
    color: var(--secondary-color);
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Post Cards */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.post-card {
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-10px);
}

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

.post-content {
    padding: 25px;
}

.entry-title {
    font-family: var(--heading-font);
    font-size: 22px;
    margin-bottom: 15px;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-block;
    margin-top: 15px;
}

/* Footer */
.site-footer {
    background-color: #00050b;
    color: #a0a0a0;
    font-size: 14px;
}

.site-footer a {
    color: #a0a0a0;
}

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

.site-footer .highlight-blue {
    color: #0088cc !important;
    font-weight: 600;
}

/* Footer Top */
.footer-top {
    padding: 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.footer-top-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-top-icon {
    color: #0088cc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-top-content {
    display: flex;
    flex-direction: column;
}

.footer-top-label {
    font-size: 12px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 2px;
}

.footer-top-value {
    font-size: 16px;
    letter-spacing: 0.5px;
}

/* Footer Main */
.footer-main {
    padding: 60px 0 40px;
}

.footer-main-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1.2fr 1fr 0.8fr;
    gap: 40px;
}

.footer-column-title {
    color: var(--white);
    font-family: var(--body-font);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.footer-logo-img {
    max-height: 60px;
    width: auto;
}

.company-name {
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.company-info p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.company-info svg {
    margin-top: 3px;
    flex-shrink: 0;
    color: #888;
}

.footer-list li {
    margin-bottom: 12px;
}

.footer-list a {
    transition: var(--transition);
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-main-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .branding {
        grid-column: span 3;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .footer-top-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-main-grid {
        grid-template-columns: 1fr;
    }
    
    .branding {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    .footer-top-grid {
        grid-template-columns: 1fr;
    }
}

/* Fixed Info Tab */
.fixed-tab-right {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: #be1e2d; /* Red color from sample */
    color: var(--white);
    padding: 15px 8px;
    z-index: 9999;
    border-radius: 4px 0 0 4px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
}

.fixed-tab-right a {
    color: var(--white);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
}

.fixed-tab-right:hover {
    padding-right: 15px;
    transition: var(--transition);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 40px;
    }
    
    #primary-menu {
        display: none; /* Add JS later for mobile menu */
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-social {
        margin-top: 20px;
    }
}
