/* index_custom.css: for Home Page Cards ONLY */
/* --- Hero Section --- */
.hero-section {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 120px 10px;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Overlay for better text readability */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: -1;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero-content p {
    font-size: 1.3em;
    margin-bottom: 30px;
    line-height: 1.5;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero-buttons .btn {
    display: inline-block;
    padding: 15px 30px;
    margin: 0 10px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.home-cards-row {
    justify-content: center; /* Center all cards horizontally */
    gap: 32px;               /* Horizontal + vertical gap between cards and at edges */
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.card-pad-left  { 
	padding-left: 24px !important; 
	}
.card-pad-right { 
	padding-right: 24px !important; 
	}
.home-card {
    max-width: 320px;   /* Adjust as needed for your visual fit (e.g., 300, 320, 340px) */
    width: 100%;
    min-height: 220px;  /* Or taller for bigger cards; adjust for your needs */
    box-shadow: 0 4px 16px rgba(40,120,180,0.08);
    border-radius: 16px;
    background: #fafdff;
    padding: 32px 18px 26px 18px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;    /* Or center, if your content should be centered */
}

@media (max-width: 991px) { /* On tablet/small desktops, smaller max width/gaps */
    .home-card { max-width: 380px; }
    .home-cards-row { gap: 18px; }
}

@media (max-width: 575px) { /* On phone screens, go full width with less padding */
    .home-card {
        max-width: 98vw;
        padding: 18px 5vw 16px 5vw;
    }
    .home-cards-row { gap: 6vw; }
}

/* Featured Content Cards */
/* NEW CONTAINER FOR MARQUEE AND BUTTONS */
.card-marquee-container {
    position: relative; /* Allows absolute positioning of buttons */
    overflow: hidden; /* Ensures content stays within bounds */
    margin-bottom: 50px;
}

.card-marquee-wrapper { /* Existing wrapper, now with overflow-x: auto */
    overflow-x: auto; /* Enable manual horizontal scrolling */
    white-space: nowrap; /* Prevent cards from wrapping */
    padding-bottom: 20px; /* Add padding for potential scrollbar visibility */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none;  /* Hide scrollbar for IE/Edge */
}

/* Hide scrollbar for Webkit browsers (Chrome, Safari) */
.card-marquee-wrapper::-webkit-scrollbar {
    display: none;
}

.card-container {
    display: flex; /* Use flexbox for horizontal arrangement */
    flex-wrap: nowrap; /* Crucial: cards stay in a single row */
    gap: 30px; /* Spacing between cards */
    animation: marquee-scroll 30s linear infinite; /* Apply animation */
    will-change: transform; /* Hint to browser for animation optimization */
    width: max-content; /* Allows content to define total width */
}

.card-container.paused { /* Class to pause animation via JavaScript */
    animation-play-state: paused;
}

.card-marquee-wrapper .card { /* Target cards specifically within the marquee */
    flex-shrink: 0; /* Prevent cards from shrinking */
    width: 450px; /* Ensure each card maintains its desired width */
    /* Inherits other .card styles like background, shadow, etc. */
}

/* Keyframes for the continuous scrolling animation */
@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    /* Scroll exactly half the total width of the duplicated content */
    /* This creates the seamless loop. Adjust based on content width. */
    100% { transform: translateX(-50%); } 
}
/* Scroll buttons */
.scroll-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 1.5em;
    cursor: pointer;
    z-index: 10;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    -webkit-user-select: none; /* Prevent text selection */
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.scroll-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.scroll-left {
    left: 0;
}

.scroll-right {
    right: 0;
}

/* Responsive adjustment for buttons */
@media (max-width: 768px) {
    .scroll-button {
        padding: 5px 10px;
        font-size: 1.2em;
    }
}

/* Latest Articles */
.article-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.article-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.article-item h3 {
    font-size: 1.6em;
    color: #1a3a4f;
    margin-bottom: 10px;
}

.article-item .article-meta {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 15px;
}

.article-item p {
    font-size: 1em;
    color: #444;
    margin-bottom: 20px;
}

.article-link {
    font-weight: bold;
    color: #007bff;
}



/* Newsletter Signup Section */
.newsletter-signup {
    background-color: #1a3a4f; /* Assumed dark background for this section */
    color: #fff;
    padding: 60px 20px;
    text-align: center; /* Centers the H2 and the wrapper below */
    margin-top: 50px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}
.video-background {
    position: absolute; /* Position relative to .newsletter-signup */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Hide any overflow from video scaling */
    z-index: 0; /* Place video at the very back */
}

.video-background video {
    /* Ensure the video covers the entire container */
    min-width: 100%;
    min-height: 100%;
    width: auto; /* Allow video to scale maintaining aspect ratio */
    height: auto; /* Allow video to scale maintaining aspect ratio */
    position: absolute; /* Position relative to .video-background */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center the video within its container */
    object-fit: fill; /* Ensures video covers the entire container, cropping if necessary */
    /* You might want filter: brightness(0.6) blur(2px); here for dimming/blur if not using ::before overlay */
}
.newsletter-signup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1); /* Adjust opacity (e.g., 0.4 = 40% opaque black) */
    z-index: 1; /* Place overlay above video, below content */
}

/* Ensure your text and form content are on top of the overlay and video */
.content-over-video {
    position: relative; /* Establishes a new stacking context for its children */
    z-index: 2; /* Place content above the overlay */
}
.newsletter-signup h2 {
    color: #fff;
    font-size: 2.2em;
    /* ... other h2 styles ... */
}

/* New Flexbox Wrapper for side-by-side content */
.newsletter-content-wrapper {
    display: flex; /* Makes children (text and form areas) align horizontally */
    flex-direction: row; /* Arranges items in a row */
    align-items: center; /* Vertically centers the text and form */
    justify-content: center; /* Horizontally centers the whole block of text-divider-form */
    flex-wrap: wrap; /* Allows stacking on smaller screens */
    margin-top: 30px; /* Space from the H2 above */
}

/* Text Area for the paragraph */
.newsletter-text-area {
    flex: 1; /* Allows this area to grow and shrink */
    max-width: 400px; /* Adjust max-width as needed for text readability */
    padding-right: 20px; /* Space between text and divider */
    text-align: right; /* Aligns the paragraph text to the right, towards the divider */
}

.newsletter-text-area p {
    margin-bottom: 0; /* Remove default bottom margin for paragraph */
    font-size: 1.1em; /* Adjust font size if desired */
    line-height: 1.5;
}
/* Vertical Divider */
.vertical-divider {
    width: 2px; /* Thickness of the divider */
    height: 80px; /* Height of the divider (adjust based on your content's height) */
    background-color: #00CED1; /* Clear Water Aqua color for the divider */
    margin: 0 30px; /* Space on both sides of the divider */
    flex-shrink: 0; /* Prevents the divider from shrinking */
}

/* Form Area for the signup form */
.newsletter-form-area {
    flex: 1; /* Allows this area to grow and shrink */
    max-width: 400px; /* Adjust max-width as needed for form width */
    padding-left: 20px; /* Space between divider and form */
    text-align: left; /* Aligns the form content to the left, away from the divider */
}
/* Responsive adjustments for smaller screens (e.g., mobile) */
@media (max-width: 768px) { /* Adjust breakpoint as needed */
    .newsletter-content-wrapper {
        flex-direction: column; /* Stack text and form vertically */
        align-items: center; /* Center items horizontally when stacked */
    }
    .newsletter-text-area,
    .newsletter-form-area {
        max-width: 100%; /* Take full width when stacked */
        padding-left: 0;
        padding-right: 0;
        text-align: center; /* Center text and form when stacked */
    }
    .newsletter-text-area {
        margin-bottom: 20px; /* Space between text and form when stacked */
    }
    .vertical-divider {
        display: none; /* Hide the divider when stacked vertically */
    }
    .signup-form {
        justify-content: center; /* Center form elements when stacked */
    }
}
/* Jumbotron/Hero section */
.jumbotron {
    background-color: #e3f2fd; /* Light blue */
    color: #333;
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Card styling for home page features */
.card {
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease-in-out;
}

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

.card-title {
    font-weight: 600;
    color: #0056b3; /* Darker blue for titles */
}
/* Buttons */
.btn-primary {
    background-color: #209CEE;
    border-color: #209CEE;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #5a6268;
}

/* Forms */
.form-label {
    font-weight: 500;
}