/* CSS Variables Defined in style.css */

/* UTILITY */
.pci-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 4px;
}
.btn-primary {
    background-color: var(--accent);
    color: var(--white);
}
.btn-primary:hover {
    background-color: var(--accent-hover);
    color: var(--white);
}
.btn-outline-white {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}
.btn-outline-white:hover {
    background-color: rgba(255,255,255,0.1);
}

/* HERO SECTION */
.pci-hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: -100px; /* Offset for header transparency if needed */
}

.pci-hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transform: scale(1);
    /* GSAP or Intersection Observer will handle the zoom via inline style or CSS transition */
    transition: transform 0.1s linear; 
}

.pci-hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.72) 100%);
    z-index: 2;
}

.pci-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 1.5rem;
    margin-top: 5rem;
}

.pci-hero-label {
    display: inline-block;
    color: var(--accent);
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.pci-hero-heading {
    color: var(--white);
    font-size: clamp(3rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.pci-hero-body {
    font-size: 1.125rem;
    line-height: 1.6;
    max-width: 580px;
    margin: 0 auto 2.5rem;
    color: var(--background);
}

.pci-hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* TICKER */
.pci-ticker-wrap {
    display: flex;
    background-color: var(--primary-dark);
    color: var(--white);
    overflow: hidden;
    height: 48px;
    align-items: center;
}
.pci-ticker-label {
    background-color: var(--accent);
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 2;
}
.pci-ticker-track {
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}
.pci-ticker-content {
    display: inline-block;
    padding-left: 100%;
    animation: pci-ticker 25s linear infinite;
}
.pci-ticker-content span { margin: 0 1rem; }
@keyframes pci-ticker {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* HOME LAYOUT */
.pci-home-container {
    max-width: var(--container-max);
    margin: 4rem auto;
    padding: 0 1.5rem;
}
.pci-home-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3rem;
}

/* FEATURED STORY */
.pci-featured-story {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: center;
}
.pci-featured-image {
    width: 60%;
    height: 100%;
}
.pci-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}
.pci-featured-content {
    width: 40%;
    border-top: 4px solid var(--accent);
    padding-top: 1.5rem;
}
.pci-cat-tag {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.5rem;
}
.pci-featured-title {
    font-size: 2.25rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.pci-featured-title a { color: var(--primary-dark); text-decoration: none; }
.pci-featured-excerpt {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}
.pci-post-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.pci-read-more {
    font-weight: 700;
    color: var(--primary-dark);
    text-decoration: none;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 2px;
}

/* ARTICLE GRID */
.pci-article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.pci-card {
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border-radius: 4px;
    background-color: transparent;
}
.pci-card:hover {
    transform: translateY(-4px);
}
.pci-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 1rem;
}
.pci-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pci-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.pci-card-title a { color: var(--primary-dark); text-decoration: none; transition: color 0.15s; }
.pci-card:hover .pci-card-title a { color: var(--accent); }
.pci-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* NATIVE AD OVERRIDES */
.pci-native-ad-wrapper.full-width {
    grid-column: 1 / -1;
    background-color: #ededed;
    padding: 2rem;
    border-radius: 4px;
    position: relative;
    border-top: 4px solid var(--text-muted);
}
.pci-ad-label {
    position: absolute;
    top: 1rem; right: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

/* SIDEBAR */
.pci-home-sidebar {
    position: sticky;
    top: 30px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}
.pci-widget h4.widget-title {
    font-size: 1.2rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}
.pci-numbered-list {
    list-style: none;
    padding: 0;
    counter-reset: pci-counter;
}
.pci-numbered-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-weight: 500;
}
.pci-numbered-list li::before {
    counter-increment: pci-counter;
    content: counter(pci-counter);
    position: absolute;
    left: 0;
    top: -2px;
    color: var(--accent);
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-heading);
}
.pci-numbered-list a { color: var(--primary-dark); text-decoration: none; }
.pci-numbered-list a:hover { color: var(--accent); }

/* MISSION STRIP */
.pci-mission-strip {
    background-color: var(--primary-dark);
    padding: 6rem 0;
    color: var(--white);
    margin: 4rem 0;
}
.pci-mission-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}
.pci-mission-col { text-align: center; }
.pci-icon-box {
    width: 48px; height: 48px;
    margin: 0 auto 1.5rem;
    border: 2px solid var(--accent);
    border-radius: 50%;
}

/* EVENTS PREVIEW */
.pci-events-preview {
    background-color: var(--background);
    padding: 4rem 0;
}
.pci-events-row {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}
.pci-event-card {
    min-width: 280px;
    flex: 1;
    background-color: var(--white);
    border-top: 4px solid var(--accent);
    padding: 1.5rem;
    border-radius: 4px;
    display: flex;
    gap: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.pci-event-datebox {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--deep-rust);
}
.pci-event-datebox .day { font-size: 2rem; font-weight: 700; line-height: 1; }
.pci-event-datebox .mon { font-weight: 700; font-size: 0.85rem; text-transform: uppercase; }

/* NEWSLETTER STRIP */
.pci-newsletter-strip {
    background-color: var(--accent);
    padding: 4rem 0;
}
.pci-newsletter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}
.pci-placeholder-form {
    display: flex;
    width: 100%;
    min-width: 400px;
}
.pci-placeholder-form input {
    flex-grow: 1;
    padding: 1rem;
    border: none;
    border-radius: 4px 0 0 4px;
    font-family: var(--font-body);
}
.pci-placeholder-form button {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 0 2rem;
    border: none;
    border-radius: 0 4px 4px 0;
    font-weight: 700;
    cursor: pointer;
}

/* REVEAL ANIMATIONS */
.reveal-item {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .pci-home-grid { grid-template-columns: 1fr; }
    .pci-featured-story { flex-direction: column; }
    .pci-featured-image, .pci-featured-content { width: 100%; }
    .pci-mission-cols { grid-template-columns: 1fr; }
    .pci-newsletter-inner { flex-direction: column; text-align: center; }
    .pci-article-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .pci-article-grid { grid-template-columns: 1fr; }
    .pci-placeholder-form { min-width: 100%; flex-direction: column; gap: 1rem; }
    .pci-placeholder-form input, .pci-placeholder-form button { border-radius: 4px; padding: 1rem; }
}
