 /* මූලික සැකසුම් */
 body {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
   margin: 0;
   font-family: 'Poppins', sans-serif;
   background-color: #ffffff;
 }

 .news h2 {
   text-align: center;
 }

 body {
   font-family: 'Segoe UI', sans-serif;

 }

 /* ලෝඩර් පසුබිම */
 #loader-wrapper {
   overflow: hidden;
   /* ලෝඩරය පවතින විට ස්ක්‍රෝල් කිරීම වැළැක්වීමට */
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100vh;
   background-color: rgba(1, 22, 51, 0.97);
   display: flex;
   justify-content: center;
   align-items: center;
   z-index: 9999;
   transition: opacity 0.8s ease;
   /* මැකී යාමේ වේගය */
 }

 .loader-content {
   text-align: center;
 }

 /* ලෝගෝව හෘද ස්පන්දනයක් මෙන් ගැහෙන සජීවීකරණය */
 .loader-logo {
   width: 150px;
   height: auto;
   animation: heartbeat 1.2s ease-in-out infinite;
 }

 @keyframes heartbeat {
   0% {
     transform: scale(1);
   }

   20% {
     transform: scale(1.1);
   }

   /* මෘදුව ලොකු වීම */
   40% {
     transform: scale(1);
   }

   /* නැවත සාමාන්‍ය තත්වයට */
   60% {
     transform: scale(1.1);
   }

   /* දෙවන ස්පන්දනය */
   80% {
     transform: scale(1);
   }

   /* නැවත සාමාන්‍ය තත්වයට */
   100% {
     transform: scale(1);
   }

   /* අවසානයේ සුළු විරාමයක් */
 }

 /* තේමා පාඨය සකස් කිරීම */
 #moto-text {
   margin-top: 25px;
   font-size: 1.5rem;
   color: #ffffff;
   font-weight: 500;
   min-height: 1.6em;
   text-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
   letter-spacing: 1px;
 }

 #moto-text::after {
   content: '|';
   animation: blink 0.7s infinite;
   margin-left: 5px;
   opacity: 0.8;
 }

 @keyframes blink {

   0%,
   100% {
     opacity: 1;
   }

   50% {
     opacity: 0;
   }
 }

 .char {
   opacity: 0;
   animation: charFadeIn 0.4s ease forwards;
 }

 @keyframes charFadeIn {
   from {
     opacity: 0;
     transform: translateY(5px);
   }

   to {
     opacity: 1;
     transform: translateY(0);
   }
 }

 /* ලෝඩරය ඉවත් කිරීමේදී භාවිතා වන class එක */
 .fade-out {
   opacity: 0;
   pointer-events: none;
 }

 /* ප්‍රධාන අන්තර්ගතය මුලින් සැඟවීමට */
 #main-content {
   display: none;
   padding: 50px;
   text-align: center;
 }









 /* --- Slider Section --- */
 .banner-container {
   position: relative;
   overflow: hidden;
   width: 100%;
   z-index: 5;
 }



 .slider {
   position: relative;
   height: 500px;
   width: 100%;
 }

 .slide {
   display: none;
   height: 100%;
   width: 100%;
   position: relative;
 }

 .slide img {
   width: 100%;
   height: 100%;
   object-fit: cover;
 }

 .slide.active {
   display: block;
   animation: fadeEffect 1s;
 }

 @keyframes fadeEffect {
   from {
     opacity: 0.4;
   }

   to {
     opacity: 1;
   }
 }

 .caption {
   position: absolute;
   bottom: 60px;
   left: 0;
   width: 100%;
   text-align: center;
   color: white;
   z-index: 3;
   padding: 20px;
   background: rgba(1, 20, 45, 0.605);
   font-size: 1.8rem;
   font-weight: 500;
   text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
 }

 /* Controls */
 .prev,
 .next {
   position: absolute;
   top: 50%;
   transform: translateY(-50%);
   background: rgba(255, 255, 255, 0.2);
   color: white;
   border: none;
   padding: 15px 20px;
   cursor: pointer;
   z-index: 10;
   font-size: 24px;
   border-radius: 5px;
   transition: 0.3s;
 }

 .prev:hover,
 .next:hover {
   background: #03234d;
 }

 .next {
   right: 20px;
 }

 .prev {
   left: 20px;
 }


 @media (max-width: 480px) {
   #loader-wrapper {
     overflow: hidden;
     /* ලෝඩරය පවතින විට ස්ක්‍රෝල් කිරීම වැළැක්වීමට */
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100vh;
     background-color: rgba(1, 22, 51, 0.97);
     display: flex;
     justify-content: center;
     align-items: center;
     z-index: 9999;
     transition: opacity 0.8s ease;
     /* මැකී යාමේ වේගය */
   }

   .caption {
     position: absolute;
     left: -20px;
     bottom: 60px;
     width: 100%;
     text-align: center;
     color: rgb(255, 255, 255);
     z-index: 3;
     font-size: 1.2rem;
     font-weight: 500;
     text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
   }

   .next {
     right: 10px;
   }

   .prev {
     left: 10px;
   }



   .slider {
     position: relative;
     height: 380px;
     width: 100%;
   }



 }


















 .hero-1 {

   background-color: #aed2ea;
   color: var(--forest-green);
   height: 60vh;
   text-align: justify;
 }



 .hero-content-1 {
   padding-right: 10%;
   padding-left: 5%;
   display: flex;
   justify-content: space-between;
   align-items: center;
   text-align: left;




 }

 .hero-content-1 h4 {
   padding-top: -10px;
   text-align: center;
   font-family: 'poppins', sans-serif;
   color: rgb(0, 0, 0);
 }

 .hero-content-1 h1 {
   color: #1F2933;
   font-family: 'Great Vibes', cursive;
   font-size: 6rem;
   font-weight: 500;

 }

 .hero-content-1 p {
   padding-top: 10px;
   text-align: justify;
   max-width: 600px;
   margin: 0 auto 40px;
   line-height: 1.6;
   font-size: 1rem;
 }

 .btn-primary {
   background-color: var(--forest-green);
   color: var(--accent-lime);
   padding: 15px 40px;
   border-radius: 50px;
   text-decoration: none;
   font-size: 0.9rem;
 }

 .main-logo {
   height: 420px;
 }


 @media (max-width: 480px) {


   .hero-1 {
     height: 45vh;
   }

   .main-logo {
     height: 200px;
   }

   .hero-content-1 {
     padding: 20px;
     text-align: center;
     flex-direction: column;
     /* row → column */
     justify-content: flex-start;
     /* space-between remove */
     gap: 10px;


   }

   .hero-content-1 h1 {
     font-size: 3rem;
   }

   .hero-content-1 p {
     font-size: 13px;
   }
 }


 .word {
   display: inline-block;
   opacity: 0;
   transform: translateY(10px);
   transition: all 0.5s ease;
   margin-right: 5px;
 }

 .word.visible {
   opacity: 1;
   transform: translateY(0);
 }















 .gradient-section {

   width: 100%;
   height: 500px;

   align-items: center;


   /* මෙන්න gradient එක - පළමු වර්ණය ඉහළට, දෙවන වර්ණය පහළට */
   background: linear-gradient(#aed2ea, rgba(174, 210, 234, 0.326), rgba(0, 0, 0, 0));
 }


 @media (max-width: 768px) {}


















 /* ==========================================================
   HERO SECTION
   ========================================================== */
 .hero {
   z-index: -3;
   position: relative;
   top: -700px;
   margin-bottom: -600px;
   min-height: 100vh;
   display: flex;
   align-items: center;
   justify-content: center;
   background-color: #000000;
   background-position: center;
   background-size: cover;
   background-repeat: no-repeat;
   perspective: 120px;
 }

 .hero .hero-bg,
 .hero .hero-bg-2 {
   position: absolute;
   inset: 0;
   background-position: center;
   background-size: cover;
   background-repeat: no-repeat;
   opacity: 0;
   transition: opacity 2.2s cubic-bezier(0.22, 0.61, 0.36, 1);
   z-index: 0;
   pointer-events: none;
   will-change: opacity, transform;
 }





 .hero-rotator {

   position: absolute;
   inset: 0;
   display: grid;
   place-items: center;
   z-index: 0;
   pointer-events: none;
 }

 .hero-rotator .card {
   position: absolute;
   width: clamp(200px, 36vw, 560px);
   height: auto;
   aspect-ratio: 16 / 9;
   object-fit: cover;
   display: block;
   border-radius: 4px;
   box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
   transform: translate3d(-50%, -50%, 0) scale(0.88);
   left: 50%;
   top: 88%;
   transition: transform 900ms cubic-bezier(0.22, 0.61, 0.36, 1),
     opacity 900ms cubic-bezier(0.22, 0.61, 0.36, 1),
     filter 900ms ease,
     box-shadow 900ms ease;
   will-change: transform, opacity, filter;
 }

 .hero-rotator .card.pos-0 {
   transform: translate3d(-50%, -50%, 0) scale(1);
   z-index: 5;
   filter: brightness(1);
   box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
 }

 .hero-rotator .card.pos-1 {
   transform: translate3d(calc(-50% + 200px), -52%, -10px) rotateY(-8deg) scale(0.9);
   z-index: 3;
   filter: brightness(.95) saturate(.98);
 }

 .hero-rotator .card.pos-2 {
   transform: translate3d(calc(-50% - 200px), -52%, -10px) rotateY(8deg) scale(0.9);
   z-index: 3;
   filter: brightness(.95) saturate(.98);
 }

 .hero-rotator .card.pos-3 {
   transform: translate3d(-50%, -50%, -40px) scale(0.84);
   opacity: 0.0;
   z-index: 1;
 }

 .hero .active {
   animation: heroKenBurns 10s ease-in-out forwards;
 }

 @keyframes heroKenBurns {
   0% {
     transform: scale(1.02);
   }

   100% {
     transform: scale(1.08);
   }
 }

 .hero-inner {
   height: 100%;
   display: flex;
   align-items: center;
   justify-content: center;
   flex-direction: column;
   gap: 10px;
   position: relative;
   top: -100px;
   z-index: 1;

 }

 .hero+.hero-inner {
   height: auto;
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   gap: 8px;
   max-width: 1200px;
   margin: 160px auto 0;
   padding: 0 16px;
   text-align: center;
 }

 @media (min-width: 480px) {
   .hero+.hero-inner {
     margin-top: 200px;
   }
 }

 @media (max-width: 480px) {
   .hero {
     min-height: 55vh;
   }

   .hero+.hero-inner {
     margin-top: 90px;
   }

   .hero-rotator {
     position: relative;
     top: 220px;
   }

   .hero-rotator .card {
     z-index: 10;
     width: clamp(140px, 75vw, 320px);
     top: 30px;
     border-radius: 4px;
     opacity: 0;
     visibility: hidden;
     transition: all 0.5s ease;
   }

   .hero-rotator .card.pos-0 {
     opacity: 1;
     visibility: visible;
     transform: translate3d(-50%, -50%, 0) scale(1.1);
     z-index: 15;
   }

   .hero-rotator .card.pos-1,
   .hero-rotator .card.pos-2,
   .hero-rotator .card.pos-3 {
     opacity: 0;
     visibility: hidden;
     transform: translate3d(-50%, -50%, 0) scale(0.8);
   }
 }

 .hero-dis {
   text-align: justify;
   margin: 40px;
 }

 .hero-dis h4 {
   font-family: 'poppins';
   text-align: center;
   padding-bottom: 20px;
   color: gray;
 }

 .hero-dis p {
   font-size: 1rem;
   line-height: 2;
   color: #011633;
   margin-bottom: 30px;

 }

 @media (max-width: 480px) {
   .hero-dis p {

     font-size: 13px;
   }

 }















 .video-section .container-1 {

   max-width: 1200px;
   margin: 0;
   display: flex;
   align-items: center;
   /* මැදට පෙළගැස්වීම */

   flex-wrap: wrap;
   /* කුඩා තිර වලදී එකක් යට එකක් ඒමට */
 }

 /* වීඩියෝව පවතින කොටස */
 .video-container {

   font-style: italic;
   color: #444;
   font-size: smaller;
   text-align: center;
   flex: 1;
   min-width: 300px;
   /* අවම පළල */
   aspect-ratio: 16 / 9;
   /* වීඩියෝවේ හැඩය ආරක්ෂා කිරීමට */
 }

 .video-container iframe {
   width: 80%;
   height: 80%;
   border-radius: 12px;
   /* දාර වටකුරු කිරීමට */
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
 }

 /* විස්තරය පවතින කොටස */
 .text-container {
   padding-top: 2rem;
   flex: 1;

 }



 .text-container p {
   position: relative;
   top: -30px;
   margin: 20px;
   text-align: justify;
   font-size: 1rem;
   line-height: 2;
   color: #011633;

 }

 /* Responsive කිරීම (ජංගම දුරකථන සඳහා) */
 @media (max-width: 480px) {
   .video-section .container-1 {

     flex-direction: column;
     /* එකක් යට එකක් පෙන්වීමට */
     text-align: center;
   }

   .text-container p {
     padding: 0 1rem;
     font-size: 13px;
   }
 }








 .container-badge {
   font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
   background-color: #ffffff;
   display: flex;
   justify-content: center;
   align-items: center;
   height: 400px;
   margin: 0;
   display: flex;
   gap: 100px;
   padding: 20px;
 }

 .card-badge {
   background: #fff;
   border-radius: 15px;
   padding: 10px;
   width: 300px;
   text-align: center;

   transition: transform 0.3s ease;
 }

 .icon-container img {
   position: relative;
   top: 20px;
   width: 250px;
   height: 100%;
   margin-bottom: 2px;
 }

 h2 {
   color: #333;
   font-size: 22px;
   margin-bottom: 15px;
 }

 p {
   color: #031732;
   font-size: 15px;
   line-height: 1.6;
 }

 /* Up and Down Animation */
 @keyframes float {
   0% {
     transform: translateY(0px);
   }

   50% {
     transform: translateY(-10px);
   }

   100% {
     transform: translateY(0px);
   }
 }

 .animated-card {
   animation: float 3s ease-in-out infinite;
 }

 /* Hover effect to pause or slightly lift */
 .card:hover {
   transform: scale(1.05);
   box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
   animation-play-state: paused;
   /* Hover කරන විට animation එක නවතී */
 }



 @media (max-width: 768px) {
   .container-badge {
     height: 600px;
     position: relative;
     top: 45px;
     flex-direction: column;
     /* කාඩ්පත් එක යට එක පෙළගැස්වීම */
     align-items: center;
     gap: 5px;
   }

   .card-badge {
     width: 100%;
     /* ජංගම දුරකථනයේ සම්පූර්ණ පළලට ආසන්නව */
     margin-bottom: 20px;
   }

   .card-badge h2 {
     font-size: 20px;
     /* අකුරු ප්‍රමාණය මඳක් කුඩා කිරීම */
   }

   .card-badge p {
     text-align: justify;
     font-size: 13px;
     /* අකුරු ප්‍රමාණය මඳක් කුඩා කිරීම */
   }

   /* Mobile වලදී floating animation එක වේගය අඩු කිරීම හෝ වෙනස් කිරීම කළ හැක */
   .animated-card {
     animation: float 5s ease-in-out infinite;
   }
 }








 /* ------------------------------------- */
 /* Top Tab Navigation Section (CARDS) */
 /* ------------------------------------- */
 .tab-nav-container {
   display: flex;
   justify-content: center;
   align-items: stretch;
   gap: 15px;
   padding-bottom: 2px;
   overflow-x: auto;
   white-space: nowrap;
   -ms-overflow-style: none;
   scrollbar-width: none;
 }

 .tab-nav-container::-webkit-scrollbar {
   display: none;
 }

 .tab-nav-item {
   flex-shrink: 0;
   width: 180px;
   min-height: 250px;
   border-radius: 8px;
   text-align: center;
   cursor: pointer;
   transition: all 0.3s ease;
   position: relative;
   overflow: hidden;
   display: flex;
   flex-direction: column;
   justify-content: flex-end;
   box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
   background-color: #eee;
 }

 .tab-nav-item img {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   object-fit: cover;
   z-index: 0;
   transition: transform 0.5s ease;
 }

 .card-content-overlay {
   position: relative;
   z-index: 2;
   background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
   width: 100%;
   padding: 20px 10px 15px;
   display: flex;
   flex-direction: column;
   align-items: center;
 }

 /* Color Mapping */
 .tab-nav-item[data-tab="sigithi"] {
   background-color: #007bff;
 }

 .tab-nav-item[data-tab="cub"] {
   background-color: #ffc107;
 }

 .tab-nav-item[data-tab="junior"] {
   background-color: #28a745;
 }

 .tab-nav-item[data-tab="senior"] {
   background-color: #dc3545;
 }

 .tab-nav-item[data-tab="rover"] {
   background-color: #9c27b0;
 }

 .tab-nav-item[data-tab="leaders"] {
   background-color: #ff8c00;
 }

 /* Active State */
 .tab-nav-item.active {
   transform: scale(1.05);
   box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
   z-index: 10;
   opacity: 1;
 }

 /* Gradient Overlay */
 .tab-nav-item::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;

   z-index: 1;
 }

 /* Sigithi Card with Image Placeholder */
 .tab-nav-item[data-tab="sigithi"] {
   background-image: url("https://via.placeholder.com/180x250/007bff/ffffff?text=Sigithi+Scouts");
   background-size: cover;
   background-position: center top;
   background-color: #007bff;
 }

 .tab-nav-icon {
   display: none;
 }

 .tab-nav-name {
   font-weight: 900;
   font-size: 18px;
   color: #ffffff;
   margin-bottom: 5px;
   z-index: 2;
   text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
 }

 .tab-nav-age {
   font-weight: 500;
   font-size: 14px;
   color: #ffffff;
   opacity: 0.9;
   z-index: 2;
 }

 /* ------------------------------------- */
 /* Main Content Section (Grid Layout) */
 /* ------------------------------------- */
 .content-section {
   padding: 40px;
   background-color: #ffffff;
   border-radius: 12px;
   ;

   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 40px;

   /* Key for smooth transition and eliminating space when hidden */
   max-height: 1000px;
   /* Large enough for visible state */
   opacity: 1;
   overflow: hidden;
   margin-top: 30px;
   /* Space between cards and content when visible */
   transition: max-height 0.5s ease-in-out, margin-top 0.5s ease-in-out, opacity 0.3s ease;
 }

 /* HIDDEN state (Toggled off) - Removes ALL space below cards */
 .content-section.hidden {
   max-height: 0;
   opacity: 0;
   padding: 0 30px;
   padding-top: 0;
   padding-bottom: 0;
   margin-top: 0;
   /* Crucial: removes the space between card row and next section */
   box-shadow: none;
 }

 /* Ensures inner content is hidden when max-height is 0 */
 .content-section.hidden>* {
   display: none;
 }

 .content-section:not(.hidden)>* {
   /* Restore default display properties for content section children */
   display: flex;
   /* or block, grid depending on the inner element */
 }

 .content-section:not(.hidden) .content-details {
   display: block;
 }

 .content-section:not(.hidden) .content-image-container {
   display: flex;
 }


 /* Responsive adjustments */
 @media (max-width:480px) {
   .tab-nav-item {
     width: 150px;
   }

   .content-section {
     grid-template-columns: 1fr;
   }

   .content-image-container {
     order: -1;
   }
 }

 .content-details h2 {
   color: #333;
   margin-top: 0;
   margin-bottom: 10px;
 }

 .content-details p {
   color: #011633;
   line-height: 1.3;
   margin-bottom: 25px;
   font-size: 14px;
   text-align: justify;
 }

 /* Inner Tab Navigation */
 .inner-nav {
   display: flex;
   margin-bottom: 25px;
   border-bottom: 2px solid #e0e0e0;
   overflow-x: auto;
   white-space: nowrap;
 }

 .inner-tab {
   flex-shrink: 0;
   font-size: 14px;
   font-weight: 600;
   padding: 10px 0;
   margin-right: 25px;
   cursor: pointer;
   color: #777;
   position: relative;
 }

 .inner-tab.active {
   color: #004c99;
 }

 .inner-tab.active::after {
   content: '';
   position: absolute;
   bottom: -2px;
   left: 0;
   width: 100%;
   height: 4px;
   background-color: #ffc107;
   border-radius: 2px 2px 0 0;
 }

 /* Buttons */
 .button-group {
   margin-top: 30px;
   display: flex;
   gap: 15px;
 }

 .btn {
   padding: 12px 25px;
   border: none;
   border-radius: 50px;
   font-weight: 600;
   cursor: pointer;
   text-decoration: none;
   text-align: center;
 }

 .btn-blue {
   background-color: #f0f4f8;
   color: #007bff;
   border: 1px solid #e0e0e0;
 }

 .btn-yellow {
   background-color: #ffc107;
   color: #333;
   box-shadow: 0 4px 8px rgba(255, 193, 7, 0.4);
 }

 /* Image Section Styling */
 .content-image-container {
   display: flex;
   align-items: center;
   justify-content: center;
   height: 100%;
 }

 .content-image-container img {
   max-width: 100%;
   height: auto;
   min-height: 400px;
   border-radius: 12px;
   object-fit: cover;
   clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 10% 100%, 0% 90%);
   background-color: #ffffff1a;
   padding: 20px;
 }

 /* Tab Display Management */
 .tab-content {
   display: none;
 }

 .tab-content.active {
   display: block;
 }

 .inner-tab-content {
   display: none;
 }

 .inner-tab-content.active {
   display: block;
 }


 .scout-tabs-section h2 {
   text-align: center;
   padding-bottom: 30px;
 }

 .card-para {
   padding-top: 30px;
   text-align: center;
   padding-left: 50px;
   padding-right: 50px;

   padding-bottom: 50px;
   font-size: 0.75rem;
   line-height: 1.8;
   color: #011633;
   margin-bottom: 30px;

 }



 /* ================================================= */
 /* MOBILE RESPONSIVE OVERRIDES */
 /* ================================================= */
 @media (max-width: 480px) {

   /* ---------------- TAB NAV (CARDS) ---------------- */

   .scout-tabs-section {
     padding-top: 100px;
   }

   .tab-nav-container {
     justify-content: flex-start;
     gap: 12px;
     padding-bottom: 15px;
     margin-bottom: 25px;
   }

   .tab-nav-item {
     width: 130px;
     min-height: 200px;
     padding-bottom: 15px;
     border-radius: 10px;
   }

   .tab-nav-name {
     font-size: 13px;
   }

   .tab-nav-age {
     font-size: 11px;
   }

   /* ---------------- MAIN CONTENT SECTION ---------------- */
   .content-section {
     padding: 20px;
     grid-template-columns: 1fr;
     /* 2 col → 1 col */
     gap: 20px;
     margin-top: 20px;
   }

   .content-section.hidden {

     padding: 0 15px;
   }

   /* Image first, text second */
   .content-image-container {
     order: -1;
   }

   .content-image-container img {
     min-height: 220px;
     padding: 10px;
     clip-path: none;
     /* simpler shape for mobile */
   }

   /* ---------------- INNER TABS ---------------- */
   .inner-nav {
     margin-bottom: 15px;
   }

   .inner-tab {
     font-size: 10px;
     margin-right: 18px;
   }

   /* ---------------- BUTTONS ---------------- */
   .button-group {
     flex-direction: column;
     gap: 12px;
   }

   .btn {
     width: 100%;
     padding: 14px 0;
     font-size: 15px;
   }

   /* ---------------- TEXT CONTENT ---------------- */
   .content-details h2 {
     font-size: 16px;
   }

   .content-details p {
     margin: 5px;
     text-align: justify;
     font-size: 11px;
     line-height: 1.6;
   }

   .scout-tabs-section h2 {
     font-size: 22px;
     padding-bottom: 20px;
   }

   .card-para p {
     padding-bottom: 30px;
     font-size: 11px;
     line-height: 1.7;
   }
 }

 @media (max-width:480px) {
   .card-para p {
     text-align: justify;
     font-size: 11px;

   }

 }







 :root {
   --primary: #0f766e;
   /* Scout Green */
   --secondary: #1e40af;
   /* Scout Blue */
   --text: #1f2937;
   --muted: #6b7280;
   --bg: #ffffff;
   --line: #d1d5db;
   --white: #ffffff;
   --maxw: 1200px;
 }












 /* ===== LAYOUT ===== */
 .news-panel {
   margin: 0;
   font-family: "Segoe UI", Roboto, Arial, sans-serif;
   background: var(--bg);
   color: var(--text);
   line-height: 1.65;

   max-width: var(--maxw);
   margin: 30px auto;
   padding: 20px;
   display: grid;
   grid-template-columns: 2fr 1.2fr 1fr;
   gap: 26px;
 }

 /* ===== FEATURED ===== */
 .featured {
   background: rgba(1, 51, 44, 0.059);
   border-radius: 5px;
   border-top: 2px solid var(--line);
   padding: 18px;
 }

 .featured-img {
   height: 280px;
   background: #ddd;
   background-size: cover;
   background-position: center;
   margin-bottom: 14px;
 }

 .featured-label {
   color: var(--primary);
   font-weight: 700;
   font-size: 0.75rem;
   letter-spacing: 1px;
 }

 .featured h1 {
   font-size: 1.9rem;
   margin: 6px 0;
 }

 .featured p {
   font-size: 14px;
   text-align: justify;
   margin: 6px 0;
 }

 .meta {
   font-size: 0.85rem;
   color: var(--muted);
   margin-bottom: 10px;
 }

 /* ===== LINKS ===== */
 .link {
   font-size: 0.85rem;
   color: var(--secondary);
   text-decoration: none;
 }

 .link::after {
   content: " →"
 }

 .link:hover {
   text-decoration: underline
 }

 /* ===== OTHER NEWS ===== */
 .middle {
   display: flex;
   flex-direction: column;
 }

 .middle p {
   font-size: 13px;
   text-align: justify;
   margin: 6px 0;
 }

 .news-item {
   padding-bottom: 16px;
   margin-bottom: 16px;
   border-bottom: 1px solid var(--line);
 }

 .news-item h3,
 .old-item h3 {
   font-size: 1.15rem;
   margin: 8px 0;
   color: var(--primary);
   font-weight: 600;
 }

 .news-thumb {
   height: 140px;
   background: #ddd;
   background-size: cover;
   background-position: center;
   margin-bottom: 8px;
 }

 /* ===== SIDEBAR ===== */
 .sidebar {
   background: #e0f7f0;
   padding: 16px;
   border-left: 2px solid var(--line);
 }

 .sidebar h3 {
   margin-top: 0;
   font-size: 1rem;
   color: var(--primary);
 }

 .ann-item {
   border-bottom: 1px solid var(--line);
   padding: 10px 0;
   font-size: 0.9rem;
   transition: all 0.3s ease;
 }

 .ann-hidden {
   display: none !important;
 }

 .btn-more {
   background: transparent;
   border: 1px solid var(--primary);
   color: var(--primary);
   padding: 8px 16px;
   border-radius: 20px;
   font-size: 13px;
   font-weight: 600;
   cursor: pointer;
   transition: all 0.3s ease;
 }

 .btn-more:hover {
   background: var(--primary);
   color: #fff;
 }

 /* ===== OLD NEWS ===== */
 .old-news {
   text-align: justify;
   font-size: 13px;
   max-width: var(--maxw);
   margin: 0 auto 30px;
   padding: 0 20px;
   display: none;
   grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
   gap: 22px;
 }

 .old-item {
   padding-bottom: 14px;
   border-bottom: 1px solid var(--line);
 }

 .old-item p {
   font-size: 11px;
   text-align: justify;
   margin: 6px 0;
 }

 .old-item h3 {
   font-size: 16px;
   text-align: justify;
   margin: 6px 0;
 }

 .old-item img {
   width: 100%;
   height: 170px;
   object-fit: cover;
   margin-bottom: 8px;
 }

 /* ===== BUTTONS ===== */
 .controls {
   margin-top: 14px
 }

 button {
   background: transparent;
   border: 1px solid var(--primary);
   color: var(--primary);
   padding: 8px 16px;
   border-radius: 20px;
   font-size: 13px;
   font-weight: 600;
   cursor: pointer;
   transition: all 0.3s ease;
 }

 button.secondary {
   background: var(--primary);
   color: #fff;
 }


 /* ===== RESPONSIVE ===== */
 @media(max-width:480px) {
   .news-panel {
     grid-template-columns: 1fr
   }

   .news-panel {
     font-size: 13px;
   }

 }

 .news-footer {
   text-align: center;
   font-size: 0.8rem;
   color: var(--muted);
   margin: 30px 0;
   padding-bottom: 20px;
 }















 :root {
   --accent-yellow: #012952;
   --deep-forest: #1B4332;
   --soft-white: #F8F9FA;
   --glass: rgba(255, 255, 255, 0.8);
 }

 * {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
   font-family: 'Outfit', sans-serif;
 }

 body {
   background-color: #fff;
   color: #ffffff;
   line-height: 1.7;
 }





 .main-hero-sec {
   z-index: -4;
   top: -9rem;
   position: relative;
 }

 /* --- Creative Hero Header --- */
 .hero-section {
   background: var(--accent-yellow);
   padding: 120px 20px 180px;
   text-align: center;
   border-radius: 0 0 80px 80px;
   position: relative;
   overflow: hidden;
 }

 /* Animated background elements */
 .shape {
   position: absolute;
   background: rgba(255, 255, 255, 0.3);
   border-radius: 50%;
   z-index: 0;
 }

 .hero-content {

   position: relative;
   z-index: 1;
 }

 .hero-section h1 {
   font-size: clamp(3rem, 8vw, 5rem);
   font-weight: 800;
   letter-spacing: -2px;
   margin-bottom: 15px;
   color: #ffffff;
 }

 .hero-section p {
   text-align: justify;
   font-size: 1.2rem;
   max-width: 700px;
   margin: 0 auto;
   color: #ffffff;
   font-weight: 400;
 }

 /* --- Floating Image Gallery --- */
 .gallery-wrapper {
   max-width: 1100px;
   margin: -90px auto 30px;
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: 20px;
   padding: 0 20px;
 }

 .gallery-item {
   height: 250px;
   border-radius: 30px;
   background-size: cover;
   background-position: center;
   box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
   transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
   cursor: pointer;
 }

 .gallery-item:nth-child(even) {
   transform: translateY(40px);
 }

 .gallery-item:hover {
   transform: scale(1.05) translateY(-10px);
   z-index: 2;
 }

 /* --- Story Section --- */
 .section-container {

   max-width: 1200px;
   margin: 100px auto;
   padding: 0 5%;
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 80px;
   align-items: center;
 }

 .text-side h2 {
   text-align: left;
   font-size: 2.8rem;
   font-weight: 800;
   line-height: 1.1;
   margin-bottom: 25px;
 }

 .text-side p {
   text-align: justify;
 }

 .highlight-text {
   color: #011633;
   -webkit-text-stroke: 1px #000;
 }

 .visual-side {
   position: relative;
 }

 .main-img {
   width: 70%;
   border-radius: 40px;
   box-shadow: 15px 15px 0px var(--accent-yellow);
 }

 /* --- Scout Values (The 3 Icons) --- */
 .values-section {

   background: #ffffff;
   padding: 100px 5%;
   text-align: center;
 }

 .values-section h2 {
   font-size: 2.5rem;
 }

 .values-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
   gap: 40px;
   margin-top: 60px;
 }

 .value-card {
   background: white;
   padding: 50px 30px;
   border-radius: 40px;
   transition: 0.3s;
   border: 1px solid #eee;
 }

 .value-card:hover {
   box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
   border-color: var(--accent-yellow);
 }

 .icon-box {
   width: 90px;
   height: 90px;
   background: var(--accent-yellow);
   border-radius: 25px;
   display: flex;
   align-items: center;
   justify-content: center;
   margin: 0 auto 25px;
   font-size: 2rem;
   transform: rotate(-5deg);
 }

 /* --- Footer Quote --- */
 .quote-banner {
   background: #ffffff;
   color: rgb(0, 0, 0);
   padding: 10px 20px;
   text-align: center;
   margin-top: 50px;
 }

 .quote-banner h3 {
   font-size: 2rem;
   font-style: italic;
   font-weight: 300;
 }

 /* Scroll Reveal Animation */
 .reveal {

   opacity: 0;
   transform: translateY(50px);
   transition: all 1s ease;
 }

 .reveal.active {
   opacity: 1;
   transform: translateY(0);
 }

 @media (max-width: 900px) {
   .section-container {
     grid-template-columns: 1fr;
     text-align: center;
   }

   .gallery-wrapper {
     height: 100px;
     border-radius: 30px;
     grid-template-columns: repeat(4, 1fr);
   }

   .gallery-item:nth-child(even) {
     transform: none;
   }
 }







 .popup-overlay {
   display: none;
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: rgba(0, 0, 0, 0.8);
   z-index: 1000;
   justify-content: center;
   align-items: center;
 }

 /* Popup පෙට්ටිය */
 .popup-content {


   background: #fff;
   max-height: 540px;
   max-width: 540px;
   /* පරිගණක තිර සඳහා උපරිම පළල */
   position: relative;
   border-radius: 10px;
   overflow: hidden;
   animation: fadeIn 0.4s ease-in-out;
 }

 /* රූපය සකස් කිරීම */
 .popup-img {
   width: 100%;
   aspect-ratio: 1/1;
   /* 1080x1080 නිසා සමචතුරස්‍රව තබා ගනී */
   display: block;
   object-fit: cover;
 }

 .popup-text {
   padding: 30px;
   text-align: center;
 }

 .popup-badge {
   display: inline-block;
   background: #011633;
   padding: 5px 15px;
   border-radius: 50px;
   font-size: 0.75rem;
   font-weight: 600;
   color: #011633;
   margin-bottom: 15px;
   text-transform: uppercase;
   letter-spacing: 1px;
 }

 .popup-text p {
   color: #4a5568;
   font-size: 1rem;
   line-height: 1.6;
   margin-bottom: 25px;
 }

 .popup-btn {
   display: inline-block;
   background: #011633;
   color: #fff;
   padding: 12px 25px;
   border-radius: 50px;
   text-decoration: none;
   font-weight: 600;
   transition: all 0.3s ease;
   margin-bottom: 25px;
   border: 2px solid transparent;
 }

 .popup-btn:hover {
   background: #011633;
   color: #011633;
   transform: translateY(-2px);
 }

 .popup-meta {
   font-size: 0.9em;
   color: #666;
   margin-top: 10px;
 }

 /* වසා දැමීමේ බොත්තම (Close button) */
 .close-btn {
   position: absolute;
   top: 10px;
   right: 15px;
   font-size: 30px;
   color: #fff;
   cursor: pointer;
   text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
   z-index: 1001;
 }

 /* සජීවීකරණය */
 @keyframes fadeIn {
   from {
     transform: scale(0.7);
     opacity: 0;
   }

   to {
     transform: scale(1);
     opacity: 1;
   }
 }

 /* NEWS HEADLINE SIDEBAR STYLES */
 .news-headline-item {
   background: #e0f7f0;
   border-radius: 1px;
   padding: 12px !important;
   margin-bottom: 6px;

   transition: all 0.3s ease;
 }

 .news-headline-item:hover {
   border-color: var(--primary);
   transform: translateX(5px);
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
 }

 .news-headline-item strong {
   font-size: 14px;
   line-height: 1.3;
   display: block;
 }

 .news-headline-item small {
   font-size: 11px;
   color: var(--muted);
 }

