@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");

:root {
    --color-white-100: #fff;
    --color-white-200: #f2f2f2;
    --color-white-300: #d9d9d9;
    --color-white-400: #bfbfbf;
    --color-white-500: #a6a6a6;
    --color-white-600: #8c8c8c;
    --color-black-100: #191f24;
    --color-black-200: #151a1e;
    --color-black-300: #111418;
    --color-black-400: #0d0f12;
    --color-black-500: #090a0c;
    --color-black-600: #040506;
    --color-blue-100: #fb3747;
    --color-blue-200: #f82032;
    --color-blue-300: #f40b32;
    --color-blue-400: #d2142d;
    --color-blue-500: #b41818;
    --color-blue-600: #9b1a1a;
    --text-tiny: clamp(0.84rem, calc(0.12vw + 0.8rem), 0.89rem);
    --text-small: clamp(0.93rem, calc(0.13vw + 0.91rem), 1rem);
    --text-base: clamp(1.05rem, calc(0.15vw + 1.01rem), 1.12rem);
    --text-medium: clamp(1.18rem, calc(0.17vw + 1.14rem), 1.26rem);
    --text-large: clamp(1.32rem, calc(0.19vw + 1.28rem), 1.41rem);
    --shadow-small: 0 1px 3px 0 rgba(0, 0, 0, 0.1),
        0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-large: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

*,
*::before,
*::after {
    padding: 0;
    margin: 0;
    list-style: none;
    list-style-type: none;
    text-decoration: none;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

html {
    font-size: 100%;
    font-style: normal;
    scroll-behavior: smooth;
    height: -webkit-fill-available;
}

body {
    font-family: "Roboto", system-ui, ui-sans-serif, sans-serif;
    font-size: var(--text-base);
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-black-500);
    background-color: var(--color-white-100);
}

/* main,
section {
    overflow: hidden;
} */

html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1; /* This pushes the footer to the bottom */
    padding: 70px 0px 0px 0px;
}

a,
button {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    border: none;
    outline: none;
    color: inherit;
    background: none;
}

h1,
h2,
h3,
h4,
h5 {
    line-height: 1.15;
    text-wrap: balance;
    word-wrap: break-word;
}

p {
    max-width: unset;
}

p,
li {
    text-wrap: pretty;
    line-height: inherit;
    word-wrap: break-word;
}

img,
svg,
picture,
video {
    font-style: italic;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    shape-margin: 1rem;
    vertical-align: middle;
}

img,
svg {
    background-size: cover;
    background-repeat: no-repeat;
    image-rendering: crisp-edges;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
}

.section {
    margin-inline: auto;
    margin-block: 5rem 2rem;
}

.container {
    max-width: 75rem;
    height: auto;
    margin-inline: auto;
    padding-inline: 1.5rem;
}

.center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.text-tiny {
    font-size: var(--text-tiny);
}

.text-small {
    font-size: var(--text-small);
}

.text-base {
    font-size: var(--text-base);
}

.text-medium {
    font-size: var(--text-medium);
}

.text-large {
    font-size: var(--text-large);
}

.font-normal {
    font-weight: 400;
}

.font-medium {
    font-weight: 500;
}

.font-semi {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.text-uppercase {
    text-transform: uppercase;
}

.text-lowercase {
    text-transform: lowercase;
}

.text-capitalize {
    text-transform: capitalize;
}

/* --- Modernized Global Button Classes --- */

.btn {
    display: inline-flex;
    font-family: inherit;
    font-size: var(--text-small);
    font-weight: 500;
    line-height: 1.5;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    column-gap: 0.5rem;
    white-space: nowrap;
    padding-block: 0.65rem;
    padding-inline: 1.5rem;
    border-radius: 10px; /* Softer, modern border radius matching inputs/cards */
    border: 1px solid transparent;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
                background-color 0.2s ease, 
                color 0.2s ease, 
                box-shadow 0.2s ease, 
                border-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: translateY(0);
}

.btn-default {
    color: var(--color-black-200);
    background-color: var(--color-white-100);
    border-color: rgba(0, 0, 0, 0.08);
}

.btn-default:hover {
    background-color: var(--color-white-200);
    color: var(--color-blue-600);
    border-color: rgba(0, 0, 0, 0.12);
}

.btn-darken {
    color: var(--color-white-100);
    background-color: var(--color-black-100);
    border-color: transparent;
}

.btn-darken:hover {
    background-color: var(--color-blue-600);
    color: var(--color-white-100);
}

/* --- Modernized Navbar Styles --- */

.header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    /* Frosted glass effect */
    background: rgba(153, 26, 26, 0.85); /* Adjust based on your --color-blue-600 */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

nav {
    padding-block: 12px;
    background-color: transparent; /* Inherits glass effect from header */
    position: relative;
    z-index: 9;
}
nav .logo a img {
  max-width: 50px;
  height: auto;
}

.inner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.inner-header ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.inner-header ul li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 400;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid transparent;
    text-transform: capitalize;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.inner-header ul li a:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    font-weight: 500;
}

