/* =========================================
    ORIENTATION PAGE STYLES
    Matches home.php structure with custom pink theme
    ========================================= */

/* Page background after the hero (orange) */
main { background-color: #ffeb9b; }

/* =========================================
   Orientation page - header & footer overrides
   These rules apply only when `css/orientation.css` is loaded
   and ensure header/footer use #6CA651 with readable text
   ========================================= */

/* Header (navbar) - green background, white text */
.sereth-nav {
    background-color: #6CA651 !important;
    box-shadow: none !important;
}
.sereth-nav .navbar-brand,
.sereth-nav .nav-link,
.sereth-nav .navbar-toggler .fas {
    color: #000000 !important;
}

/* CTA button in navbar - keep visible */
.sereth-nav .btn-nav-cta {
    background-color: rgba(255,255,255,0.08) !important;
    color: #000000 !important;
    border: 1px solid rgba(255,255,255,0.18) !important;
}

/* Dropdown menus: use white background with dark text for readability */
.sereth-nav .dropdown-menu {
    background: #ffffff !important;
}
.sereth-nav .dropdown-item {
    color: #111 !important;
}
.sereth-nav .dropdown-item:hover {
    background: #f1f1f1 !important;
    color: #000 !important;
}

/* Footer - green background and white text */
.sereth-footer {
    background-color: #6CA651 !important;
    color: #000000 !important;
}
.sereth-footer a,
.sereth-footer .footer-link,
.sereth-footer .footer-heading {
    color: #000000 !important;
}
.sereth-footer a:hover {
    color: rgba(0,0,0,0.85) !important;
    text-decoration: underline !important;
}

/* Ensure the very last footer line (footer-bottom paragraph) appears black */
.sereth-footer .footer-bottom p {
    color: #000000 !important;
}



/* =========================================
    1. HERO SECTION
    ========================================= */
.orientation-hero {
    background-color: #6CA651;
    background-image: url('../images/background_oreintation.png');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    min-height: 105vh; /* slightly taller to extend the background image */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: #fff;
}

.orientation-hero .hero-badge {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 25px;
    font-weight: 600;
    text-transform: uppercase;
}

.orientation-hero h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff;
    font-family: var(--font-serif);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.orientation-hero .hero-subtext {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* --- HERO CTA (black line + text + orange button) --- */
.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 10px;
    max-width: 720px;
}

.orientation-hero .hero-content-wrapper-center {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding-left: 40px;
}

.hero-cta .black-line {
    width: 280px;
    height: 10px;
    background: #000;
    border-radius: 3px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

.hero-cta .cta-text {
    color: #000;
    font-size: 1.15rem;
    font-weight: 700;
    font-family: Helvetica, Arial, sans-serif;
    text-align: left;
}

.btn-orange {
    display: inline-block;
    padding: 12px 28px;
    background: #FF9800;
    color: #000;
    border-radius: 4px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(255,152,0,0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    border: 3px solid #000;
    font-family: Helvetica, Arial, sans-serif;
}

.btn-orange:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(255,152,0,0.22);
}

/* =========================================
   2. HERO BUTTONS
   ========================================= */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-block;
    padding: 16px 45px;
    background-color: #fff;
    border: 2px solid #fff;
    border-radius: 50px;
    color: #E991B4;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-hero-primary:hover {
    background-color: #2A4068;
    color: #fff;
    border-color: #2A4068;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.btn-hero-outline {
    display: inline-block;
    padding: 16px 45px;
    background-color: transparent;
    border: 2px solid #fff;
    border-radius: 50px;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-hero-outline:hover {
    background-color: #fff;
    color: #E991B4;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

/* =========================================
   3. NEWS TICKER SECTION
   ========================================= */
.news-section {
    background-color: transparent;
    padding: 0;
    overflow: hidden;
}

.news-wrapper {
    display: flex;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.news-label {
    background-color: #2A4068;
    color: #fff;
    padding: 18px 30px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
}

.news-ticker-container {
    flex: 1;
    overflow: hidden;
    padding: 0 20px;
}

.news-list {
    display: flex;
    animation: ticker 30s linear infinite;
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-list:hover {
    animation-play-state: paused;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.news-item {
    display: flex;
    align-items: center;
    white-space: nowrap;
    padding: 15px 40px;
}

.news-date {
    background-color: #2A4068;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-right: 15px;
    letter-spacing: 1px;
}

.news-item a {
    color: #2A4068;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.news-item a:hover {
    color: #000;
    text-decoration: underline;
}

/* =========================================
   4. MISSION SECTION
   ========================================= */
.mission-section {
    padding: 4rem 0 2rem;
    text-align: left;
    background-color: transparent;
}

.mission-text {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    line-height: 1.3;
    color: #eb7a08;
    max-width: 900px;
    margin-bottom: 1rem;
}

.mission-text .italic-accent {
    font-style: italic;
    color: #010101;
}

.mission-sub {
    font-size: 1rem;
    color: #000000;
    margin-top: 1rem;
}

/* =========================================
   Recent News Section with Carousel
   ========================================= */
.recent-news-section {
    padding: 4rem 0;
    background-color: transparent;
}

.recent-news-section .section-heading-centered {
    margin-bottom: 3rem;
    color: #eb7a08;
    font-size: 2rem;
}

.news-carousel-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    padding: 2rem 0;
    min-height: 400px;
}

.news-carousel-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
}

.news-card-item {
    position: absolute;
    width: 320px;
    height: 350px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.6;
    transform: rotateY(60deg) translateX(100px) scale(0.8);
    z-index: 1;
    background: linear-gradient(135deg, #f4f0c9, #f9f5dd);
    padding: 30px;
    box-sizing: border-box;
}

/* Center item (active) - Larger and highlighted */
.news-card-item.active {
    width: 380px;
    height: 350px;
    transform: rotateY(0deg) translateX(0px) scale(1);
    opacity: 1;
    z-index: 50;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

/* Previous item (left) */
.news-card-item.prev {
    transform: rotateY(-60deg) translateX(-100px) scale(0.8);
    opacity: 0.6;
    z-index: 10;
}

/* Next item (right) */
.news-card-item.next {
    transform: rotateY(60deg) translateX(100px) scale(0.8);
    opacity: 0.6;
    z-index: 10;
}

/* Hidden items */
.news-card-item.hidden {
    opacity: 0;
    z-index: 0;
}

.news-card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 12px;
}

.news-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #6CA651;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #010101;
    margin: 0;
    line-height: 1.4;
}

.news-date {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-date i {
    color: #6CA651;
}

.news-description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
    margin: 0;
    flex-grow: 1;
}

.news-link {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 16px;
    background-color: #6CA651;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.news-link:hover {
    background-color: #5a9444;
}

.news-link i {
    margin-left: 6px;
}

/* =========================================
   5. RESOURCES GRID (Image-style cards)
   ========================================= */
.resources-grid-section {
    padding: 2rem 0 5rem;
    background-color: transparent;
}

.grid-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Card container - white with black border, rounded corners */
.resource-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background-color: #f4f0c9;
    border: 3px solid #000;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.resource-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    text-decoration: none;
}

/* Card header - pink area with icon and black line */
.card-visual {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    border-radius: 0;
    margin-bottom: 0;
}

/* Black line through the icon */
.card-visual::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: #000;
    transform: translateY(-50%);
    z-index: 0;
}

.card-visual i {
    position: relative;
    z-index: 1;
    background: inherit;
    padding: 0 12px;
}

/* All pink headers to match image */
.visual-pink { 
    background-color: #BBCB2E; 
    color: #000;
}
.visual-yellow { 
    background-color: #BBCB2E; 
    color: #000;
}
.visual-green { 
    background-color: #BBCB2E; 
    color: #000;
}
.visual-purple { 
    background-color: #BBCB2E; 
    color: #000;
}
.visual-orange { 
    background-color: #BBCB2E; 
    color: #000;
}
.visual-blue { 
    background-color: #BBCB2E; 
    color: #000;
}

/* Hide the meta text */
.card-meta {
    display: none;
}

/* Card title - bold, black, Helvetica */
.card-title {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 20px 20px 12px;
    color: #000;
    line-height: 1.2;
}

/* Card description */
.card-desc {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 0.9rem;
    color: #333;
    margin: 0 20px 20px;
    line-height: 1.6;
    flex-grow: 1;
}

/* Hide read more link */
.read-more {
    display: none;
}

.resource-card:hover .read-more {
    color: #2A4068;
}

/* =========================================
   6. KEY DATES SECTION
   ========================================= */
.key-dates-section {
    padding: 5rem 0;
    background: transparent;
}

.section-heading-centered {
    text-align: center;
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 3rem;
}

.dates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.date-card {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.date-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.18);
}

.date-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #F9C74F 0%, #F48C06 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: #fff;
    box-shadow: 0 10px 30px rgba(249, 199, 79, 0.3);
}

