﻿/* NewsStyle2025.css - Modern, Responsive Template */

/* --- GLOBAL RESET & BODY STYLING --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    
    /* BACKGROUND REQUEST: Uses the subtle logo tile pattern (LogoBG1-min.png) */
    background-image: url('LogoBG1-min.png'); /* ADJUST PATH IF NEEDED */
    background-repeat: repeat; /* Repeats the image across the page */
    background-attachment: fixed; 
    background-color: #f0f0f0; /* Light gray fallback color */
}

/* --- LAYOUT CONTAINER (Replaces the fixed 700px table) --- */
.container {
    max-width: 1020px;
    margin: 20px auto;
    background-color: #ffffff; /* White background for the article content (high contrast) */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

/* --- HEADER SECTION (Green Bar) --- */
header {
    background-color: #14A44F; /* DPS Green from your old CSS */
    padding: 10px 20px;
    text-align: center;
}

/* LOGO STYLING (Controls the size of the logo image in the header) */
.header-logo {
    max-height: 80px; /* Adjust this to make the logo smaller or larger */
    width: auto;
    max-width: 100%; /* Ensures logo shrinks on mobile */
    display: inline-block;
    vertical-align: middle;
}

/* --- MAIN HEADING (Maroon Bar) --- */
h1 {
    background-color: #5F0100; /* DPS Maroon from your old CSS */
    color: white;
    font-size: 22px;
    text-align: center;
    padding: 15px;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
}

/* --- CONTENT AREA --- */
.content {
    padding: 25px;
}

.article-text {
    color: #125C27; /* Dark Green Text from your old CSS */
    font-size: 16px;
    margin-bottom: 25px;
    text-align: left; /* Better readability on all devices than 'justify' */
}

/* --- RESPONSIVE IMAGES --- */

.newsimage {
    display: block;
    width: 70%; /* Image width is less than 100% of its container */
    height: auto;
    margin-bottom: 20px;
    /* --- Addition for centering --- */
    margin-left: auto;
    margin-right: auto;
    /* or the shorthand: margin: 0 auto 20px auto; */
    /* ----------------------------- */
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* --- RESPONSIVE IMAGES --- OLD Code
.newsimage {
    display: block;
    width: 50%; 
    height: auto;
    margin-bottom: 20px;
    border-radius: 4px;
    border: 1px solid #ddd;
} */

/* --- BUTTONS (Replacing the Click Here gif) --- */

/* --- BUTTONS (Replacing the Click Here gif) --- */
.photogallery-link-container {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 20px;
}

.photogallery-btn {
    display: inline-block;
    background-color: #5F0100;
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.photogallery-btn:hover {
    background-color: #0D0845;
}

/* --- FOOTER --- */
footer {
    background-color: #eee;
    color: #666;
    text-align: center;
    padding: 10px;
    font-size: 12px;
    border-top: 1px solid #ddd;
}


/* --- code for colorful Buttons/Links --- */

/* --- CONTAINER (Your Original CSS) --- */
/* This centers the buttons on the page */
.btn-link-container {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 20px;
}

/* --- BASE BUTTON STYLE --- */
/* Your original base style, modified for a modern look (pill shape, better shadow) */
.btn {
    display: inline-block;
    color: blue; /* Default text color */
    text-decoration: none;
    padding: 12px 25px;
    border: none; /* Ensure no unwanted borders */
    border-radius: 30px; /* Modern, pill-like shape */
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    /* Add a subtle shadow for depth */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease; /* Smooth transition for hover effects */
    margin: 0 10px; /* Add space between multiple buttons */
}

/* --- 1. PRIMARY/FEATURED BUTTON (Blue) --- */
.btn-primary {
    /* Blue gradient */
    background: linear-gradient(to bottom, #00b4ff, #007bff);
}

.btn-primary:hover {
    background: linear-gradient(to bottom, #007bff, #00b4ff); /* Invert gradient */
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

/* --- 2. SUCCESS/READ MORE BUTTON (Green) --- */
.btn-success {
    /* Green gradient */
    background: linear-gradient(to bottom, #4CAF50, #388E3C);
}

.btn-success:hover {
    background: linear-gradient(to bottom, #388E3C, #4CAF50);
    box-shadow: 0 6px 14px rgba(76, 175, 80, 0.5);
    transform: translateY(-2px);
}

/* --- 3. WARNING/CAUTION BUTTON (Orange) --- */
.btn-warning {
    color: #4B3200; /* Darker text for contrast on bright background */
    /* Orange gradient */
    background: linear-gradient(to bottom, #FFC107, #FFA000);
    box-shadow: 0 4px 10px rgba(255, 160, 0, 0.4);
}

.btn-warning:hover {
    background: linear-gradient(to bottom, #FFA000, #FFC107);
    box-shadow: 0 6px 14px rgba(255, 160, 0, 0.6);
    transform: translateY(-2px);
}

/* --- 4. DANGER/ALERT BUTTON (Red) --- */
.btn-danger {
    /* Red gradient */
    background: linear-gradient(to bottom, #F44336, #D32F2F);
}

.btn-danger:hover {
    background: linear-gradient(to bottom, #D32F2F, #F44336);
    box-shadow: 0 6px 14px rgba(211, 47, 47, 0.6);
    transform: translateY(-2px);
}

/* --- MOBILE TWEAKS (Media Query) --- */
@media (max-width: 600px) {
    h1 {
        font-size: 18px; 
    }
    .content {
        padding: 15px;
    }
}

/* --- 1. Iframe Wrapper/Container --- */
.iframe-container {
    position: relative; /* Essential for the iframe's absolute positioning */
    width: 100%;
    /* 16:9 Aspect Ratio (9 / 16 * 100 = 56.25%) */
    padding-bottom: 56.25%; 
    /* Use padding-bottom: 75%; for a 4:3 aspect ratio */
    height: 0;
    overflow: hidden; /* Clips any external content */
    margin-bottom: 20px;
}

/* --- 2. The Iframe Element --- */
.iframe-container iframe {
    position: absolute; /* Positions the iframe relative to the container */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none; /* Recommended to remove default iframe border */
}