/* Logout / Special Action Button Styling */
.inner-header ul li:last-child a {
    border-color: rgba(255, 255, 255, 0.2);
    background-color: #ffffff;
    color: var(--color-blue-500);
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.inner-header ul li:last-child a:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--color-blue-600) !important;
    transform: translateY(-1px);
}

/* Modern Dropdown Menu */
.services-link {
    position: relative;
}

.services-link > a {
    display: flex;
    align-items: center;
    gap: 6px;
}

.services-link > a i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.active-dropdown > a i {
    transform: rotate(180deg);
}

.services-link .service-dropdown {
    position: absolute;
    background-color: #ffffff;
    padding: 8px;
    width: max-content; /* Hugs the longest text dynamically */
    display: flex;
    flex-direction: column;
    gap: 4px;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    border-radius: 12px;
    box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.services-link .service-dropdown li {
    width: 100%;
}

.services-link .service-dropdown a {
    text-align: left;
    color: var(--color-black-200) !important;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 400;
    width: 100%; /* Forces every link to span the full width of the dropdown box */
    display: block;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.services-link .service-dropdown a:hover {
    background-color: var(--color-white-200);
    color: var(--color-blue-600) !important;
    font-weight: 400;
}

.active-dropdown .service-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Modern Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 24px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background-color: white;
    border-radius: 4px;
    display: block;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.nav-open .hamburger span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.nav-open .hamburger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-open .hamburger span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* NAVBAR ENDS */




.form-group {
  display: flex;
  gap: 10px;
  flex-direction: column;
  margin: auto;
}
.form-group label {
  margin:auto;
  font-size: 20px;
  line-height: 24px;
  text-transform: capitalize;
}
.form-group input {
  margin: auto;
  padding: 8px 12px;
  font-size: 16px;
  line-height: 18px;
  width: 50%;
  background-color: transparent;
  outline: none;
  border: 1px solid var(--color-blue-600);
  border-radius: 4px;
  color: var(--color-blue-600);
}
.inner-modal button {
  padding: 8px 12px;
  font-size: 22px;
  line-height: 22px;
  background-color: green;
  cursor: pointer;
  border: 1px solid green;
  color: white;
  border-radius: 4px;
  transition: all ease 0.3s;
}
.inner-modal button:hover {
  background-color: white;
  color: green;
  font-weight: 500;
}
.active-modal {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  scale: 1;
}

.close-btn {
  display: inline-block;
  position: absolute;
  top: 16px;
  right: 20px;
  cursor: pointer;
}
.close-btn i {
  font-size: 24px;
}

@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }
}
@media (max-width: 992px) {
  .container {
    max-width: 720px;
  }

  nav .logo a img {
    max-width: 44px;
    height: auto;
  }
  .inner-header ul li a {
    padding: 4px 8px;
    font-size: 16px;
    line-height: 20px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 540px;
  }

  .menu-items {
    position: absolute;
    right: -100%;
    top: 100%;
    height: 100vh;
    width: 250px;
    padding: 24px 12px;
    background-color: var(--color-blue-500);
    transition: all ease 0.3s;
  }
  .menu-items ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .hamburger {
    display: flex;
  }
  .inner-header ul li {
    width: 100%;
  }
  .inner-header ul li a {
    font-size: 20px;
    line-height: 26px;
    width: 100%;
    text-align: center;
  }
  .nav-open .menu-items {
    right: 0;
  }

  .services-link.active-dropdown .service-dropdown {
    position: relative;
  }
}
@media (max-width: 576px) {
  .container {
    max-width: 100%;
    padding-inline: 12px;
  }
  nav .logo a img {
    max-width: 36px;
    height: auto;
  }
  .modal .inner-modal {
    width: 280px;
  }
}
/* ================================================================ */


