﻿/* =========================================
   1. Global Imports & Resets
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background: #f4f4f4;
    color: #333;
    padding-bottom: 50px; /* Space for footer */
}

/* =========================================
   2. Animations
   ========================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
        visibility: hidden;
    }

    to {
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
    }
}

/* Apply the animation to main content sections */
main section {
    background: #fff;
    margin: 20px 0;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    /* Animation Properties */
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0; /* Start invisible */
}

    main section h2 {
        color: #25bc74;
        margin-bottom: 10px;
    }

/* =========================================
   3. General Layout & UI Components
   ========================================= */
.container {
    max-width: 1140px;
    margin: auto;
    padding: 0 20px;
}

/* Links */
a {
    color: #25bc74 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

    a:hover {
        color: #1e945b; /* Darken slightly */
    }

/* Buttons */
.btn {
    display: inline-block !important;
    background: #25bc74 !important;
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: 5px !important;
    transition: background 0.3s ease !important;
}

    .btn:hover {
        background: #1e945b !important;
    }

/* Contact Info */
.contact-info p {
    font-weight: 500;
}

.contact-info a {
    color: #25bc74;
    transition: color 0.2s ease-in-out;
}

    .contact-info a:hover {
        color: #1e945b;
    }

/* Typography & Assessment Tools */
p, ol, ul, table {
    font-size: 16px;
    margin-bottom: unset !important;
}

.assessment-invite {
    margin-top: 15px;
    font-size: 1em;
}

.assessment-tool-link {
    font-weight: bold;
}

/* Responsive Typography */
@media screen and (max-width: 768px) {
    p, ol, ul, table {
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    p, ol, ul, table {
        font-size: 12px;
    }
}

/* =========================================
   4. News & Events Container (Fixed Height)
   ========================================= */

/* This restricts the area height and enables scrolling */
.news-events-scrollable {
    display: block; /* Ensures single column stacking */
    height: 600px; /* The limit you requested */
    overflow-y: auto; /* Enables vertical scrolling within this box */
    -webkit-overflow-scrolling: touch; /* Smooth scroll on mobile */
    padding: 15px;
    width: 100%;
    border: 1px solid #f0f0f0; /* Subtle border */
    border-radius: 8px;
    background-color: #fafafa;
}

/* The Card Wrapper - Full width, stacked */
.news-event-item {
    display: block;
    width: 100%;
    margin-bottom: 30px; /* Space between posts */
}

    /* The Card Itself - Modern Styling */
    .news-event-item .card {
        background: #ffffff;
        border: none;
        border-radius: 12px;
        /* Soft modern shadow */
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        overflow: hidden;
        width: 100%;
    }

        /* Hover Effect */
        .news-event-item .card:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06);
        }

    /* Card Body */
    .news-event-item .card-body {
        padding: 0;
        background: #ffffff;
        position: relative;
        min-height: 200px;
        /* Reverted to block display for full width */
        display: block;
        overflow: hidden;
    }

    /* Iframe Styling */
    .news-event-item iframe {
        display: block;
        border: none;
        /* Allow scrolling functionality, but CSS below hides the visual bar */
        overflow-y: scroll;
    }

    /* Force Hide Scrollbars on iframe - This is the "Magic" to allow scroll without bar */
    .news-event-item iframe {
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE 10+ */
    }

        .news-event-item iframe::-webkit-scrollbar {
            display: none; /* Chrome/Safari/Webkit */
            width: 0;
            height: 0;
        }

.news-event-actions {
    display: flex;
    justify-content: center;
    padding: 15px 20px 20px;
    background: #ffffff;
    border-top: 1px solid #f0f0f0;
}

.linkedin-post-link.btn {
    min-width: 210px;
    text-align: center;
}

/* Loading/Error States */
.iframe-loading-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    background: #f0f2f5;
    color: #666;
    font-size: 0.9rem;
}

.iframe-load-error-message {
    padding: 20px;
    text-align: center;
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 12px;
    margin: 10px;
}
