/* =====================================================
   SOUHARDA MASTER CORE - CORRECTED & COLLISION-FREE
   ===================================================== */

:root {
    --navy: #0F2A47;      
    --gold: #DBB61C;      
    --maroon: #800000;    
    --grid-opacity: rgba(17, 42, 70, 0.07);
}

/* 1. GLOBAL LAYOUT */
html, body {
    max-width: 100%;
    overflow-x: hidden;
    background-color: #ffffff;
}

body {
    background-image: 
        linear-gradient(var(--grid-opacity) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-opacity) 1px, transparent 1px);
    background-size: 30px 30px;
    background-attachment: fixed;
}

/* 2. CARD SECTION - FIXED ALIGNMENT */
.Afcarcont {
    margin-top: -140px; 
    position: relative;
    z-index: 999;
}

.Afcarcont .rowmuch {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important; /* Forces 1-line alignment */
    justify-content: flex-end !important; 
    padding-right: 15px !important;
    gap: 10px;
}

.col-lg-2-custom {
    width: 240px !important; 
    flex: 0 0 260px !important;
    padding: 10px !important;
}

.hover-4 {
    position: relative;
    width: 100%; 
    height: 300px; 
    background: #000 !important; 
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.hover-4 img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    opacity: 0.8 !important; 
    transition: 0.5s ease;
}

/* THE TEXT LOGIC */
.hover-4-content {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    z-index: 10;
    text-align: center;
    padding: 15px;
}

.hover-4-title .Cap {
    color: var(--gold) !important;
    font-weight: 800;
    font-size: 18px;
    text-transform: uppercase;
    text-shadow: 2px 2px 10px rgba(0,0,0,1); 
    text-decoration: none;
}

.hover-4-description {
    color: #ffffff !important;
    font-size: 14px;
    opacity: 0; /* Hidden initially */
    transform: translateY(15px);
    transition: 0.4s ease;
}

/* THE HOVER IMPRESSION */
.hover-4:hover img {
    opacity: 0.25 !important;
}

.hover-4:hover {
    background: var(--navy) !important; /* Navy impression on hover */
}

.hover-4:hover .hover-4-description {
    opacity: 1;
    transform: translateY(0);
}

/* 3. WELCOME SECTION - THE COLLISION FIX */
.welcome-section {
    padding-top: 100px !important; /* THE KEY: Creates space so cards don't sit on text */
    padding-bottom: 60px;
}

.welcome-section .h1-master {
    color: var(--gold) !important;
    font-weight: 800;
    font-size: 34px;
}

/* 4. MAGAZINE SPEED FIX */
#dynamic-track {
    display: flex;
    animation: scroll-infinite 80s linear infinite !important; /* Slow glide */
}

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

/* 5. MOBILE CLEANUP */
@media (max-width: 1200px) {
    .Afcarcont .rowmuch {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    .welcome-section { padding-top: 100px !important; }
}

.circular-list a {
    text-decoration: none !important;
}

/* This targets links specifically inside list items */
li a {
    text-decoration: none;
}

/* Optional: To keep it looking like a link, you can add a color or hover effect */
li a:hover {
    text-decoration: underline; /* Adds underline only when mouse is over it */
    color: #0056b3;
}