/* --- Modernized Footer Styles --- */
footer {
    background-color: var(--color-white-200);
    padding: 48px 0 24px 0;
    position: relative;
    bottom: 0;
    width: 100%;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 -4px 20px -2px rgba(0, 0, 0, 0.03);
}

.footer-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 75rem; /* Harmonized with the navbar container width */
    margin: 0 auto;
    padding: 0 1.5rem 32px 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-column {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-column h3 {
    font-size: var(--text-medium);
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--color-black-200);
    letter-spacing: -0.01em;
}

.footer-column p,
.footer-column a {
    font-size: var(--text-small);
    margin: 0;
    color: var(--color-black-600);
    line-height: 1.6;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: var(--color-blue-500);
}

.info {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-black-600);
    font-size: var(--text-tiny);
    padding-top: 24px;
    background-color: transparent;
    opacity: 0.8;
}

/* Responsive layout for smaller screens */
@media (max-width: 768px) {
    .footer-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 28px;
    }

    .footer-column {
        align-items: center;
        text-align: center;
    }
}
/* FOOTER ENDS */



/* General Section Styles */
/* --- Modernized Hero Section Styles --- */

.hero-section {
    position: relative;
    width: 100%;
    height: 60vh; /* Slightly taller for an impactful modern canvas */
    min-height: 480px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: var(--color-black-100); /* Fallback background */
    padding-top: 80px;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Refined multi-stop gradient for a cleaner, modern fade */
    background: linear-gradient(
        90deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 255, 0.85) 40%, 
        rgba(255, 255, 255, 0.2) 80%, 
        transparent 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    width: 100%;
    max-width: 75rem; /* Harmonized with navbar and footer container widths */
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-inline: 1.5rem; /* Matches global container padding */
    z-index: 3;
}

.hero-text {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 55%;
    color: var(--color-black-100); /* Darker, cleaner text instead of heavy brand blue */
    margin-top: 0;
    text-shadow: none; /* Removed heavy text-shadow for a clean, modern look */
    padding-top: 80px;
}

.hero-text.show {
    opacity: 1;
    transform: translateY(0);
}

.hero-text h1 {
    font-size: clamp(2.5rem, 4vw, 4rem); /* Fluid responsive font sizing */
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: var(--color-blue-600);
}

.hero-text p {
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    color: var(--color-black-500);
    line-height: 1.6;
    font-weight: 800;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fixed from fill to cover to prevent image distortion */
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .hero-section {
        height: 50vh;
        min-height: 400px;
    }

    .hero-content {
        padding-inline: 1.5rem;
    }

    .hero-text {
        max-width: 100%; /* Take full width on mobile for better readability */
        padding-left: 0;
    }

    .overlay {
        /* Solidify background slightly more on mobile for text contrast */
        background: linear-gradient(
            180deg, 
            rgba(255, 255, 255, 0.95) 0%, 
            rgba(255, 255, 255, 0.85) 100%
        );
    }
}

/* HERO ENDS */


/* --- Modernized About Section Styles --- */
.about-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5rem 1.5rem; /* Generous vertical spacing for modern section breathing room */
    background-color: var(--color-white-200);
    position: relative;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.about-content {
    display: flex;
    width: 100%;
    max-width: 75rem; /* Harmonized with navbar, footer, and hero container width */
    margin: 0 auto;
    align-items: center;
    gap: 4rem; /* Modern flex gap instead of tight margins/padding */
}

.about-text {
    flex: 1;    
    padding-right: 0; /* Handled cleanly via flex gap */
    text-align: left; /* Modern web standard (left-aligned text is significantly easier to read than justify) */
}

