/* Base Styles */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto; 
  background: linear-gradient(135deg, #000000, #1a1a1a, #000000) !Important;
  z-index: -20000 !important;
}

.DIVALL {
  background: #000000;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(177, 241, 108, 0.2);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  max-width: 90%;
  margin: 30px auto;
  color: #fff;
  opacity: 0;
  transform: translateY(50px);
  animation: slideUp 1s ease-out forwards;
}

.DIVALL:nth-child(2) { animation-delay: 0.2s; }
.DIVALL:nth-child(3) { animation-delay: 0.4s; }
.DIVALL:nth-child(4) { animation-delay: 0.6s; }

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.flex-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  text-align: left;
  flex-wrap: wrap;
}

.text-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-left: 20px;
}

.top-left {
  text-align: left;
}

.top {
  color: #b1f16c;
  font-size: 36px;
  font-weight: 700;
  text-shadow: 0 0 20px rgba(177, 241, 108, 0.5);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from { text-shadow: 0 0 20px rgba(177, 241, 108, 0.5); }
  to { text-shadow: 0 0 30px rgba(177, 241, 108, 0.8); }
}

.icons-text-group {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-top: 30px;
}

.icon-text-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 8px;
  border-radius: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.icon-text-row:hover {
  background: rgba(177, 241, 108, 0.1);
  transform: translateX(10px);
}

.icon-text-row a{
  text-decoration: none;
}

.icon {
  color: #B1F16C;
  font-size: 28px;
  min-width: 40px;
  transition: all 0.3s ease;
}

.icon-text-row:hover .icon {
  transform: scale(1.2) rotate(10deg);
}

.icon-text-row p.normal {
  margin: 0;
  font-size: 16px;
  color: #fff;
  text-align: left;
  padding-left: 0;
  transition: color 0.3s ease;
}

.icon-text-row:hover p.normal {
  color: #B1F16C;
}

.normal {
  color: #fff;
  font-size: 18px;
  line-height: 1.6;
}

.mic-name {
  margin-top: 10px;
  margin-bottom: 20px;
  color: #B1F16C;
  font-weight: 600;
}


.img-section {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
  border-radius: 20px;
  max-width: 400px;
  width: 100%;
}

.img-section img {
  width: 300px;
  height: auto;
  object-fit: contain;
  border-radius: 15px;
  transition: transform 0.3s ease;
  filter: drop-shadow(10px 10px 30px  rgba(255, 255, 255, 0.39));
}

.img-section:hover img {
  transform: scale(1.05) rotate(2deg);
}

.master-incharge-wrapper {
  position: relative;
  display: inline-block;
  margin: 20px;
}

.master-incharge {
  width: 400px;
  height: auto;
  z-index: 2;
  position: relative;
  border-radius: 15px;
  transition: all 0.3s ease;
  filter: drop-shadow(0 10px 30px rgba(254, 255, 253, 0.389));
}

.master-incharge:hover {
  transform: scale(1.02);
}

.master-incharge-wrapper::before {
  content: '';
  position: absolute;
  top: 46%;
  left: 50%;
  width: 390px;
  height: 340px;
  background: linear-gradient(45deg, rgba(243, 243, 243, 0.097), rgba(255, 255, 255, 0.119));
  transform: translate(-40%, -50%) rotate(45deg);
  z-index: -1;
  border-radius: 20px;
  animation: rotateBackground 20s linear infinite;
}

.qr-wrapper {
  position: relative;
  display: inline-block;
  margin: 20px;
}

.qr {
  width: 370px;
  height: auto;
  z-index: 2;
  position: relative;
  border-radius: 15px;
  transition: all 0.3s ease;
  filter: drop-shadow(0 10px 30px rgba(254, 255, 253, 0.389));
}

.qr:hover {
  transform: scale(1.02);
}

.qr-wrapper::before {
  content: '';
  position: absolute;
  top: 46%;
  left: 50%;
  width: 390px;
  height: 340px;
  background: linear-gradient(45deg, rgba(243, 243, 243, 0.097), rgba(255, 255, 255, 0.119));
  transform: translate(-40%, -50%) rotate(45deg);
  z-index: -1;
  border-radius: 20px;
  animation: rotateBackground 20s linear infinite;
}

@keyframes rotateBackground {
  0% { transform: translate(-50%, -50%) rotate(3deg); }
  100% { transform: translate(-50%, -50%) rotate(43deg); }
}


form {
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 900px;
  margin: 0 auto;
}

.form-group.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

form label {
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
  color: #B1F16C;
  font-size: 14px;
  letter-spacing: 0.5px;
}

form input,
form textarea {
  background: rgba(76, 76, 76, 0.8);
  color: #fff;
  border: 2px solid transparent;
  padding: 20px 18px;
  font-size: 16px;
  border-radius: 12px;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: #B1F16C;
  background: rgba(76, 76, 76, 0.9);
  box-shadow: 0 0 20px rgba(177, 241, 108, 0.3);
  transform: translateY(-2px);
}

form input::placeholder,
form textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

form textarea {
  resize: vertical;
  min-height: 180px;
}

form button {
  background: linear-gradient(135deg, #61B359, #B1F16C);
  padding: 18px 60px;
  color: #000;
  border: none;
  border-radius: 15px;
  font-weight: 700;
  cursor: pointer;
  align-self: center;
  font-size: 18px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
}

form button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(177, 241, 108, 0.4);
}

form button:active {
  transform: translateY(-1px);
}


.btn-loading {
  pointer-events: none;
  opacity: 0.8;
}

.btn-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid transparent;
  border-top: 2px solid #000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


.success-message {
  background: rgba(177, 241, 108, 0.2);
  border: 2px solid #B1F16C;
  color: #B1F16C;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  margin-top: 20px;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease;
}

.success-message.show {
  opacity: 1;
  transform: translateY(0);
}

/* Footer Styles */
footer {
    background-color: #36453B;
    color: #e0e0e0;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.footer-section {
    padding: 0;
}

.footer-middle-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-section h3 {
    color: white;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 20px;
    display: inline-block;
}

.footer-section p, .footer-section a {
    color: #e0e0e0;
    text-decoration: none;
    line-height: 1.8;
}

.footer-section .links a {
    display: block;
    margin-bottom: 10px;
}

.footer-section a:hover {
    color: #a2d5f2;
}

.footer-section .contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.footer-section .contact-item i {
    margin-right: 10px;
    color: #4CAF50;
}

.footer-logo {
    text-align: left;
    flex-shrink: 0;
}

.footer-logo img {
    max-width: 150px;
}

.footer-socials {
    display: flex;
    gap: 20px;
}

.footer-socials a {
    font-size: 1.4em;
}

.footer-quick-links {
    text-align: left;
}

.footer-bottom {
    width: 100%;
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #4a5a50;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9em;
    color: #b0b0b0;
}

/* Preloader Styles */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  background-color: #36453B; 
  display: flex;
  flex-direction: column; 
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s ease;
  height: 100vh;
  width: 100vw;
}

.preloader-img {
  max-width: 150px;
  max-height: 150px;
  object-fit: contain;
  animation: pulse 1.5s ease-in-out infinite;
}

.preloader-text {
    color: #e0e0e0;
    text-align: center;
    margin-top: 20px;
}

.preloader-text p {
    margin: 5px 0;
    font-size: 1em;
}

#preloader.fade-out {
  opacity: 0;
  pointer-events: none;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Chatbot Styles */
.chatbot-placeholder {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #4CAF50;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;

}