.date-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.date-day {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: #fff;
    font-weight: 600;
}

.date-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.date-time {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

/* =========================================
   7. RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 1100px) {
    .grid-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .orientation-hero h1 {
        font-size: 3rem;
    }
    
    .orientation-hero .hero-subtext {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-hero-primary,
    .btn-hero-outline {
        width: 250px;
        text-align: center;
    }
    
    .news-label {
        display: none;
    }
    
    .mission-text {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .mission-sub {
        text-align: center;
    }
    
    .grid-row {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    
    .dates-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    
    .section-heading-centered {
        font-size: 1.8rem;
    }
    
    .date-day {
        font-size: 1.5rem;
    }
    
    .news-carousel-wrapper {
        padding: 0 40px;
    }
    
    .news-card-item {
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .orientation-hero h1 {
        font-size: 2.5rem;
    }
    
    .orientation-hero .hero-badge {
        font-size: 0.7rem;
        letter-spacing: 2px;
    }
    
    .mission-text {
        font-size: 1.5rem;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
}

/* =========================================
   NAVBAR OVERRIDES (orientation page only)
   Makes navbar black with white text; on hover items invert to white background + black text
========================================= */
.sereth-nav {
    background-color: #000 !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25) !important;
}

.sereth-nav .navbar-brand,
.sereth-nav .brand-text,
.sereth-nav .nav-link {
    color: #fff !important;
}

.sereth-nav .nav-link {
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
    border-radius: 6px;
}

.sereth-nav .nav-link:hover,
.sereth-nav .nav-link:focus {
    background: #fff !important;
    color: #000 !important;
    transform: translateY(-2px);
}

.sereth-nav .navbar-toggler .fa-bars {
    color: #fff !important;
}

.sereth-nav .btn-nav-cta {
    background: transparent !important;
    border-color: #fff !important;
    color: #fff !important;
}

.sereth-nav .btn-nav-cta:hover {
    background: #fff !important;
    color: #000 !important;
}

.sereth-nav .dropdown-menu {
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
}

.sereth-nav .dropdown-item {
    color: #2A4068 !important;
}

.sereth-nav .dropdown-item:hover {
    background: #eef3fb !important;
    color: #2A4068 !important;
}
@media (max-width: 768px) {
    .orientation-hero .hero-content-wrapper-center {
        align-items: flex-start;
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-cta {
        margin-top: 80px !important;
        margin-left: 0 !important;
    }

    .hero-cta .cta-text {
        font-size: 1rem !important;
    }

    .hero-cta .black-line {
        width: 180px;
    }

    .orientation-hero {
        min-height: 100vh;
        padding-top: 80px;
        background-size: contain;
        background-position: center 90px;
    }
}