.about-text h2 {
    font-size: clamp(1.75rem, 2.5vw, 2.25rem);
    font-weight: 700;
    color: var(--color-blue-600);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.about-text p {
    font-size: var(--text-base);
    color: var(--color-black-500);
    line-height: 1.7;
    font-weight: 400;
}

/* Responsive layout for smaller screens */
@media screen and (max-width: 768px) {
    .about-section {
        padding: 3rem 1.5rem;
    }

    .about-content {
        flex-direction: column;
        gap: 2rem;
        text-align: left;
    }
}

/* ABOUT ENDS */


/* --- Modernized Floating Notice & About Layout --- */

.about-section {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Aligns items to the top so the floating box works smoothly */
    padding: 5rem 1.5rem;
    background-color: var(--color-white-200);
    position: relative;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.about-content {
    display: block; /* Allows text to wrap around the floated notice section */
    width: 100%;
    max-width: 75rem;
    margin: 0 auto;
    position: relative;
    overflow: hidden; /* Contains the floated element properly */
}

.notice-section {
    float: right; /* Places the notice box on the right side */
    shape-outside: margin-box;
    /* Glassmorphism effect consistent with your header theme */
    background: rgba(155, 26, 26, 0.85); /* Matches --color-blue-600 with transparency */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 1.25rem;
    height: 320px;
    max-height: 320px;
    width: 320px;
    max-width: 100%;
    margin-left: 2rem; /* Space between the about text and notice block */
    margin-bottom: 1.5rem; /* Space before any subsequent text/content */
    box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.04);
    color: var(--color-white-100);
    position: relative;
    z-index: 2;
}

/* Subtle glow accent element inside the glass container */
.notice-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.notice-section > h2 {
    font-size: var(--text-medium);
    font-weight: 600;
    color: var(--color-white-100) !important;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-container {
    height: calc(100% - 40px);
    overflow: hidden;
    position: relative;
}

.news-items-wrapper {
    animation: scroll 12s linear infinite;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-items-wrapper:hover {
    animation-play-state: paused;
}

.news-item {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    font-size: var(--text-small);
    line-height: 1.5;
    transition: background 0.2s ease;
}

.news-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.about-text {
    width: 100%;
    text-align: left;
}

.about-text h2 {
    font-size: clamp(1.75rem, 2.5vw, 2.25rem);
    font-weight: 700;
    color: var(--color-blue-600);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.about-text p {
    font-size: var(--text-base);
    color: var(--color-black-500);
    line-height: 1.7;
    font-weight: 400;
    margin-bottom: 1.25rem; /* Ensures nice paragraph spacing as text wraps around the box and then expands full-width */
}

@keyframes scroll {
    0% {
        transform: translateY(0%);
    }
    100% {
        transform: translateY(-60%);
    }
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .about-section {
        padding: 3rem 1.5rem;
    }

    .about-content {
        display: flex;
        flex-direction: column;
    }

    .notice-section {
        float: none;
        width: 100%;
        max-width: 100%;
        height: 260px;
        max-height: 260px;
        margin: 0 0 2rem 0;
        order: -1; /* Optionally pins the notice box to the top on mobile if desired, or remove to keep flow */
    }
}

/* NOTICE ENDS */

/* --- Modernized Infinite Gallery Section --- */

.gallery-section {
    padding: 5rem 0; /* Expanded vertical breathing room */
    background-color: var(--color-white-100); /* Contrasts against the white-200 about section */
    text-align: center;
    overflow: hidden;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.gallery-section h2 {
    font-size: clamp(1.75rem, 2.5vw, 2.25rem);
    font-weight: 700;
    color: var(--color-blue-600);
    margin-bottom: 2.5rem;
    letter-spacing: -0.02em;
}

.gallery-strip {
    overflow: hidden;
    position: relative;
    width: 100%;
    /* Gradient edge masks for a smooth fade-out look */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.gallery-scroll {
    display: flex;
    width: max-content;
    gap: 1.5rem; /* Clean modern spacing instead of individual image margins */
    will-change: transform;
    animation: marquee 35s linear infinite; /* Smooth continuous horizontal scrolling */
}

.gallery-scroll:hover {
    animation-play-state: paused;
}

.gallery-scroll img {
    width: 340px;
    height: 240px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
}

.gallery-scroll img:hover {
    transform: translateY(-6px) scale(1.02); /* Modern lifting effect */
    box-shadow: 0 16px 32px -6px rgba(0, 0, 0, 0.15);
    border-color: var(--color-blue-400);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* Requires duplicated item wrapper in HTML to form a seamless infinite loop */
    }
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .gallery-section {
        padding: 3rem 0;
    }

    .gallery-scroll img {
        width: 260px;
        height: 180px;
        border-radius: 10px;
    }
}
/* GALLERY ENDS */
/* --------------------------------------------------------------------------------- */

/* --- Modernized Forms, Dashboards, and Action Buttons --- */

.notice-board-wrapper, 
.add-notice-wrapper, 
.edit-notice-wrapper, 
.login-wrapper {
    padding: 6rem 1.5rem 4rem 1.5rem; /* Generous padding to account for fixed header */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: calc(100vh - 160px); /* Keeps content centered nicely */
    background-color: var(--color-white-200);
}

/* Action Buttons (Edit / Delete / Forms) */
.edit-btn,
.del-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-tiny);
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.edit-btn {
    color: var(--color-white-100);
    background-color: var(--color-white-600);
}

.edit-btn:hover {
    background-color: var(--color-black-600);
    color: var(--color-white-100);
}

.del-btn {
    color: var(--color-white-100);
    background-color: var(--color-blue-400);
}

.del-btn:hover {
    background-color: var(--color-blue-600);
    color: var(--color-white-100);
}

/* Primary Action Submits / Buttons */
.add-notice, 
.save-notice, 
.save-changes, 
.login-btn {
    font-size: var(--text-base);
    font-weight: 500;
    background-color: var(--color-blue-500);
    color: var(--color-white-100);
    padding: 10px 24px;   
    display: block; 
    margin: 2rem auto 0 auto;
    border-radius: 8px;
    border: 1px solid transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.add-notice:hover, 
.save-notice:hover, 
.save-changes:hover, 
.login-btn:hover {
    color: var(--color-blue-600);
    border-color: var(--color-blue-500);
    background-color: var(--color-white-100);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Form Layout Containers */
.add-notice-wrapper > form, 
.edit-notice-wrapper > form, 
.login-wrapper > form {
    margin-top: 2rem;
    width: 100%;
    max-width: 540px; /* Restricts maximum stretch for clean modern form UI */
    background: var(--color-white-100);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.form-group {
    margin-bottom: 1.25rem;
    color: var(--color-black-200);
    font-weight: 500;
    font-size: var(--text-small);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-control {
    width: 100%; /* Spans full width of the padded card container */
    padding: 0.75rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    font-size: 1rem;
    background-color: var(--color-white-100);
    color: var(--color-black-500);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    margin: 0;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-blue-500);
    box-shadow: 0 0 0 3px rgba(180, 24, 24, 0.15); /* Soft focus ring matching theme blue-500 */
}

.error {
    color: var(--color-blue-400);
    font-size: var(--text-tiny);
    margin-top: 0.35rem;
    font-weight: 500;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .add-notice-wrapper > form, 
    .edit-notice-wrapper > form, 
    .login-wrapper > form {
        width: 90%;
        padding: 1.5rem;
    }
}
/* ------------------------------------------------------------------------------------------ */
/* --- Modernized Search Bar & Responsive Tables --- */

.search-bar {
    display: block;
    width: 100%;
    max-width: 380px;
    margin-left: auto;
    margin-bottom: 2rem;
    line-height: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: var(--text-small);
    background-color: var(--color-white-100);
    color: var(--color-black-500);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-bar:focus {
    outline: none;
    border-color: var(--color-blue-500);
    box-shadow: 0 0 0 3px rgba(180, 24, 24, 0.15);
}

/* Modern Data Table Styling */
table {
    border: none;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0 auto 2rem auto;
    padding: 0;
    width: 100%;
    max-width: 75rem;
    table-layout: auto;
    background: var(--color-white-100);
    border-radius: 14px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

table caption {
    font-size: var(--text-large);
    font-weight: 700;
    margin: 0 0 1.25rem 0;
    color: var(--color-black-200);
    text-align: left;
    letter-spacing: -0.01em;
}

table tr {
    background-color: transparent;
    border: none;
    transition: background-color 0.15s ease;
}

tr:nth-of-type(even) {
    background-color: rgba(242, 242, 242, 0.5); /* Soft tint using white-200 */
}

table tr:hover {
    background-color: rgba(180, 24, 24, 0.03); /* Subtle theme accent hover */
}

table th,
table td {
    padding: 1rem 1.25rem;
    text-align: left;
    font-size: var(--text-small);
    color: var(--color-black-500);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

table tr:last-child td {
    border-bottom: none;
}

table th {
    background-color: var(--color-blue-600);
    font-size: var(--text-tiny);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-white-100);
}

/* Responsive Stacked Layout for Smaller Screens */
@media screen and (max-width: 768px) {
    table {
        border: none;
        width: 100%;
        box-shadow: none;
        background: transparent;
        border-radius: 0;
    }

    table caption {
        font-size: var(--text-medium);
        text-align: center;
    }

    table thead {
        border: none;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }

    table tr {
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 12px;
        display: block;
        margin-bottom: 1rem;
        background-color: var(--color-white-100);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
        padding: 0.5rem;
    }

    tr:nth-of-type(even) {
        background-color: var(--color-white-100);
    }

    table td {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: var(--text-small);
        text-align: right;
        padding: 0.75rem 1rem;
    }

    table td::before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
        text-transform: uppercase;
        font-size: var(--text-tiny);
        color: var(--color-blue-600);
        letter-spacing: 0.04em;
    }

    table td:last-child {
        border-bottom: 0;
    }
}


/* --- Modernized Committee Member Page & Card Grid Styles --- */

.notice-board-wrapper {
    padding: 6rem 1.5rem 4rem 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: calc(100vh - 160px);
    background-color: var(--color-white-200);
}

/* Filter Form Styling */
.notice-board-wrapper > form {
    margin-bottom: 2.5rem;
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--color-white-100);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.notice-board-wrapper > form label {
    font-size: var(--text-small);
    font-weight: 600;
    color: var(--color-black-200);
}

.notice-board-wrapper > form .form-control {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    font-size: var(--text-small);
    background-color: var(--color-white-100);
    color: var(--color-black-500);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.notice-board-wrapper > form .form-control:focus {
    outline: none;
    border-color: var(--color-blue-500);
    box-shadow: 0 0 0 3px rgba(180, 24, 24, 0.15);
}

/* Committee Card Container */
.committee-card-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    max-width: 75rem;
    margin: 0 auto;
    width: 100%;
}

/* Committee Card Design */
.committee-card {
    position: relative;
    width: 280px;
    height: 380px;
    background-color: var(--color-white-100);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.committee-card.is-hovered {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px -8px rgba(0, 0, 0, 0.12);
}

/* Card Image Wrapper */
.card-image {
    width: 100%;
    height: 75%;
    overflow: hidden;
    position: relative;
    background-color: var(--color-white-200);
    transition: opacity 0.3s ease;
}

.committee-card.is-hovered .card-image {
    opacity: 0.85;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.committee-card.is-hovered .card-image img {
    transform: scale(1.05);
}

/* Fallback No Photo Container */
.card-image .no-photo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-small);
    color: var(--color-white-600);
    font-weight: 500;
}

/* Card Content / Overlay Details */
.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.98) 80%, rgba(255, 255, 255, 0.85) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 1.25rem;
    height: 32%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.committee-card.is-hovered .card-content {
    transform: translateY(-4px);
}

.card-content .name {
    font-weight: 700;
    font-size: var(--text-base);
    color: var(--color-black-200);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.card-content .designation {
    font-size: var(--text-small);
    font-weight: 500;
    color: var(--color-blue-500);
    display: block;
    opacity: 0.9;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .committee-card {
        width: 100%;
        max-width: 320px;
        height: 400px;
    }
}


/* ==========================================
   ORDINARY COMMITTEE MEMBERS
   ========================================== */

.committee-members-section {
    width: 100%;
    max-width: 900px;
    margin: 3rem auto 0;
}

.committee-members-section h2 {
    margin: 0 0 1.5rem;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-black-200);
}

.committee-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.committee-members-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--color-white-100);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px -5px rgba(0, 0, 0, 0.07);
}

.committee-members-table th,
.committee-members-table td {
    padding: 0.7rem 1.1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    vertical-align: middle;
}

.committee-members-table th {
    background-color: var(--color-blue-600);
    color: white;
    font-weight: 600;
    text-align: left;
}

.committee-members-table td {
    color: var(--color-black-300);
}

.committee-members-table tbody tr:last-child td {
    border-bottom: none;
}

.committee-members-table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.025);
}


/* Serial number */

.committee-members-table .member-sr {
    width: 80px;
    text-align: center;
}


/* Name */

.committee-members-table .member-name {
    text-align: left;
}


/* Small member photo */

.committee-members-table .member-photo {
    width: 70px;
    text-align: center;
}

.committee-members-table .member-photo img {
    display: block;
    width: 45px;
    height: 45px;
    margin: 0 auto;
    object-fit: cover;
    border-radius: 50%;
}

.committee-members-table .member-no-photo {
    font-size: 1rem;
    opacity: 0.5;
}


/* ==========================================
   MOBILE
   ========================================== */

@media (max-width: 600px) {

    .committee-members-section {
        margin-top: 2.5rem;
    }

    /*
       Override any global responsive table rules.
       Keep this table as a real table on mobile.
    */

    .committee-members-table {
        display: table;
        width: 100%;
        table-layout: fixed;
    }

    .committee-members-table thead {
        display: table-header-group;
    }

    .committee-members-table tbody {
        display: table-row-group;
    }

    .committee-members-table tr {
        display: table-row;
    }

    .committee-members-table th,
    .committee-members-table td {
        display: table-cell;
        padding: 0.65rem 0.5rem;
        vertical-align: middle;
    }

    /* Fixed column widths */

    .committee-members-table .member-sr {
        width: 55px;
        text-align: center;
        white-space: nowrap;
    }

    .committee-members-table .member-name {
        width: auto;
        text-align: left;
        white-space: normal;
        word-break: normal;
    }

    .committee-members-table .member-photo {
        width: 55px;
        text-align: center;
    }

    .committee-members-table .member-photo img {
        width: 38px;
        height: 38px;
    }

}

/* ================================================================
   VIDEO MANAGEMENT
   ================================================================ */

.video-board-wrapper {
    padding: 6rem 1.5rem 4rem 1.5rem;
    min-height: calc(100vh - 160px);
    background-color: var(--color-white-200);
}

.video-board-header {
    max-width: 75rem;
    margin: 0 auto 2rem auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.video-board-header h2 {
    font-size: var(--text-large);
    font-weight: 700;
    color: var(--color-black-200);
}

/* Add Video button */

.video-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    background-color: var(--color-blue-500);
    color: var(--color-white-100);
    font-size: var(--text-small);
    font-weight: 500;
    transition: all 0.2s ease;
}

.video-add-btn:hover {
    background-color: var(--color-blue-600);
    color: var(--color-white-100);
    transform: translateY(-1px);
}

/* Video table */

.video-board-wrapper table {
    max-width: 75rem;
}

.video-board-wrapper table td.video-title {
    font-weight: 600;
    color: var(--color-black-200);
}

.video-board-wrapper table td.video-url {
    max-width: 280px;
}

.video-board-wrapper table td.video-url a {
    color: var(--color-blue-500);
    font-weight: 500;
}

.video-board-wrapper table td.video-url a:hover {
    color: var(--color-blue-600);
    text-decoration: underline;
}

/* Status badges */

.video-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: var(--text-tiny);
    font-weight: 500;
}

.video-status.active {
    background-color: rgba(34, 197, 94, 0.12);
    color: #15803d;
}

.video-status.inactive {
    background-color: rgba(239, 68, 68, 0.10);
    color: #b91c1c;
}

.video-status.featured {
    background-color: rgba(180, 24, 24, 0.10);
    color: var(--color-blue-600);
}

/* Video action buttons */

.video-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.video-actions .edit-btn,
.video-actions .del-btn {
    white-space: nowrap;
}

/* Mobile */

@media screen and (max-width: 768px) {

    .video-board-wrapper {
        padding: 5rem 1rem 3rem 1rem;
    }

    .video-board-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .video-add-btn {
        width: 100%;
    }

    .video-board-wrapper table td.video-url {
        max-width: none;
        overflow-wrap: anywhere;
    }

    .video-actions {
        justify-content: flex-end;
        flex-wrap: wrap;
    }
}




/* =========================================================
   VIDEO GALLERY
   ========================================================= */

.video-gallery {
    padding: 7rem 1.5rem 4rem 1.5rem;
    min-height: calc(100vh - 160px);
    background-color: var(--color-white-200);
}

.video-gallery-container {
    width: 100%;
    max-width: 75rem;
    margin: 0 auto;
}

/* ---------- Heading ---------- */

.video-gallery-heading {
    text-align: center;
    margin-bottom: 2.5rem;
}

.video-gallery-heading h1 {
    margin: 0 0 0.6rem 0;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-black-200);
}

.video-gallery-heading p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-black-400);
}