.main{
  background-image: url('../image/bg.png');
  background-repeat: repeat-y;
  background-size: 100vw auto;
  background-position: center top;
  margin: 0;
  padding: 50px 0;
 box-sizing: border-box;
}
/* About Page */
/* Mission and vision section styles*/

.mission-vision-section {

    display: flex;
    width: 90%;
    max-width: 1200px;
    margin: 100px auto 100px auto;
    background: #303234;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s, background 0.3s; /*additionaly added animations*/
}
.mission-vision-section:hover{
  box-shadow:0 0 40px 10px #b1f16c, 0 4px 24px rgba(0,0,0,0.15) ;
}
.mv-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #303234;
    color: #fff;
    padding: 40px 30px;
}

.mv-logo-col {
    flex: 1;
    align-items: center;
    justify-content: center;
    background: #36453B;
    min-width: 0;
    }

.mv-logo {
    width: 90%;
    max-width: 432px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 50%;
    box-shadow: 8px 8px 48px 8px rgba(182, 172, 172, 0.5); /* thicker, wider gray shadow */
}

.mv-text-col {
    flex: 2;
    background: #303234;
}

.mv-text-col h2 {
    font-family: 'Inter', sans-serif;
    font-weight: bold;
    font-size: 50px;
    align-items: center;
    margin-top: 0;
    margin-bottom: 10px;
    color: #B1F16C;
    line-height: 1.5
   
}

.mv-text-col p {
    font-family: 'Inter', sans-serif;
    margin-top: 0;
    text-align: justify;
    max-width: 800px;
    font-weight: 400;
    font-size: 20px;
    color: #ddd;
    line-height: 1.5
}

.what-do-why-join {
    display: flex;
    flex-direction: column;
    position: relative;
    max-width: 95%;
    margin: 100px auto 0 auto;
    border-radius: 50px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    background: #36453B;
    padding-bottom: 100px;
    padding-top: 50px;
    width:100%
}

.what-do-why-join h1 {
    font-family: 'Inter', sans-serif;
    font-size: 50px;
    font-weight: 800;
    align-items: left;
    text-align: center;
    color: #ddd;
    margin-bottom: 20px;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    justify-items: center;
    align-items: center;
    box-sizing: border-box;
    padding-left: 2%;
    padding-right: 2%;
    margin-top: 20px;
    margin-bottom: 20px;
    align-items: stretch; /* makes all cards in a row same height */
    
}

.card {
    border-radius: 25px; /* optional, adjust for rounded corners */
    background: linear-gradient(135deg, #000000, #1a1a1a, #048328) !Important;
    border: 1px solid white;
    padding: 20px;
    text-align: center;
    /* Animate cards from bottom to top */
    opacity: 0;
    transform: translateY(60px);
    transition: 
        opacity 0.6s cubic-bezier(.4,0,.2,1),
        transform 0.6s cubic-bezier(.4,0,.2,1),
        box-shadow 0.3s;
}


.card h2 {
    font-size: 26px;
    font-weight: bold;
    margin-top: 2px;
    margin-bottom: 4px;
    color: #B1F16C;
    font-family: 'Inter', sans-serif;
    padding-top: 20px;
    padding-bottom: 20px;
}

.card p {
    font-size: 18px;
    font-family: 'Inter', sans-serif;
    color: #ddd;
    margin-bottom: 10px;
    text-align: justify;
    line-height: 1.6;
}



/* When card is visible */
.card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Glow effect on hover/touch */
.card.glow {
    box-shadow: 0 0 40px 10px #b1f16c, 0 4px 24px rgba(0,0,0,0.15);
    background: #3a3e2f;
}

.animated-heading {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.6s cubic-bezier(.4,0,.2,1), transform 0.6s cubic-bezier(.4,0,.2,1);
    color: #B1F16C;
    font-weight: bold;
    font-size: 50px;
}

.animated-heading.visible {
    opacity: 1;
    transform: translateX(0);
  color: #B1F16C;
  font-size: 50px;
  font-weight: bold;
}

/* Home Page */
/* Hero Section */


.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    max-width: 600px;
    padding: 20px;
    color: white;
}

.hero-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 45px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.title-green {
    color: #b1f16c;
}

.title-white {
    color: white;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 20px;
}

.hero-description {
    font-family: 'Inria Sans', sans-serif;
    font-weight: 300;
    color: #aeaeae;
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 30px;
}

.cta-button {
    width: 230px;
    height: 71px;
    background: transparent;
    border: 1px solid white;
    color: white;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 20px;
    position: relative; /* Needed for z-index */
}

.cta-button:hover {
    background: white;
    color: black;
}

.cta-arrow {
    width: 20px;
    height: 20px;
    margin-left: 10px;
    /* Initial state (white arrow on transparent bg) */
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.cta-button:hover .cta-arrow {
    /* Hover state (black arrow on white bg) */
    filter: brightness(0) invert(0);
}

.decorative-circle {
    position: absolute;
    width: 500px;
    height: 500px;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
}

.circle-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(50% 50% at 50% 50%, rgba(202,255,199,0.4) 63%, rgba(54,54,54,0.25) 82%);
}

.circle-symbols {
    width: 90%;
    max-width: 432px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 50%;
}

.math-symbol {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Kristi', sans-serif;
    font-weight: 400;
    color: white;
    font-size: 64px;
}

/* Why We Love Math Section */
/* Why We Love Math Section */
.why-math-section {
    width: 100%;
    padding: 80px 0;
    background: #36453B;
    
}

.why-math-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    
}

.title-image-row {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

.why-math-image {
    flex: 0 0 150px; /* Fixed width for image container */
}

.why-math-img {
    width: 300px;
    height: 300px;
    display: block;
    border-radius: 1%;
}

.why-math-title {
    font-family: 'Inter', sans-serif;
    font-weight: bold;
    font-size: 70px;
    margin: 0;
    flex: 1; /* Takes remaining space */
    color: #b1f16c;
}

.why-math-title .love {
    color: #ff6c7e;
}

.quote-card {
    /* background: linear-gradient(to right, #000000, #9a9a9a); */
    background: #1c1c1d;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.quote-text {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    line-height: 2;
    margin: 0;
    color: white;
    font-weight: bold;
    font-size: 1.5em;
    
}

/* Guiding Section */
.guiding-section {
    width: 100%;
    padding: 80px 0;
    background: #000000;
    color: white;
    position: relative;
    line-height: 1;
    
}

.guiding-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background: #2e332b;
    border-radius: 28px;
}

.guiding-content {
    width: 60%;
    padding-right: 40px;
     border-radius: 20%;
     margin-top: 25px;
}

.guiding-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 40px;
    margin-bottom: 25px;
    color: #b1f16c;
    position: relative;
}

.guiding-title::after {
    content: '';
    display: block;
    width: 100%;
    height: 5px;
    margin-top: 15px;
}

.guiding-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 20px !important;
    line-height: 2;
    color: #e0e0e0;
    text-align: justify;
}

.guiding-text p {
    margin-bottom: 20px;
}

.guiding-text .bold {
    font-weight: bolder;
    color: #ff6c7e;
}

.profile-card {
    width: 35%;
    position: relative;
    height: 450px;
}

.profile-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: #151515;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.profile-img {
    position: absolute;
    width: 100%;
    top: 7.5%;
    left: 7.5%;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.profile-role {
    position: absolute;
    top: 10px; /* Position from top */
    right: 10px; /* Position from right */
    font-family: 'Inter', sans-serif;
    font-weight: bolder;
    color: #ff6c7e;
    font-size: 16px; /* Slightly smaller */
    padding: 6px 12px;
    border-radius: 15px;
    margin: 0;
    z-index: 2;
    text-align: center;
    line-height: 1.5px;
}