/* =============================================
   SPECIAL NOTICE BANNER (below hero)
   ============================================= */
#special-notice-banner {
  position: relative;
  width: 100%;
  height: 340px;
  background: #03234d;
  border-top: 4px solid #f1c40f;
  border-bottom: 4px solid #f1c40f;
  padding: 0;
  overflow: hidden;
  z-index: 100;
  box-shadow: 0 5px 25px rgba(3, 35, 77, 0.4);
  animation: noticeBannerSlideIn 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes noticeBannerSlideIn {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

#notice-slides-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.notice-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.notice-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 6s ease;
}

.notice-slide:hover .notice-slide-img {
  transform: scale(1.05);
}

.notice-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(3, 35, 77, 0.95) 0%, rgba(3, 35, 77, 0.7) 45%, rgba(3, 35, 77, 0.2) 100%);
  display: flex;
  align-items: center;
  padding: 0 10%;
  z-index: 2;
}

.notice-slide-content {
  max-width: 580px;
  color: #ffffff;
  animation: noticeContentFadeUp 0.8s ease forwards;
}

@keyframes noticeContentFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.notice-slide-title {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #f1c40f;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.notice-slide-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: #e0e0e0;
  letter-spacing: 0.5px;
}

.notice-slide-text {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 20px;
  color: #d1d8e0;
  opacity: 0.95;
}