/* ---------- Video Grid ---------- */

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
}


/* ---------- Video Card ---------- */

.video-card {
    background: var(--color-white-100);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow:
        0 10px 25px -5px rgba(0, 0, 0, 0.06),
        0 8px 10px -6px rgba(0, 0, 0, 0.04);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 18px 35px -8px rgba(0, 0, 0, 0.12),
        0 8px 16px -6px rgba(0, 0, 0, 0.06);
}


/* ---------- Thumbnail ---------- */

.video-thumbnail {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
    text-decoration: none;
}

.video-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.04);
}


/* ---------- Play Button ---------- */

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding-left: 3px;

    border-radius: 50%;

    background: rgba(180, 24, 24, 0.94);
    color: #ffffff;

    font-size: 1.35rem;
    line-height: 1;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.25);

    transition:
        transform 0.25s ease,
        background-color 0.25s ease;
}

.video-card:hover .video-play-icon {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--color-blue-600);
}


/* ---------- Card Content ---------- */

.video-card-content {
    padding: 1.15rem 1.25rem 1.3rem 1.25rem;
}

.video-card-content h2 {
    margin: 0;
    color: var(--color-black-200);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.45;

    display: -webkit-box;
    /* -webkit-line-clamp: 2; */
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ---------- Empty State ---------- */

.video-empty {
    width: 100%;
    max-width: 600px;
    margin: 3rem auto;
    padding: 2rem;

    text-align: center;

    background: var(--color-white-100);
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);

    color: var(--color-black-400);
    font-size: 1rem;

    box-shadow:
        0 10px 25px -5px rgba(0, 0, 0, 0.05),
        0 8px 10px -6px rgba(0, 0, 0, 0.03);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {

    .video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }
}