.profile-name {
    position: absolute;
    top: 25px; /* Positioned below the role */
    right: 10px; /* Aligned with role */
    font-family: 'Inter', sans-serif;
    font-weight: bold;
    color: white;
    font-size: 18px; /* Slightly smaller */
    padding: 6px 12px;
    border-radius: 15px;
    margin: 0;
    z-index: 2;
    text-align: center;
}

/* Impact Section */
.impact-section {
    width: 100%;
    padding: 80px 0;
    background: #36453B;
    text-align: center;
    color: white;
}

.impact-title {
    font-family: 'Inter', sans-serif;
    font-weight: bolder;
    font-size: 50px;
    margin-bottom: 60px;
}

.impact-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-item {
    width: 300px;
    padding: 20px;
    text-align: center;
}

.stat-icon {
    width: 200px;
    height: 200px;
    margin-bottom: 20px;

}

.stat-number {
    font-family: 'Inter', sans-serif;
    font-weight: bold;
    color: #b1f16c;
    font-size: 50px;
    margin-bottom: 10px;
}

.stat-label {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 25px;
    margin-bottom: 10px;
    color: white;
}

.stat-description {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.5;
    color: white;
}

/* Future Plans Section */
.future-section {
    color: white !important;
}

.future-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.future-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(54,72,44,0.8) 0%, rgba(0,0,0,0.64) 100%);
    z-index: -1;
}

.future-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.future-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 50px;
    margin-bottom: 20px;
}

.future-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 30px;
    margin-bottom: 60px;
}

.future-plans {
    max-width: 800px;
    margin: 0 auto;
}

.plan-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    text-align: left;
}

.plan-icon {
    width: 50px;
    height: 50px;
    margin-right: 25px;
}

.plan-text {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 25px;
    flex: 1;
    line-height: 1.5px;
}

/* News Page */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.header-carousel {
    margin-bottom: 4rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(45, 212, 191, 0.3);
}

.carousel-item {
    position: relative;
    text-align: center;
    color: white;
}

.carousel-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    filter: brightness(0.6);
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
}

.carousel-caption h2 {
    font-size: 3rem;
    font-weight: 800;
    margin: 0;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

.slick-dots li button:before {
    font-size: 12px;
    color: #2dd4bf;
    opacity: 0.5;
}
.slick-slide{
    height: auto !important;
}

.slick-dots li.slick-active button:before {
    color: #2dd4bf;
    opacity: 1;
}

.news-category {
    margin-bottom: 4rem;
}

.news-category h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f0f0f0;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #2dd4bf;
    display: inline-block;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.news-card {
    background-color: #262626;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    border: 1px solid #404040;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px rgba(45, 212, 191, 0.5);
}

.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #ffffff;
}

.card-metadata {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 1rem;
}

.card-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #b0b0b0;
    margin: 0 0 1.5rem 0;
    flex-grow: 1;
}

.btn-more-info {
    display: inline-block;
    background-color: transparent;
    color: #2dd4bf;
    border: 2px solid #2dd4bf;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-top: auto;
    cursor: pointer;
}

.btn-more-info:hover {
    background-color: #2dd4bf;
    color: #1a1a1a;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #262626;
    padding: 2.5rem;
    border-radius: 16px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid #404040;
    box-shadow: 0 0 40px rgba(45, 212, 191, 0.4);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.is-visible .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #b0b0b0;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease, transform 0.3s ease;
}

.modal-close:hover {
    color: #2dd4bf;
    transform: rotate(90deg);
}