.notice-slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f1c40f;
  color: #03234d;
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(241, 196, 15, 0.35);
}

.notice-slide-btn i {
  transition: transform 0.2s ease;
}

.notice-slide-btn:hover {
  background: #ffffff;
  color: #03234d;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.notice-slide-btn:hover i {
  transform: translateX(4px);
}

/* Slide navigation buttons */
.notice-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.25s ease;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 5;
}

.notice-nav:hover {
  background: #f1c40f;
  color: #03234d;
  border-color: #f1c40f;
  box-shadow: 0 0 15px rgba(241, 196, 15, 0.4);
}

.notice-prev {
  left: 25px;
}

.notice-next {
  right: 25px;
}

/* Slide Indicator Dots */
.notice-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
  align-items: center;
}

.notice-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.25s ease;
}

.notice-dot.active {
  background: #f1c40f;
  width: 28px;
  border-radius: 10px;
}

/* Close/Dismiss Button */
.notice-banner-close {
  position: absolute;
  right: 20px;
  top: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  z-index: 10;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.notice-banner-close:hover {
  background: #f34235;
  color: #ffffff;
  border-color: #f34235;
  box-shadow: 0 0 10px rgba(243, 66, 53, 0.4);
  transform: rotate(90deg);
}

/* Slide-out animation when banner is closed */
#special-notice-banner.dismissed {
  animation: noticeBannerSlideOut 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes noticeBannerSlideOut {
  from { opacity: 1; height: 340px; }
  to   { opacity: 0; height: 0; padding: 0; border-width: 0; }
}

/* Responsive adjustments */
@media (max-width: 992px) {
  #special-notice-banner {
    height: 280px;
  }
  .notice-slide-title {
    font-size: 1.8rem;
  }
  .notice-slide-subtitle {
    font-size: 1.05rem;
  }
  .notice-slide-overlay {
    padding: 0 8%;
  }
}

@media (max-width: 768px) {
  #special-notice-banner {
    height: 240px;
  }
  .notice-slide-title {
    font-size: 1.5rem;
    margin-bottom: 6px;
  }
  .notice-slide-subtitle {
    font-size: 0.95rem;
    margin-bottom: 8px;
  }
  .notice-slide-text {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 12px;
  }
  .notice-slide-btn {
    padding: 8px 18px;
    font-size: 0.8rem;
  }
  .notice-slide-overlay {
    padding: 0 50px;
    background: linear-gradient(180deg, rgba(3, 35, 77, 0.45) 0%, rgba(3, 35, 77, 0.9) 100%);
    align-items: flex-end;
    padding-bottom: 40px;
  }
  .notice-nav {
    width: 34px;
    height: 34px;
    font-size: 0.8rem;
  }
  .notice-prev {
    left: 10px;
  }
  .notice-next {
    right: 10px;
  }
  .notice-banner-close {
    right: 10px;
    top: 10px;
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
}