@media (max-width: 650px) {

    .video-gallery {
        padding: 6rem 1rem 3rem 1rem;
    }

    .video-gallery-heading {
        margin-bottom: 2rem;
    }

    .video-gallery-heading h1 {
        font-size: 2rem;
    }

    .video-gallery-heading p {
        font-size: 0.95rem;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .video-card-content {
        padding: 1rem 1.1rem 1.15rem 1.1rem;
    }

    .video-card-content h2 {
        font-size: 1rem;
    }

    .video-play-icon {
        width: 52px;
        height: 52px;
        font-size: 1.2rem;
    }
}

/* =========================================================
   HOME PAGE - VIDEOS SECTION
   ========================================================= */

.videos-section {
    width: 100%;
    padding: 4rem 1.5rem;
    background-color: var(--color-white-200);
}

.videos-content {
    width: 100%;
    max-width: 75rem;
    margin: 0 auto;
}


.videos-content h2 {
    font-size: clamp(1.75rem, 2.5vw, 2.25rem);
    font-weight: 700;
    text-align: center;
    color: var(--color-blue-600);
    margin-bottom: 2.5rem;    letter-spacing: -0.02em;
}

/* ---------- Video Grid ---------- */

.videos-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}


/* ---------- Video Card ---------- */

.videos-grid .video-card {
    display: block;
    width: 100%;
    max-width: 100%;
    background: var(--color-white-100);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow:
        0 8px 20px -5px rgba(0, 0, 0, 0.07),
        0 4px 8px -4px rgba(0, 0, 0, 0.04);
    text-decoration: none;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.videos-grid .video-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 15px 30px -8px rgba(0, 0, 0, 0.12),
        0 6px 12px -5px rgba(0, 0, 0, 0.05);
}