.modal-content h3 {
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.modal-metadata {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.modal-content img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.modal-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: #c0c0c0;
    margin-bottom: 2rem;
}

.btn-source-link {
    display: inline-block;
    background-color: #2dd4bf;
    color: #1a1a1a;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-source-link:hover {
    background-color: #22a795;
    transform: scale(1.05);
}

.modal-footer {
    text-align: center;
}
.carousel-item {
  display: none;        /* hide by default */
  position: absolute;   /* stack slides on top of each other */
  width: 100%;
  top: 0;
  left: 0;
  transition: opacity 0.5s ease-in-out;
  opacity: 0;
}

.carousel-item.active {
  display: block;       /* show only active one */
  position: relative;   /* keep layout for the visible one */
  opacity: 1;
}


/* Base Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #36453B;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 40px;
    width: auto;
}

.second-logo {
    height: 35px;
}

/* Navigation Styles */
nav {
    display: flex;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    margin: 0 15px;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

nav a:hover {
    background-color: #c5c5c583;
    color: #ffffff;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    color: #ffffff;
    font-size: 18px;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #007bff;
    color: white;
}

/* Hamburger Menu (hidden by default) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    color:#ffffff;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
    color: #ffffff;
}

/* Mobile Navigation Menu */
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(80, 79, 79, 0.705);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
}

.mobile-nav.active {
    display: none;
}

.mobile-nav a {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    margin: 0;
    color:#ffffff;
}

/* Responsive Breakpoints */

/* Mobile-First Responsive Design - Media Queries for All Breakpoints */

/* Base styles - Mobile first (320px and up) */
/* Your base mobile styles here */

/* 320px - Mobile Portrait */
@media screen and (max-width: 320px) {
    /* Header */
    header {
        padding: 6px 10px;
    }
    
    .logo {
        height: 24px;
    }
    
    .second-logo {
        height: 22px;
    }
    
    .logo-container {
        gap: 6px;
    }
    
    /* Navigation */
    .mobile-nav a {
        padding: 10px 12px;
        font-size: 15px;
    }
    
    /* Typography */
    body {
        font-size: 14px;
    }
    
    .top {
        font-size: 28px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    /* Layout adjustments */
    .DIVALL {
        padding: 20px;
        margin: 15px auto;
        max-width: 95%;
    }
    
    .flex-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .img-section img {
        width: 200px;
    }
    
    .master-incharge {
        width: 280px;
    }
    
    .cta-button {
        width: 180px;
        height: 60px;
        font-size: 16px;
    }
    
    /* Form adjustments */
    form {
        padding: 0 10px;
    }
    
    .form-group.two-col {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Card layouts */
    .cards-container {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 5%;
    }
    
    .card {
        padding: 15px;
    }
    
    .card h2 {
        font-size: 20px;
        padding: 15px 0;
    }
    
    .card p {
        font-size: 16px;
    }
     /* Future plans */
    .future-title {
        font-size: 18px;
    }
    
    .future-subtitle {
        font-size: 12px;
    }
    
    .plan-text {
        font-size: 11px;
    }
}

/* 480px - Mobile Landscape */
@media screen and (max-width: 480px) {
    /* Header */
    header {
        padding: 8px 12px;
    }
    
    .mobile-nav a {
        padding: 12px 15px;
        font-size: 16px;
    }
    
    /* Typography */
    .top {
        font-size: 30px;
    }
    
    .hero-title {
        font-size: 35px;
    }
    
    .mv-text-col h2 {
        font-size: 40px;
    }
    
    .what-do-why-join h1 {
        font-size: 40px;
    }
    
    /* Layout */
    .DIVALL {
        padding: 25px;
        margin: 20px auto;
    }
    
    .img-section img {
        width: 250px;
    }
    
    .master-incharge {
        width: 320px;
    }
    
    .cta-button {
        width: 200px;
        height: 65px;
        font-size: 18px;
    }
    
    /* Mission Vision */
    .mission-vision-section {
        flex-direction: column;
        width: 95%;
        border-radius: 30px;
        margin: 80px auto;
    }
    
    .mv-logo-col {
        padding: 30px;
    }
    
    .mv-logo {
        width: 80%;
        max-width: 300px;
    }
    
    /* Cards */
    .cards-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .card h2 {
        font-size: 22px;
    }
    
    /* Hero section adjustments */
    .hero-content {
        left: 5%;
        max-width: 90%;
        padding: 15px;
    }
    
    .decorative-circle {
        display: none;
    }
    
    /* Impact section */
    .impact-section{
        overflow-x: scroll !important;
    }
    .impact-stats {
        flex-direction: column;
        gap: 30px;
        
    }
    
    .stat-item {
        width: 100%;
    }
    
    .stat-icon {
        width: 150px;
        height: 150px;
    }

     /* Future plans */
    .future-title {
        font-size: 17px;
    }
    .plan-text{
        font-size: 11px;
    }
    .plan-icon{
        width: 20px;
        height: 20px;
    }
    .future-subtitle {
        font-size: 15px;
    }
    
    .plan-text{
        font-size: 11px !important;
    }

    .icon-text-row p.normal{
        font-size: 11px;
        gap: 2px;
    }
    .cards-container{
        grid-template-columns:repeat(auto-fit,minmax(300px,1fr)) !important;

    }
    .master-incharge-wrapper::before{
        top: 45%;
        left: 54%;
        width: 230px;
        height: 230px;
    }
    .qr-wrapper::before{
        top: 45%;
        left: 54%;
        width: 230px;
        height: 230px;
    }
    .top{
        font-size: 30px;
    }
   .main{
    box-sizing: content-box !important;
   }
}


/* 600px - Large Mobile */
@media screen and (max-width: 600px) {
    /* Header */
    header {
        padding: 8px 15px;
    }
    
    .logo {
        height: 28px;
    }
    
    .second-logo {
        height: 25px;
    }
    
    .logo-container {
        gap: 8px;
    }
    
    /* Typography */
    .top {
        font-size: 32px;
    }
    
    .hero-title {
        font-size: 38px;
    }
    
    .mv-text-col h2 {
        font-size: 42px;
    }
    
    /* Layout */
    .DIVALL {
        padding: 30px;
    }
    
    .flex-container {
        gap: 30px;
    }
    
    .img-section img {
        width: 280px;
    }
    
    .master-incharge {
        width: 350px;
    }
    
    /* Guiding section */
    .guiding-container {
        flex-direction: column;
        padding: 20px;
    }
    
    .guiding-content {
        width: 100%;
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .profile-card {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    /* Why math section */
    .title-image-row {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .why-math-img {
        width: 200px;
        height: 200px;
    }
    
    .why-math-title {
        font-size: 50px;
    }
    
    /* News page */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .carousel-caption h2 {
        font-size: 2rem;
    }
}

/* 768px - Tablet Portrait */
@media screen and (max-width: 768px) {
    /* Header - Hamburger menu activates */
    nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .social-icons {
        display: none;
    }
    
    .mobile-nav .social-icons {
        display: flex;
        justify-content: center;
        padding: 20px;
        gap: 15px;
    }
    
    .mobile-nav .social-icons a {
        font-size: 20px;
        padding: 10px;
        background-color: #000000;
    }
    
    /* Typography */
    .top {
        font-size: 34px;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .mv-text-col h2 {
        font-size: 45px;
    }
    
    .what-do-why-join h1 {
        font-size: 42px;
    }
    
    /* Layout */
    .DIVALL {
        padding: 35px;
        margin: 25px auto;
    }
    
    .flex-container {
        flex-direction: column;
        align-items: center;
    }
    
    .text-section {
        padding-left: 0;
        text-align: center;
    }
    
    .img-section {
        max-width: 100%;
        padding: 20px;
    }
    
    .img-section img {
        width: 320px;
    }
    
    /* Cards */
    .cards-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
        padding: 0 5%;
    }
    
    /* Mission Vision */
    .mission-vision-section {
        flex-direction: column;
        width: 95%;
        border-radius: 35px;
    }
    
    .mv-text-col {
        text-align: center;
        padding: 30px;
    }
    
    /* Hero adjustments */
    .hero-content {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        text-align: center;
        max-width: 100%;
        margin: 50px 0;
    }
    
    /* Form adjustments */
    .form-group.two-col {
        grid-template-columns: 1fr;
    }
    
    /* Admin adjustments */
    .admin-shell .admin-body {
        grid-template-columns: 1fr;
    }
    
    .admin-shell .hamburger {
        display: block;
    }
    
    .admin-shell .admin-sidebar {
        position: fixed;
        left: -260px;
        top: 80px;
        width: 260px;
        height: calc(100vh - 80px);
        z-index: 999;
        transition: left 0.3s;
    }
    
    .admin-shell .admin-sidebar.active {
        left: 0;
    }
}

/* 900px - Tablet Landscape */
@media screen and (max-width: 900px) {
    /* Header */
    header {
        padding: 10px 20px;
    }
    
    nav a {
        margin: 0 10px;
        font-size: 15px;
        padding: 5px 8px;
    }
    
    .logo {
        height: 32px;
    }
    
    .second-logo {
        height: 28px;
    }
    
    /* Typography */
    .top {
        font-size: 36px;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .mv-text-col h2 {
        font-size: 48px;
    }
    
    /* Layout */
    .DIVALL {
        max-width: 95%;
        padding: 35px;
    }
    
    .flex-container {
        gap: 35px;
    }
    
    .img-section img {
        width: 350px;
    }
    
    .master-incharge {
        width: 380px;
    }
    
    /* Cards */
    .cards-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
    
    /* Mission Vision */
    .mission-vision-section {
        width: 92%;
        margin: 90px auto;
    }
    
    .mv-text-col h2 {
        font-size: 46px;
    }
    
    /* Why math */
    .why-math-title {
        font-size: 60px;
    }
    
    .why-math-img {
        width: 250px;
        height: 250px;
    }
    
    /* Impact section */
    .impact-title {
        font-size: 45px;
    }
    
    .stat-number {
        font-size: 45px;
    }
    
    .stat-label {
        font-size: 22px;
    }
    
    /* Future plans */
    .future-title {
        font-size: 45px;
    }
    
    .future-subtitle {
        font-size: 26px;
    }
    
    .plan-text {
        font-size: 22px;
    }
}

/* 1048px - Large Tablet */
@media screen and (max-width: 1048px) {
    /* Header */
    nav a {
        margin: 0 12px;
        padding: 6px 10px;
    }
    
    .social-icons {
        gap: 8px;
    }
    
    .social-icons a {
        font-size: 16px;
        padding: 6px;
    }
    
    /* Layout adjustments */
    .DIVALL {
        max-width: 92%;
    }
    
    .img-section img {
        width: 360px;
    }
    
    .master-incharge {
        width: 400px;
    }
    
    /* Cards */
    .cards-container {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
    
    /* Mission Vision keeps flex layout but adjusts spacing */
    .mv-text-col h2 {
        font-size: 48px;
    }
    
    .mv-text-col p {
        font-size: 18px;
    }
    
    /* Admin adjustments */
    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }
    
    .dashboard-card.wide-card {
        grid-column: span 2;
    }
}

/* 1200px - Small Desktop */
@media screen and (max-width: 1200px) {
    /* Header */
    header {
        padding: 10px 25px;
    }
    
    nav a {
        margin: 0 15px;
        font-size: 16px;
    }
    
    .logo {
        height: 35px;
    }
    
    .second-logo {
        height: 30px;
    }
    
    /* Layout */
    .DIVALL {
        max-width: 90%;
    }
    
    .flex-container {
        gap: 40px;
    }
    
    .img-section img {
        width: 380px;
    }
    
    /* Cards */
    .cards-container {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
    
    /* Mission Vision */
    .mv-text-col h2 {
        font-size: 50px;
    }
    
    /* Why math */
    .why-math-title {
        font-size: 65px;
    }
    
    .why-math-img {
        width: 280px;
        height: 280px;
    }
    
    /* Admin grid adjustments */
    .dashboard-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    .admin-cards {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* 1500px - Standard Desktop */
@media screen and (max-width: 1500px) {
    /* Header */
    header {
        padding: 10px 30px;
    }
    
    nav a {
        margin: 0 18px;
    }
    
    /* Standard desktop styling - most elements use default styles */
    .DIVALL {
        max-width: 88%;
    }
    
    .img-section img {
        width: 400px;
    }
    
    /* Cards maintain good sizing */
    .cards-container {
        grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    }
    
    /* Admin layouts */
    .dashboard-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* 2000px - Large Desktop */
@media screen and (max-width: 2000px) {
    /* Header */
    header {
        padding: 12px 40px;
    }
    
    nav a {
        font-size: 18px;
        margin: 0 20px;
    }
    
    /* Larger desktop optimizations */
    .DIVALL {
        max-width: 85%;
    }
    
    .top {
        font-size: 38px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .img-section img {
        width: 420px;
    }
    
    .master-incharge {
        width: 450px;
    }
    
    /* Cards can be larger */
    .cards-container {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }
    
    /* Mission Vision */
    .mv-text-col h2 {
        font-size: 52px;
    }
    
    .mv-text-col p {
        font-size: 21px;
    }
}

/* 2500px and above - Ultra-wide Screens */
@media screen and (min-width: 2500px) {
    /* Header */
    header {
        padding: 15px 50px;
    }
    
    .logo {
        height: 60px;
    }
    
    .second-logo {
        height: 55px;
    }
    
    nav a {
        font-size: 20px;
        margin: 0 25px;
        padding: 12px 18px;
    }
    
    .social-icons a {
        font-size: 24px;
        padding: 12px;
    }
    
    /* Ultra-wide optimizations */
    .DIVALL {
        max-width: 80%;
        padding: 50px;
    }
    
    .top {
        font-size: 42px;
    }
    
    .hero-title {
        font-size: 55px;
    }
    
    .hero-subtitle {
        font-size: 24px;
    }
    
    .hero-description {
        font-size: 22px;
    }
    
    .img-section img {
        width: 480px;
    }
    
    .master-incharge {
        width: 520px;
    }
    
    .cta-button {
        width: 260px;
        height: 80px;
        font-size: 22px;
    }
    
    /* Cards for ultra-wide */
    .cards-container {
        grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
        gap: 30px;
    }
    
    .card h2 {
        font-size: 30px;
    }
    
    .card p {
        font-size: 20px;
    }
    
    /* Mission Vision */
    .mv-text-col h2 {
        font-size: 58px;
    }
    
    .mv-text-col p {
        font-size: 24px;
    }
    
    /* Why math */
    .why-math-title {
        font-size: 80px;
    }
    
    .why-math-img {
        width: 350px;
        height: 350px;
    }
    
    /* Impact section */
    .impact-title {
        font-size: 58px;
    }
    
    .stat-number {
        font-size: 58px;
    }
    
    .stat-label {
        font-size: 28px;
    }
    
    .stat-description {
        font-size: 22px;
    }
    
    /* Future plans */
    .future-title {
        font-size: 58px;
    }
    
    .future-subtitle {
        font-size: 35px;
    }
    
    .plan-text {
        font-size: 28px;
    }
    
    /* Admin dashboard for ultra-wide */
    .dashboard-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    
    .dashboard-card.wide-card {
        grid-column: span 2;
    }
    
    .admin-cards {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

/* Range-based queries for specific device targeting */

/* Only Mobile Portrait (320px to 479px) */
@media screen and (min-width: 320px) and (max-width: 479px) {
    .mobile-only {
        display: block;
    }
    
    .desktop-only {
        display: none;
    }
}

/* Only Mobile Landscape (480px to 599px) */
@media screen and (min-width: 480px) and (max-width: 599px) {
    .mobile-landscape-only {
        display: block;
    }
}

/* Only Large Mobile (600px to 767px) */
@media screen and (min-width: 600px) and (max-width: 767px) {
    .large-mobile-only {
        display: block;
    }
}

/* Only Tablet Portrait (768px to 899px) */
@media screen and (min-width: 768px) and (max-width: 899px) {
    .tablet-portrait-only {
        display: block;
    }
}

/* Only Tablet Landscape (900px to 1047px) */
@media screen and (min-width: 900px) and (max-width: 1047px) {
    .tablet-landscape-only {
        display: block;
    }
}

/* Only Large Tablet (1048px to 1199px) */
@media screen and (min-width: 1048px) and (max-width: 1199px) {
    .large-tablet-only {
        display: block;
    }
}

/* Only Small Desktop (1200px to 1499px) */
@media screen and (min-width: 1200px) and (max-width: 1499px) {
    .small-desktop-only {
        display: block;
    }
}

/* Only Standard Desktop (1500px to 1999px) */
@media screen and (min-width: 1500px) and (max-width: 1999px) {
    .standard-desktop-only {
        display: block;
    }
}

/* Only Large Desktop (2000px to 2499px) */
@media screen and (min-width: 2000px) and (max-width: 2499px) {
    .large-desktop-only {
        display: block;
    }
}

/* Utility classes for responsive visibility */
.hide-mobile {
    display: block;
}

.hide-tablet {
    display: block;
}

.hide-desktop {
    display: block;
}

@media screen and (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

@media screen and (min-width: 769px) and (max-width: 1199px) {
    .hide-tablet {
        display: none !important;
    }
}

@media screen and (min-width: 1200px) {
    .hide-desktop {
        display: none !important;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-only {
        display: block !important;
    }
    
    header, footer, .mobile-menu-toggle, .chatbot-placeholder {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    .DIVALL {
        border: 1px solid #ccc;
        box-shadow: none;
        background: #fff;
        color: #000;
        page-break-inside: avoid;
    }
}
/* Ensure the footer is a positioning context */
footer {
  position: relative;
}

/* Admin login link: right-aligned, low visibility */
footer .log {
  position: absolute;
  cursor: default;
  left: 20px;          /* adjust spacing from right edge */
  bottom: 20px;         /* adjust spacing from bottom edge */
  opacity: 0.15;        /* low visibility */
  color: #8888889c;       /* subtle text color to match your theme */
  text-decoration: none;
  font-size: 11px;
  transition: opacity 0.2s ease, color 0.2s ease, transform 0.2s ease;
}



/* Optional: extra-low visibility on very small screens */
@media (max-width: 480px) {
  footer .log {
    right: 12px;
    bottom: 12px;
    font-size: 9px;
    opacity: 0.2;
  }
}





/* Admin Styles */
body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto; 
  background: linear-gradient(135deg, #000000, #1a1a1a, #000000) !Important;
}
:root {
  --admin-dark: #36453b;          
  --admin-accent: #4caf50;          
  --admin-sidebar: #2a3a30;         
  --admin-text-light: #e0e0e0;
  --admin-surface: #f5f7f6;         
  --admin-card-radius: 12px;       
  --admin-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --admin-danger: #d32f2f;
  --admin-warning: #ffa000;
  --admin-success: #388e3c;
}

/* Base Admin Shell */
.admin-shell { 
  background: var(--admin-surface);
  font-family: 'Work Sans', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header - Enhanced to match main site */
.admin-shell .admin-header {
  position: sticky; 
  top: 0; 
  z-index: 1000;
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  padding: 15px 30px; 
  background: var(--admin-dark); 
  color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
}

.admin-shell .admin-logo { 
  width: 50px; 
  height: 50px; 
  object-fit: contain; 
  margin-right: 12px;
}

.admin-shell .admin-brand { 
  display: flex; 
  align-items: center; 
  gap: 12px;
  font-weight: 500;
}

.admin-shell .brand-title { 
  font-weight: 700; 
  font-size: 1.2rem;
  line-height: 1.2;
}

.admin-shell .brand-sub { 
  font-size: 0.85rem; 
  opacity: .9;
  color: rgba(255,255,255,0.8);
}

/* Hamburger Menu - Improved */
.admin-shell .hamburger {
  background: rgba(255,255,255,0.1); 
  border: none; 
  color: #fff;
  padding: 8px 12px; 
  border-radius: 8px; 
  cursor: pointer;
  transition: all 0.3s;
  display: none;
}

.admin-shell .hamburger:hover {
  background: rgba(255,255,255,0.2);
}

.admin-shell .hamburger i { 
  font-size: 1.2rem;
}

/* User Controls - Enhanced */
.admin-shell .admin-user { 
  display: flex; 
  align-items: center; 
  gap: 15px;
}

.admin-shell .btn-ghost.small {
  color: #fff; 
  padding: 8px 14px; 
  border-radius: 8px; 
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.3);
  font-size: 0.9rem;
  transition: all 0.3s;
}

.admin-shell .btn-ghost.small:hover { 
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.4);
}

/* Body Layout - Improved */
.admin-shell .admin-body {
  display: grid; 
  grid-template-columns: 260px 1fr; 
  flex: 1;
}

/* Sidebar - Redesigned to match gradient theme */
.admin-shell .admin-sidebar {
  background: linear-gradient(180deg, var(--admin-sidebar) 0%, #1e2b24 100%);
  color: var(--admin-text-light);
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
}
.close-sidebar {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 12px 16px;
  text-align: right;
  width: 100%;
  transition: color 0.2s ease;display: block;
}

/* Hide on normal desktop (≥ 992px) */
@media screen and (min-width: 992px) {
  .close-sidebar {
    display: none !important;
  }
}

.close-sidebar:hover {
  color: var(--admin-accent); /* your green accent */
}

.admin-shell .admin-nav a,
.admin-shell .admin-nav .nav-section { 
  display: block; 
  padding: 12px 25px; 
  text-decoration: none;
  transition: all 0.3s;
}

.admin-shell .admin-nav a {
  color: var(--admin-text-light); 
  border-left: 4px solid transparent;
  margin: 2px 0;
  font-size: 0.95rem;
}

.admin-shell .admin-nav a:hover { 
  background: rgba(76, 175, 80, 0.1);
}

.admin-shell .admin-nav a.active {
  background: rgba(76, 175, 80, 0.2);
  border-left-color: var(--admin-accent);
  font-weight: 500;
}

.admin-shell .admin-nav a i {
  width: 24px;
  text-align: center;
  margin-right: 10px;
  font-size: 1rem;
}

.admin-shell .admin-nav .nav-section { 
  font-size: 0.8rem; 
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.6);
  margin-top: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Main Content Area */
.admin-shell .admin-main { 
  padding: 30px;
  background-image: url('../image/bg.png');
}

/* Cards - Matching main site style */
.admin-shell .admin-cards { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap: 20px;
  margin-bottom: 30px;
}

.admin-shell .admin-card {
  background: #fff; 
  border-radius: var(--admin-card-radius);
  padding: 24px;
  box-shadow: var(--admin-shadow);
  border: none;
  transition: transform 0.3s, box-shadow 0.3s;
}

.admin-shell .admin-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.admin-shell .admin-card h3 { 
  margin: 0 0 16px; 
  font-size: 1.1rem;
  color: var(--admin-dark);
  font-weight: 600;
}

/* Dashboard Specific Styles */
.dashboard-container {
  padding: 2rem;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.header-content h1 {
  font-size: 2rem;
  margin: 0;
  color: var(--admin-dark);
}

.welcome-message {
  margin: 0.5rem 0 0;
  color: #6c757d;
  font-size: 1rem;
}

.quick-stats {
  display: flex;
  gap: 1rem;
}

.stat-badge {
  background: white;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--admin-shadow);
}

.stat-badge i {
  color: var(--admin-accent);
  font-size: 1.1rem;
}

.stat-badge span {
  font-weight: 500;
  font-size: 0.95rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  justify-content: center !important;
}

.dashboard-card {
  background: white;
  border-radius: 12px;
  box-shadow: var(--admin-shadow);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  grid-column: span 1;
}

.dashboard-card.wide-card {
  grid-column: span 1.5;
}
.dashboard-card.wide-card .card-header
{
  justify-content: center;
}

.dashboard-card.wide-card .card-body p
{
  justify-content: center;
}

.card-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.card-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--admin-dark);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(76, 175, 80, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon i {
  color: var(--admin-accent);
  font-size: 1.25rem;
}

.card-body {
  flex: 1;
}

.progress-container {
  margin-bottom: 1.5rem;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.progress-info .count {
  font-weight: 600;
  color: var(--admin-dark);
}

.progress-info .count small {
  font-weight: normal;
  color: #6c757d;
}

.progress-bar {
  height: 8px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--admin-accent);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.card-footer {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1.5rem;
  justify-content: center;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.activity-item {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(76, 175, 80, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.activity-icon i {
  color: var(--admin-accent);
  font-size: 1rem;
}

.activity-content p {
  margin: 0;
  font-size: 0.95rem;
}

.activity-time {
  font-size: 0.85rem;
  color: #6c757d;
  margin-top: 0.25rem;
  display: block;
}

.view-all {
  margin-left: auto;
  font-size: 0.9rem;
  color: var(--admin-accent);
  text-decoration: none;
}

/* Tables - Enhanced */
.admin-shell .admin-table { 
  width: 100%; 
  border-collapse: separate;
  border-spacing: 0;
  background: #fff; 
  border-radius: var(--admin-card-radius);
  overflow: hidden;
  box-shadow: var(--admin-shadow);
}

.admin-shell .admin-table th, 
.admin-shell .admin-table td {
  padding: 14px 16px; 
  border-bottom: 1px solid #f0f0f0; 
  text-align: left;
}

.admin-shell .admin-table th { 
  background: var(--admin-dark);
  color: white;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.admin-shell .admin-table tr:last-child td {
  border-bottom: none;
}

.admin-shell .admin-table tr:hover td {
  background: rgba(76, 175, 80, 0.05);
}

/* Buttons & Actions - Consistent with main site */
.admin-shell .actions { 
  display: flex; 
  gap: 8px; 
  flex-wrap: wrap;
}

.admin-shell .btn {
  padding: 8px 14px; 
  border: 1px solid #ddd; 
  border-radius: 6px; 
  text-decoration: none; 
  background:#f6f6f6; 
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-shell .btn:hover { 
  background: #eee;
  transform: translateY(-1px);
}

.admin-shell .btn i {
  margin-right: 6px;
}

.admin-shell .btn-primary {
  background: var(--admin-accent);
  color: white;
  border-color: var(--admin-accent);
}

.admin-shell .btn-primary:hover {
  background: #3e9341;
  border-color: #3e9341;
}

.admin-shell .btn-outline {
  background: transparent;
  border-color: #ddd;
  color: white;
}

.admin-shell .btn-outline:hover {
  background: #f8f9fa;
}

.admin-shell .btn-danger { 
  background:#ffe9e9; 
  border-color:#ffb5b5;
  color: var(--admin-danger);
}

.admin-shell .btn-pub { 
  background:#e7f8ed; 
  border-color:#b6e2c4;
  color: var(--admin-success);
}

.admin-shell .btn-unpub { 
  background:#fff5e6; 
  border-color:#ffd59e;
  color: var(--admin-warning);
}

/* Form Page Styles */
.form-page-container {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 2rem;
}

.header-content h1 {
  font-size: 2rem;
  margin: 0 0 0.5rem;
  color: var(--admin-dark);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-content h1 i {
  color: var(--admin-accent);
}

.subtitle {
  margin: 0;
  color: #6c757d;
  font-size: 1rem;
}

.header-illustration img {
  width: 180px;
  height: auto;
}

.form-card {
  background: #000;
  border-radius: 12px;
  box-shadow: var(--admin-shadow);
  padding: 2rem;
  overflow: hidden;
}

.form-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #f0f0f0;
}

.form-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.section-title {
  font-size: 1.25rem;
  margin: 0 0 1.5rem;
  color: var(--admin-dark);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title span {
  width: 28px;
  height: 28px;
  background: var(--admin-accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.section-description {
  margin: -1rem 0 1.5rem;
  color: #6c757d;
  font-size: 0.95rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--admin-dark);
}

.input-with-icon {
  position: relative;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
}

.input-with-icon i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  pointer-events: none;   
  z-index: 0;
}

.input-with-icon input {
  padding-left: 3rem !important;
  width: calc(100% - 3rem);
}

.input-hint {
  font-size: 0.85rem;
  color: #6c757d;
  margin-top: 0.5rem;
}

/* Image Upload Styles */
.image-upload-container {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.upload-preview {
  width: 300px;
  height: 200px;
  border-radius: 8px;
  background: #f8f9fa;
  border: 1px dashed #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-default {
  text-align: center;
  color: #6c757d;
}

.preview-default i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #ddd;
}

.preview-default p {
  margin: 0;
  font-size: 0.9rem;
}

.upload-controls {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 1rem;
  width: fit-content;
}

.upload-btn input[type="file"] {
  display: none;
}

.upload-requirements {
  font-size: 0.85rem;
  color: #fff;
}

.upload-requirements p {
  margin: 0.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
}

.upload-requirements i {
  color: var(--admin-accent);
}

/* Color Picker Styles */
.color-picker .color-input {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.color-picker input[type="color"] {
  width: 50px;
  height: 50px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 2px;
  cursor: pointer;
}

.color-value {
  font-family: monospace;
  font-size: 0.9rem;
  color: #666;
  background: #f8f9fa;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
}

/* Angle Picker Styles */
.angle-picker .angle-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.angle-picker input[type="range"] {
  flex: 1;
  height: 8px;
  background: #ddd;
  border-radius: 4px;
  outline: none;
}

.angle-picker input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: var(--admin-accent);
  border-radius: 50%;
  cursor: pointer;
}

.angle-value {
  font-family: monospace;
  font-size: 0.9rem;
  color: #666;
  background: #f8f9fa;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  min-width: 50px;
  text-align: center;
}

/* Style Preview */
.style-preview {
  margin-bottom: 1.5rem;
  max-width: 100%;
}

.preview-card {
  padding: 1.5rem;
  border-radius: 8px;
  color: white;
  max-width: 350px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin: 0 auto;
}

.preview-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.preview-card p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f0f0f0;
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

/* Events Page Styles */
.events-page-container {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.header-content h1 {
  font-size: 2rem;
  margin: 0 0 0.25rem;
  color: var(--admin-dark);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-content h1 i {
  color: var(--admin-accent);
}

.subtitle {
  margin: 0;
  color: #6c757d;
  font-size: 1rem;
}

.header-actions {
  display: flex;
  gap: 1rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: var(--admin-shadow);
}

.empty-icon {
  font-size: 3rem;
  color: #ddd;
  margin-bottom: 1.5rem;
}

.empty-state h3 {
  margin: 0 0 0.5rem;
  color: var(--admin-dark);
}

.empty-state p {
  margin: 0 0 1.5rem;
  color: #6c757d;
}

/* Events Table */
.events-table-container {
  background: white;
  border-radius: 12px;
  box-shadow: var(--admin-shadow);
  overflow: hidden;
}

.events-table {
  width: 100%;
  border-collapse: collapse;
}

.events-table thead {
  background: var(--admin-dark);
  color: white;
}

.events-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.events-table td {
  padding: 1rem;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

.events-table tr:last-child td {
  border-bottom: none;
}

.events-table tr:hover td {
  background: rgba(76, 175, 80, 0.05);
}

/* Table Columns */
.id-col {
  width: 60px;
  font-weight: 600;
  color: var(--admin-dark);
}

.title-col {
  min-width: 250px;
}

.event-title {
  font-weight: 500;
  color: var(--admin-dark);
  margin-bottom: 0.25rem;
}

.event-description {
  font-size: 0.85rem;
  color: #6c757d;
}

.date-col {
  white-space: nowrap;
  color: var(--admin-dark);
}

.status-col {
  width: 120px;
}

.status-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
}

.status-badge.published {
  background: rgba(56, 142, 60, 0.1);
  color: var(--admin-success);
}

.status-badge.draft {
  background: rgba(255, 160, 0, 0.1);
  color: var(--admin-warning);
}

.image-col {
  width: 100px;
}

.event-image-preview {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
}

.event-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.actions-col {
  width: 220px;
}

.action-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.action-form {
  display: inline;
}

.btn-sm {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
}

/* Edit Event Specific Styles */
.current-image-preview {
  width: 300px;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
  position: relative;
}

.current-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-label {
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  border-bottom-right-radius: 8px;
}

/* Form Grid Adjustments */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Style Preview Container */
.style-preview-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.style-preview {
  margin-bottom: 1.5rem;
}

.preview-card {
  padding: 1.5rem;
  border-radius: 8px;
  color: white;
  max-width: 350px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin: 0 auto;
}

.preview-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.preview-card p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Color Picker Styles */
.color-picker .color-input {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.color-picker input[type="color"] {
  width: 50px;
  height: 50px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 2px;
  cursor: pointer;
}

.color-value {
  font-family: monospace;
  font-size: 0.9rem;
  color: #666;
  background: #f8f9fa;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
}

/* Angle Picker Styles */
.angle-picker .angle-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.angle-picker input[type="range"] {
  flex: 1;
  height: 8px;
  background: #ddd;
  border-radius: 4px;
  outline: none;
}

.angle-picker input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: var(--admin-accent);
  border-radius: 50%;
  cursor: pointer;
}

.angle-value {
  font-family: monospace;
  font-size: 0.9rem;
  color: #666;
  background: #f8f9fa;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  min-width: 50px;
  text-align: center;
}

/* Slide Form Specific Styles */
.slide-form {
  max-width: 800px;
  margin: 0 auto;
}

.position-selector {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
}

.position-option {
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 2px solid #ddd;
  text-align: center;
  line-height: 36px;
  cursor: pointer;
  transition: all 0.3s;
}

.position-option input {
  display: none;
}

.position-option.active {
  border-color: var(--admin-accent);
  background-color: rgba(76, 175, 80, 0.1);
  color: var(--admin-accent);
  font-weight: bold;
}

.position-option:hover {
  border-color: var(--admin-accent);
}

/* Image Upload Styles */
.image-upload-container {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.upload-preview {
  width: 300px;
  height: 170px; /* 16:9 aspect ratio */
  border-radius: 8px;
  background: #f8f9fa;
  border: 1px dashed #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-default {
  text-align: center;
  color: #6c757d;
}

.preview-default i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #ddd;
}

.preview-default p {
  margin: 0;
  font-size: 0.9rem;
}

.upload-controls {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 1rem;
  width: fit-content;
}

.upload-btn input[type="file"] {
  display: none;
}

.upload-requirements {
  font-size: 0.85rem;
  color: #6c757d;
}

.upload-requirements p {
  margin: 0.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.upload-requirements i {
  color: var(--admin-accent);
}

/* Slides Page Styles */
.slides-page-container {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.header-content h1 {
  font-size: 2rem;
  margin: 0 0 0.25rem;
  color: var(--admin-dark);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-content h1 i {
  color: var(--admin-accent);
}

.subtitle {
  margin: 0;
  color: #6c757d;
  font-size: 1rem;
}

.header-actions {
  display: flex;
  gap: 1rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: var(--admin-shadow);
}

.empty-icon {
  font-size: 3rem;
  color: #ddd;
  margin-bottom: 1.5rem;
}

.empty-state h3 {
  margin: 0 0 0.5rem;
  color: var(--admin-dark);
}

.empty-state p {
  margin: 0 0 1.5rem;
  color: #6c757d;
}

/* Slides Table */
.slides-table-container {
  background: white;
  border-radius: 12px;
  box-shadow: var(--admin-shadow);
  overflow: hidden;
}

.slides-table {
  width: 100%;
  border-collapse: collapse;
}

.slides-table thead {
  background: var(--admin-dark);
  color: white;
}

.slides-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.slides-table td {
  padding: 1rem;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

.slides-table tr:last-child td {
  border-bottom: none;
}

.slides-table tr:hover td {
  background: rgba(76, 175, 80, 0.05);
}

/* Table Columns */
.position-col {
  width: 80px;
}

.position-badge {
  display: inline-flex;
  width: 36px;
  height: 36px;
  background: var(--admin-accent);
  color: white;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.preview-col {
  width: 200px;
}

.slide-preview {
  width: 160px;
  height: 90px; /* 16:9 aspect ratio */
  border-radius: 8px;
  overflow: hidden;
}

.slide-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-col {
  min-width: 250px;
}

.slide-title {
  font-weight: 500;
  color: var(--admin-dark);
  margin-bottom: 0.25rem;
}

.slide-date {
  font-size: 0.9rem;
  color: #6c757d;
}

.status-col {
  width: 150px;
}

.status-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.status-badge.published {
  background: rgba(56, 142, 60, 0.1);
  color: var(--admin-success);
}

.status-badge.draft {
  background: rgba(255, 160, 0, 0.1);
  color: var(--admin-warning);
}

.published-info, .draft-info {
  font-size: 0.8rem;
  color: #6c757d;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.actions-col {
  width: 220px;
}

.action-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.action-form {
  display: inline;
}

.btn-sm {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
}

/* Edit Slide Specific Styles */
.current-image-preview {
  width: 300px;
  height: 170px; /* 16:9 aspect ratio */
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
  position: relative;
}

.current-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-label {
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  border-bottom-right-radius: 8px;
}

.position-selector {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
}

.position-option {
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 2px solid #ddd;
  text-align: center;
  line-height: 36px;
  cursor: pointer;
  transition: all 0.3s;
}

.position-option input {
  display: none;
}

.position-option.active {
  border-color: var(--admin-accent);
  background-color: rgba(76, 175, 80, 0.1);
  color: var(--admin-accent);
  font-weight: bold;
}

.position-option:hover {
  border-color: var(--admin-accent);
}

.image-upload-container {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.upload-preview {
  width: 300px;
  height: 170px;
  border-radius: 8px;
  background: #f8f9fa;
  border: 1px dashed #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.upload-controls {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 1rem;
  width: fit-content;
}

.upload-btn input[type="file"] {
  display: none;
}

.upload-requirements {
  font-size: 0.85rem;
  color: #6c757d;
}

.upload-requirements p {
  margin: 0.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Footer - Consistent with main site */
.admin-shell .admin-footer {
  background: var(--admin-dark); 
  color: #cfd8dc; 
  text-align: center;
  padding: 15px;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: auto;
}

/* Page Header */
.admin-page-header {
  margin-bottom: 2rem;
}

.admin-page-header h1 {
  color: var(--admin-dark);
  margin: 0 0 0.5rem;
  font-size: 1.8rem;
  font-weight: 700;
}

.admin-subtitle {
  color: #6c757d;
  margin: 0;
  font-size: 1rem;
}

/* Alerts */
.alert {
  padding: 0.8rem 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.alert-error {
  background: #ffebee;
  color: var(--admin-danger);
}

.alert-success {
  background: #e7f8ed;
  color: var(--admin-success);
}

.alert-warning {
  background: #fff5e6;
  color: var(--admin-warning);
}

/* News Form Specific Styles */
.admin-form-container {
  max-width: 900px;
  margin: 0 auto;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
  color: #fff;
  font-size: 0.95rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* File Upload */
.file-upload-wrapper {
  margin-bottom: 0.5rem;
}

.file-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--admin-accent);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.file-upload-btn:hover {
  background: #3e8e41;
}

.file-upload-btn input[type="file"] {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}

.input-hint {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.25rem;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--admin-accent);
  color: white;
  border: none;
}

.btn-primary:hover {
  background: #3e8e41;
  transform: translateY(-1px);
}

.btn-outline {
  background: white;
  color: var(--admin-dark);
  border: 1px solid #ddd;
}

.btn-outline:hover {
  background: #f5f5f5;
}

/* Alert */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.alert-error {
  background: #ffebee;
  color: #d32f2f;
  border: 1px solid #ffcdd2;
}

.alert i {
  font-size: 1.1rem;
}

/* Icons */
.far.fa-newspaper {
  margin-right: 0.5rem;
}
/* =========================
   Responsive Styles
========================= */

/* Mobile / Small Devices */
@media (max-width: 991px) {
  .admin-shell .admin-body {
    grid-template-columns: 1fr; /* sidebar collapses */
  }

  .admin-shell .admin-sidebar {
    position: fixed;
    top: 0;
    left: -260px;
    width: 260px;
    height: 100%;
    z-index: 2000;
    transition: left 0.3s;
  }

  .admin-shell .admin-sidebar.active {
    left: 0;
  }

  .admin-shell .hamburger {
    display: inline-flex;
  }

  .admin-shell .admin-main {
    padding: 20px 15px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-card.wide-card {
    grid-column: span 2;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .image-upload-container {
    flex-direction: column;
  }

  .upload-preview {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
  }

  .style-preview-container {
    flex-direction: column;
  }

  .slides-table-container,
  .events-table-container {
    overflow-x: auto;
  }
  .mobile-nav.active {
    display: block;
  }
}

/* Extra Small Devices / Phones */
@media (max-width: 575px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-card.wide-card {
    grid-column: span 1;
  }

  .admin-shell .admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .admin-shell .admin-user {
    flex-wrap: wrap;
    gap: 10px;
  }

  .events-page-container {
    padding: 1rem;
  }

  .form-header,
  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .quick-stats {
    flex-direction: column;
  }
}

