/* TNNS GOA - Modernized Layout Fix 
   Optimized for Hostinger Servers
*/

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    overflow-x: hidden; /* Prevents horizontal scrolling */
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* --- FIXED HEADER & NAV --- */
header {
    background-color: #6e0303;
    width: 100%;
    padding: 10px 0;
    position: relative;
    z-index: 1000;
}
/* Fixed Navigation Bar */
.navbar-custom {
    background-color: #6e0303;
    border: none;
    border-radius: 0;
    margin-bottom: 0;
}

/* Custom Navigation Bar */
.navbar-custom {
    background-color: #6e0303;
    border: none;
    border-radius: 0;
    margin-bottom: 0;
}

/* Force the menu to the far right corner on desktop */
@media (min-width: 768px) {
    .navbar-right {
        float: right;
        margin-right: -15px; /* Pulls it to the absolute edge */
    }
    
    .navbar-nav {
        display: block; /* Removes the flexbox from yesterday */
    }
}

.navbar-custom .navbar-nav > li > a {
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    padding: 15px 20px;
}

.navbar-custom .navbar-nav > li > a:hover,
.navbar-custom .navbar-nav > .active > a {
    background-color: #8b0000;
    color: #fff;
}

/* Ensure the navbar container doesn't have extra restriction */
.navbar-custom .container {
    padding-right: 15px;
    padding-left: 15px;
}

.navbar-custom .navbar-nav > li > a {
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    padding: 15px 20px;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: right;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#logo img {
    max-height: 60px; /* Ensures your logo doesn't blow up in size */
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: right;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #ffffff !important;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}
/* --- Visual Enhancements --- */

/* 1. Add a subtle shadow to the Header */
header {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 2. Style the Buttons to look modern */
.btn-primary {
    background-color: #6e0303;
    border: none;
    padding: 12px 25px;
    border-radius: 50px; /* Rounded pill shape */
    text-transform: uppercase;
    font-weight: bold;
    transition: 0.3s;
}

.btn-primary:hover {
    background-color: #30c39e;
    transform: translateY(-3px); /* Lifts up slightly on hover */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 3. Improve the Typography */
h3.tittle {
    font-size: 32px;
    color: #6e0303;
    position: relative;
    padding-bottom: 15px;
}

/* Adds a small underline below headings */
h3.tittle::after {
    content: '';
    width: 60px;
    height: 3px;
    background: #30c39e;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}
/* --- Large Typography Redesign --- */

#about-us .tittle {
    font-size: 48px; /* Very large and clear */
    font-weight: 900;
    color: #6e0303;
    margin-bottom: 10px;
}

#about-us .sub-text {
    font-size: 30px; /* Increased from 14px */
    letter-spacing: 3px;
    color: #30c39e;
    font-weight: 700;
}

#about-us .about-para {
    font-size: 30px; /* Large, readable paragraph text */
    line-height: 1.6;
    color: #333;
    max-width: 900px;
    margin: 40px auto; /* Adds space around the big text */
}

/* Make the button bigger to match the text */
.btn-redesign {
    font-size: 30px;
    padding: 18px 45px;
    border-radius: 50px;
}
/* 4. Card Effect for the About Section */
.ab-info {
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
nav ul li a:hover {
    color: #30c39e !important;
}

/* --- SLIDER FIX --- */
.csslider {
    width: 100%;
    height: 70vh; /* Adjust height based on your preference */
    position: relative;
}

.csslider > ul {
    height: 100% !important;
}

.csslider > ul > li {
    background-size: cover !important;
    background-position: center !important;
}

/* --- SECTION SPACING FIX --- */
section {
    padding: 60px 0;
    clear: both; /* Prevents overlapping */
}
/* CSS for the Moving Header */
.announcement-bar {
    overflow: hidden;
    white-space: nowrap;
    background:#ce2029 ;
    color:#ffffff ;
    position: relative;
    font-size: 0.9rem;
    font-weight: 600;
}
.marquee {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 25s linear infinite;
}
@keyframes marquee {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}
/* Styling for Social Section */
.video-card {
    transition: transform 0.3s;
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.video-card:hover {
    transform: translateY(-5px);
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
/* --- Achievements Page Styling --- */
.achievements-page {
    background-color: #fdfdfd;
}

.achievement-card {
    background: #fff;
    border-radius: 15px;
    transition: all 0.3s ease-in-out;
    border-top: 5px solid #ce2029 !important; /* Brand Red */
}

.achievement-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.icon-circle {
    width: 60px;
    height: 60px;
    background: rgba(206, 32, 41, 0.1);
    color: #ce2029;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* --- DROPDOWN VISIBILITY FIX FOR MORE MENU --- */
.navbar-nav .dropdown-menu {
    background-color: #8b0000;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.dropdown-item, .inner-ul li a {
    color: #333333; /* Force black text */
    padding: 10px 20px;
    font-weight: 500;
}

.dropdown-item:hover, .inner-ul li a:hover {
    background-color: #f8f9fa;
    color: #ce2029;
}
/* Ensure the navigation is always on top of page content */
header, .navbar, nav {
    position: relative;
    z-index: 9999;
}

/* Ensure the dropdown menu itself is at the very front */
.dropdown-menu {
    z-index: 10000;
}
/* --- SERVICE CARDS FIX --- */
.feature-grids {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.bottom-gd {
    padding: 30px;
    text-align: center;
    background: #fff;
    border: 1px solid #eee;
    transition: 0.3s;
}

/* --- MOBILE MENU FIX --- */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
}
/* --- DROPDOWN VISIBILITY FIX FOR MORE MENU --- */
/* This part ensures the box is white and on top of other elements */
.navbar-nav .dropdown-menu {
    background-color: #ffffff; 
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: none; /* Bootstrap handles the toggle */
    z-index: 9999;
}

/* This is the most important part: It forces the text to be DARK GREY */
.dropdown-menu li a, .inner-ul li a {
    color: #333333; /* Forces black text visibility */
    padding: 12px 20px;
    font-weight: 500;
    display: block;
    text-transform: none;
    text-align: left;
}

/* This part handles the hover effect */
.dropdown-menu li a:hover, .inner-ul li a:hover {
    background-color: #f8f9fa;
    color: #ce2029; /* Brand Red on hover */
    text-decoration: none;
}

/* Fix for mobile view dropdowns */
@media (max-width: 767px) {
    .navbar-nav .open .dropdown-menu {
        background-color: #ffffff;
        position: static;
        float: none;
        width: auto;
    }
}
/* --- NEWS SECTION STYLES --- */

/* The main container for the news grid */
.news-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

/* Individual News Card */
.news-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid #30c39e; /* Consistent with your site's accent color */
}

/* Hover effect for the card */
.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

/* News Image Styling */
.news-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

/* Text Container inside the card */
.news-content {
    padding: 25px;
}

/* Small Badge for the Date */
.date-badge {
    display: inline-block;
    background-color: #6e0303; /* Matches your header color */
    color: #ffffff;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

/* News Title */
.news-content h4 {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin-bottom: 15px;
    line-height: 1.4;
}

/* Short Description */
.news-content p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* "Read More" Button inside card */
.btn-news-link {
    color: #6e0303;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.btn-news-link:hover {
    color: #30c39e;
    text-decoration: underline;
}