/* ---------- Thumbnail ---------- */

.videos-grid .video-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
}

.videos-grid .video-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.videos-grid .video-card:hover .video-thumbnail img {
    transform: scale(1.04);
}


/* ---------- Play Button ---------- */

.videos-grid .video-play-button {
    position: absolute;
    left: 50%;
    top: 50%;

    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: translate(-50%, -50%);

    border-radius: 50%;
    background: rgba(180, 24, 24, 0.94);
    color: #fff;

    font-size: 1.6rem;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);

    transition:
        transform 0.25s ease,
        background-color 0.25s ease;
}

.videos-grid .video-play-button i {
    line-height: 1;
}

.videos-grid .video-card:hover .video-play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: var(--color-blue-600);
}


/* ---------- Caption ---------- */

.videos-grid .video-caption {
    padding: 0.9rem 1rem 1rem;

    color: var(--color-black-200);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;

    min-height: 3.5rem;

    display: flex;
    align-items: center;
}


/* ---------- View All Button ---------- */

.videos-more {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.videos-more-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0.7rem 1.4rem;

    border-radius: 8px;

    background-color: var(--color-blue-500);
    color: var(--color-white-100);

    font-size: 0.9rem;
    font-weight: 600;

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.videos-more-button:hover {
    background-color: var(--color-blue-600);
    color: var(--color-white-100);
    transform: translateY(-1px);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .videos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .videos-section {
        padding: 3rem 1rem;
    }

    .videos-content > h2 {
        margin-bottom: 1.5rem;
    }

    .videos-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .videos-grid .video-caption {
        padding: 0.85rem 1rem;
        font-size: 0.95rem;
    }

    .videos-grid .video-play-button {
        width: 46px;
        height: 46px;
        font-size: 1.45rem;
    }
}


