*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}


:root{
   
    --snd-bg-color: #fdf0d5; /* Soft beige secondary background */
    --text-color: #3e3e3e; /* Deep brown for primary text */
    --main-color: #5a3e2b; /* Rich brown for headings or strong accents */
    --bg-color: #fdf6ec; /* Light creamy beige main background */
    --white-4345: #f9f6f0; /* Near-white with warm tone */
    --bg-shade: #faebdd; /* Subtle background contrast */
    --img-bg-shade: rgba(250, 235, 221, 0.6); /* Beige translucent background for images */
    --primary-text-color: #4e342e; /* Slightly darker warm brown */
    --secondary-text-color: #926f57; /* Light brown for secondary elements */
    --nav-bgcolor: #f2d087; /* Warm yellow beige for navbar */
    --accent-color: #cda274; /* Tan - for buttons, links, highlights */
    --accent-color-dark: #856113; /* Deep goldish-brown for hover or emphasis */
    --padding-inline-section: 10px;
    --footer-bgColor: #e7c6b6; /* Warm dusty rose-beige for footer */
    --placeholder-color: #8a7e74; /* Muted warm gray for placeholder text */
    --input-bg-color: #f0e3d3; 
    --card-bg-color: #fff;  
}


.dark-mode {
  --nav-bgcolor: #a58b52; /* Tan brown navbar */
  --bg-color: #1c1a17; /* Warm charcoal background */
  --bg-shade: #2a2723; /* Slightly lighter for cards or sections */
  --img-bg-shade: rgba(80, 78, 78, 0.5); /* Soft contrast for image containers */
  --primary-text-color: #fdf0d5; /* Warm light beige text */
  --secondary-text-color: #b5a08a; /* Light beige for secondary text */
  --tertiary-color: #d4b996; /* Soft accent like glowing buttons */
  --footer-bgColor: #a58672; /* Warm clay brown */
  --placeholder-color: #b9a89f;
  --input-bg-color: #3f3b3c; /* Dark beige input fields */
  --accent-color: #cda274; /* Keep accent consistent */
  --accent-color-dark: #d4b996;
  --card-bg-color: #1e1e1e;
}




.main:not(.dark-mode){
  
    margin-top: 60px; /* Updated to match navbar height */
}

#mode{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}



body{
    font-family: "Raleway", sans-serif;
    color: var(--primary-text-color);
}



h1{
    font-size: 3rem;
}
h2{
    font-size: 2rem;
}
h3{
    font-size: 1.5rem;
}
p{
    font-family: 'Poppins',sans-serif;
    font-size: 1.25rem;
    color: var(--secondary-text-color);
    line-height: 1.8rem;

}
a{
    text-decoration: none;
    display: inline-block;
}
.container{
margin-inline: auto;
padding-inline: var(--padding-inline-section);


}

.primary-button{
    background-color: var(--accent-color);
    border-radius: 6px;
    font-weight: 700;
    color: white;
    padding: 12px 24px ;
    box-shadow:0 0 2px var(--secondary-text-color) ;
    transition: all 0.3s ease;
}
.primary-button{
    background-color: var(--accent-color-dark);
}
.flex{
    display: flex;
    align-items: center;
}


nav {
    padding: 5px 15px;
    background-color: var(--nav-bgcolor);
    height: 60px; /* Reduced height for less spacing */
    display: flex; 
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-family: 'Segoe UI', sans-serif;
}

/* Navbar container styling */
nav .nav-first,
nav .nav-end {
    display: flex;
    align-items: center;
    gap: 15px;
}

nav .nav-first {
    flex-shrink: 0;
}

nav .nav-end {
    flex-shrink: 0;
    margin-left: auto;
}

/* Left side: back button + logo */
.nav-first {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Right side: nav links */
.nav-end {
  display: flex;
  align-items: center;
  gap: 1rem;
}

nav ul {
    margin: 0;
    padding: 0;
    color: var(--primary-text-color);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px; /* Reduced gap */
}

nav ul li a {
    text-decoration: none;
    position: relative;
    color: var(--primary-text-color);
    margin: 0 4px; /* Reduced margin */
    font-size: 15px; /* Slightly smaller font */
    letter-spacing: 0.3px;
    font-weight: 600;
    padding: 8px 12px; /* Reduced padding */
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Active tab styling */
nav ul li a#active,
nav ul li a.active {
    background-color: var(--accent-color);
    color: var(--white-4345);
    
}

/* Hover effects */
nav ul li a:hover {
    background-color: var(--accent-color);
    color: var(--white-4345);
    transform: translateY(-1px);
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--accent-color-dark);
    color: var(--white-4345);
}

nav .logo {
    font-size: 22px; /* Reduced logo size */
    color: var(--main-color);
    font-weight: 600;
    font-family: "Cinzel",serif;
    text-decoration: none;
    flex-shrink: 0; /* Prevent logo from shrinking */
}

nav .logo a {
    text-decoration: none;
    color: inherit;
}

nav #mitra {
    margin: 0;
    padding: 0;
    color: var(--main-color);
}

nav .menu-btn {
  flex-grow: 1;
}




/* Mode toggle button */
nav #mode {
    width: 28px; /* Reduced size */
    height: 28px;
    cursor: pointer;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

nav #mode:hover {
    transform: scale(1.1);
}

/* Back button styling */
nav .back-button {
    background: var(--accent-color);
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--main-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 35px;
}

nav .back-button:hover {
    background: var(--accent-color-dark);
    color: var(--white-4345);
    transform: translateX(-2px);
}

nav .back-button i {
    font-size: 16px;
}


section{
    padding: 20px var(--padding-inline-section) 50px; /* Reduced top padding */
    background: var(--bg-shade);

    
}
.main-page{
    margin-top: 0; /* Remove margin since .main already has it */
    justify-content: center;
    gap: 50px;
    padding-bottom: 5%;
    
 
}

/* Additional mobile responsive fixes for main content */
@media (max-width: 1000px) {
    section {
        padding-top: 20px; /* Reduce section padding on mobile */
    }
}

@media (max-width: 450px) {
    section {
        padding-top: 15px; /* Further reduce padding on very small screens */
    }
}
.header-left{
   max-width: 40vw;
}
.header-left h1{
    margin-top: 20px;
}


/* Light mode */
body.light-mode .quote-box {
  background: #fff8e7;
  color: #6B4F1D;
  border-left: 4px solid #6B4F1D;
}

/* Dark mode */
body.dark-mode .quote-box {
  background: #1e1f20;
  color: #f1f1f1;
  border-left: 4px solid #f1f1f1;
}


.quote-box {
  width: 90%;
  padding: 12px 20px;
  margin: 15px auto;
  text-align: center;
  font-style: italic;
  font-weight: 500;
  border-radius: 8px;
  max-width: 500px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: all 0.3s ease; 
  cursor: pointer;
}


#quote-text {
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}
#quote-text.show {
  opacity: 1;
}

.quote-title {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
#quote-text::before {
  content: "“"; /* opening quote */
  font-size: 22px;
  color: #6B4F1D;
  margin-right: 4px;
}
#quote-text::after {
  content: "”"; /* closing quote */
  font-size: 22px;
  color: #6B4F1D;
  margin-left: 4px;
}

#quote-text {
  font-size: 20px;
  font-weight: bold;
  white-space: pre-wrap; 
  border-right: 2px solid #333; 
  display: inline-block;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0% { border-color: transparent; }
  50% { border-color: #333; }
  100% { border-color: transparent; }
}

/* Hover effect */
.quote-box:hover {
   transform: translateY(-2px);
}

/* === Responsive Media Queries === */

/* Tablets */
@media (max-width: 768px) {
  .quote-title { font-size: 13px; }
  #quote-text { font-size: 18px; }
}

/* Mobile */
@media (max-width: 480px) {
  .quote-title { font-size: 12px; }
  #quote-text { font-size: 16px; }
  .quote-box { padding: 10px 15px; }
}

.header-right img{
    width: 100%;             /* bigger than before, try 15–20% */
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin-left: 1rem;      /* pushes it away from the extreme left */
  max-width: 400px;       /* keeps it from becoming *too* big on wide screens */
  min-width: 120px;  
}
.get-started-btn{
    margin-top: 20px;
    transition: all 0.3s ease;

}



.get-started-btn:hover {
    transform: translateY(-3px); /* Smooth upward lift */
    background-color: var(--accent-color-dark); /* Warm brown hover */
    color: var(--white-4345); /* Light text on hover */
    transition: all 0.3s ease;
}

#click {
    display: none;
}

.container1 {
    display: flex;
    gap: 40px;
    margin: 60px;
    justify-content: space-around; 
    align-items: stretch;
    background-color: var(--bg-shade); /* Beige background */
    flex-wrap: wrap; 
    padding: 20px; 
    box-sizing: border-box; 
    border-radius: 15px;
}

.card {
    background-color: var(--card-bg-color); /* Light beige */
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    border: 3px solid var(--accent-color); /* Warm brown border */
    transition: transform 0.3s ease;
    height: auto; 
    overflow: hidden; 
    box-sizing: border-box; 
    /* padding: 10px; */
    display: flex; 
    flex-direction: column; 
    justify-content: space-between;
    width:25%;
    position: relative;

}

.card img{
  transition: scale 0.5s ease;
}

.card:hover img{
  scale:1.1
}

.card i {
  position: absolute;
  z-index: 1;
  background: rgba(24, 23, 23, 0.802);
  border-radius: 50%;
  width:45px;
  height:45px;
  font-size: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  color:#FCD34D;
  right:20px;
  top:15px;
}

.card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1; 
    padding: 10px; 
}

.card a:hover {
    background: var(--main-color); /* Bright brown/pink tone */
    color: var(--white-4345); /* Light beige text */
    box-shadow: 0 0 0.8rem var(--main-color);
}

.card-title {
    font-size: 1.5rem;
    font-weight: bold; 
    color: var(--primary-text-color); /* Usually dark brown */
    margin-bottom: 10px;
}

.card-text {
    font-size: 1rem; 
    color: var(--secondary-text-color); /* Softer brown */
    line-height: 1.5; 
    flex-grow: 1; 
    margin-bottom: 15px;
    text-align: center;
}

.btn-outline-primary:hover {
    background: var(--main-color); 
    color: var(--white-4345);
    box-shadow: 0 0 0.8rem var(--main-color);
}


.service {
    background: var(--bg-shade);
   
}

.para{
    color: var(--primary-text-color);
    font-weight: bold;
    align-items: center;
    text-align:center;
    padding: 10px 20px;
    margin: 30px;
}


.para span{
    color:#cf8133;
}

.service-heading{
    text-align: center;
    margin-bottom:2%;
    text-decoration: dashed;
   list-style:lower-latin;
   font-family: "Cinzel", serif;
  border-bottom: 2px solid #FCD34D;
   font-size: 4rem;
   width: fit-content;
   margin-left: auto;
   margin-right: auto;
   font-weight: 600;



}

/* Main Calculator Section */
/* Dark Mode Support */
body.dark-mode {
  background-color: #1a1a1a;
  color: #f0e9e1;
}

body.dark-mode .main,
body.dark-mode .calculator-box,
body.dark-mode #calculator .tab-content,
body.dark-mode #subject-container .row,
body.dark-mode #cgpa-container .row {
  background-color: #2b2b2b;
  color: #f0e9e1;
}

body.dark-mode .nav-tabs .nav-link {
  color: #ccc;
}

body.dark-mode .nav-tabs .nav-link.active {
  background-color: #4e4e4e;
  color: #ffffff;
}

body.dark-mode input,
body.dark-mode select {
  background-color: #3c3c3c;
  color: #fff;
  border: 1px solid #666;
}

body.dark-mode .btn-primary {
  background-color: #bb995c;
  color: #1a120b;
}

/* Service heading color only in dark mode */
body.dark-mode .service-heading{
  color:#FDE68A;
  border-bottom: 2px solid #FDE68A;
  border-width: 10%;
  
}
body.dark-mode .para{
  color:#e3d5a7;
  
}

/* Dark mode: Announcement information grid */
body.dark-mode .information{
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));

}
body.dark-mode .information > div{
  background: #232428;
  border: 1px solid rgba(252, 211, 77, 0.35);
  box-shadow: 0 10px 18px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(0,0,0,0.12);
  border-radius: 16px;
  padding: 20px 24px;
  transition: transform 0.5s ease;
}
body.dark-mode .information > div b{
  color:#FDE68A
}
body.dark-mode .information > div p{
  margin: 0;
  color: #E6E0C8;
}

body.dark-mode .information > div:hover{
  transform: translateY(-5px);
  
}
@media (max-width: 768px){
  body.dark-mode .information{
    grid-template-columns: 1fr;
  }
}



/* Dark mode variant */
body.dark-mode .user-experience li{
  background: #232428;
  border: 1px solid rgba(252, 211, 77, 0.35);
  box-shadow: 0 10px 18px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(0,0,0,0.12);
}
body.dark-mode .user-experience li b{ color: #FDE68A; }
body.dark-mode .user-experience li,
body.dark-mode .user-experience li span{ color: #E6E0C8; }

@media (max-width: 768px){
  .user-experience ul{ grid-template-columns: 1fr; }
}


.about-section-landing{
  
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 8px;
  padding: 10px 0;
}
.about-section-landing h2{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #1b1b1b;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 12px;
 
  margin: 18px 0 8px 0;
 
}

.about-section-landing p:hover{
  transform: translateY(-5px);
}
.about-section-landing h2::before{
  content: '🎯';
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: grid;
  place-items: center;
  font-size: 25px;
}
.about-section-landing h2:nth-of-type(2)::before{ content: '👥'; }
.about-section-landing h2:nth-of-type(3)::before{ content: '♡'; }
.about-section-landing h2:nth-of-type(4)::before{ content: '🎓'; }

.about-section-landing p{
  background: #ffffff;
  border: 1px solid var(--accent-color);
  border-radius: 16px;
  padding: 18px 22px;
  line-height: 1.7;
  box-shadow: 0 6px 12px rgba(0,0,0,0.12);
  transition: transform 0.5s ease;
}

/* Dark mode variant */
body.dark-mode .about-section-landing p{
  background: #232428;
  border: 1px solid rgba(252, 211, 77, 0.35);
  color: #e2d7a9;
  box-shadow: 0 10px 18px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(0,0,0,0.12);
}
body.dark-mode .about-section-landing h2{
  color:#FDE68A
}




body.dark-mode .btn-primary:hover {
  background-color: #a67d42;
  color: #fff;
}

body.dark-mode .btn-success {
  background-color: #2e6e4d;
}
body.dark-mode .btn-success:hover {
  background-color: #255d41;
}

body.dark-mode .btn-danger {
  background-color: #922d2d;
}
body.dark-mode .btn-danger:hover {
  background-color: #7a2222;
}

body.dark-mode #result,
body.dark-mode #cgpa-result {
  background-color: #4e4e4e;
  color: #ffffff;
}

body.dark-mode .hero-section {
  background-color: #1a1a1a;
}

body.dark-mode .hero-section h1,
body.dark-mode .hero-section p,
body.dark-mode .hero-section h3 {
  color: #ffffff;
}

body.dark-mode .hero-section .btn {
  background-color: #bb995c;
  color: #1a120b;
}

body.dark-mode .hero-section .btn:hover {
  background-color: #a67d42;
  color: #ffffff;
}

.main{
  background-color: #faebdd;
}
.calculator-box {
  background-color: #f2d087;
  border-radius: 20px;
  padding: 40px 30px;
  max-width: 900px;
  margin: 50px auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  position: relative;
}

/* Tabs Styling */
.nav-tabs .nav-link {
  color: #121111;
  font-weight: 500;
  background-color: transparent;
  border: none;
}

.nav-tabs .nav-link.active {
  background-color: #e0c89b;
  color: #0c0c0c;
  font-weight: 600;
  border-radius: 12px 12px 0 0;
}

/* Inner Form Container */
#calculator .tab-content {
  background-color: #faebdd;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}
#calculator.py-5 {
background-color: #e0c89b;
}
/* Subject Input Rows */
#subject-container .row,
#cgpa-container .row {
  background-color:#faebdd;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#subject-container input,
#subject-container select,
#cgpa-container input {
  background-color: #faebdd;
  color: #070707;
  border: 1px solid #d2b48c;
  border-radius: 8px;
  padding: 10px;
}

/* Remove Button */
.btn-danger {
  background-color: #b23c3c;
  border: none;
}
.btn-danger:hover {
  background-color: #8e2e2e;
}

/* Add & Switch Mode Buttons */
.btn-success,
.btn-secondary {
  border-radius: 8px;
  font-weight: 600;
  padding: 0.5rem 1.2rem;
}

.btn-success {
  background-color: #3ca96c;
  border: none;
}
.btn-success:hover {
  background-color: #2b8852;
}

.btn-secondary {
  background-color: #444;
  color: #fff;
}
.btn-secondary:hover {
  background-color: #333;
}

/* Calculate Buttons */
.btn-primary {
  background-color: #e0c89b;
  color: #3c2f1f;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
}
.btn-primary:hover {
  background-color: #d6b87d;
  color: #2c1c0f;
}

/* Result Text */
#result,
#cgpa-result {
  font-size: 1.4rem;
  color: #3c2f1f;
  font-weight: 600;
  background-color:#e0c89b;
  padding: 10px;
  border-radius: 8px;
  display: inline-block;
}

/* Hero Section Tweaks */
.hero-section h1{
    color: #100f0f;
margin-bottom: 5%;
}
.hero-section p {
  color: #100f0f;
}
.hero-section .btn {
  background-color: #e0c89b;
  color: #3c2f1f;
  border: none;
  border-radius: 25px;
}
.hero-section .btn:hover {
  background-color: #d2b376;
  color: #291c0b;
}
.hero-section{
  background-color: #faebdd;
}
.hero-section h3 {
  color: #100f0f;
}
.reset-icon {
  position: absolute;
  top: 15px;
  right: 20px;
  cursor: pointer;
  font-size: 1.5rem;
  color: #3c2f1f;
  transition: transform 0.3s ease;
}
.reset-icon:hover {
  transform: rotate(90deg);
  color: #2a1c10;
}
.form h4 {
  font-size: 1.8rem;
  font-weight: bold;
  padding-top: 1.5rem;
}

.form img {
  height: 40px;
}
.service h4 {
  font-size: 1.8rem;
  font-weight: bold;
  padding-top: 1.5rem;
  text-align: center;
}

.service img {
  height: auto;
}



/* Gallery Image Hover Effect Styles */

/* Scale the entire card on hover */
.card:hover {
    transform: translateY(-4px) scale(1.01); /* Added scale(1.05) to existing transform */
    box-shadow: 0 0 15px var(--accent-color-dark), 
                0 0 20px rgba(0, 0, 0, 0.3);
    z-index: 5; /* Ensure hovered card appears above others */
    transition: all 0.3s ease;
}



/* Scale the image itself on hover */
.card-img-top {
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1); /* Scale image slightly larger on hover */
}

/* Ensure the overlay text appears smoothly */
.card .effect-text {
    position: absolute;
    top: 15px;
    right: 15px;
    bottom: 15px;
    left: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--img-bg-shade);
    overflow: hidden;
    transition: all 0.3s ease; /* Smoother transition */
    opacity: 0;
    border: 2px solid var(--primary-text-color);
    border-radius: 15px; /* Match card border radius */
}

/* Make text more visible on hover */
.card:hover .effect-text {
    opacity: 1;
    background: rgba(250, 235, 221, 0.9); /* Slightly more opaque for better text visibility */
}

/* Enhance text styling */
.card .effect-text .inner p {
    color: var(--primary-text-color);
    font-weight: bold;
    font-size: 1rem;
    line-height: 1.4;
    padding: 10px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

body.dark-mode .card .effect-text .inner p {
    color: var(--primary-text-color);       
    font-weight: bold;
    font-size: 1rem;
    line-height: 1.4;
    padding: 10px;                  
    background: transparent;
    text-shadow: 1px 1px 3px rgba(0,0,0,1); /* add shadow for readability */
}

.facility-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 30px;
}

.para1{
    color: var(--primary-text-color);
    font-weight: bold;
    align-items: center;
    text-align:justify;
    padding: 10px;
    margin: 30px;
}

.facility-card {
  display: flex;
  background-color:#faebdd;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
  border-style:solid;
  border-color: #dfc2b3;
}

.facility-card:hover {
  transform: scale(1.01);
}

.facility-image img {
  width: 300px;
  height: 100%;
  object-fit: cover;
  display: block;
}

.facility-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.facility-content h1 {
  margin: 0 0 10px;
  font-size: 24px;
  color: #2b2b2b;
  font-weight: bold;
}

.facility-content p {
  margin: 0;
  font-size: 22px;
  color: #555;
  line-height: 1.6;
}

body.dark-mode .facility-container {
  background-color: #1e1e1e;
}

body.dark-mode .facility-card {
  background-color: #2c2c2c;
  color: #f0f0f0;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.05);
}

body.dark-mode .facility-card h1,
body.dark-mode .facility-card p {
  color: #f5f5f5;
}

@media (max-width: 768px) {
  .facility-card {
    flex-direction: column;
  }

  .facility-image img {
    width: 100%;
    height: 200px;
  }

  .facility-content {
    padding: 15px;
  }
}


.icon {
    height: 90px;
    width: 90px;
    background-color: var(--accent-color);
    margin: 40px auto 30px;
    text-align: center;
    font-size: 28px;
    color: var(--white);
    border-radius: 20px;
    border-bottom-right-radius: 0;
    position: relative;
    transition: all 0.3s ease;
    border: .2rem solid var(--text-color);

}

.icon img{
    height: 78px;
    width: 78px;
    
    mix-blend-mode:multiply;
    
}

.name{
    text-align: center;
   color: var(--primary-text-color);
   font-family: "Cinzel", serif;
}

.icon i{
    margin-top: 35%;
   
    
}


.about {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 20px;
    margin-bottom: 0px;
}

.about-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.About-card {
    width: 15rem;
    min-height: 470px;
    margin: 1rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #cab5af;
    border-radius: 40px;
    border-bottom-right-radius: 0;
    border: 2px solid white;
    box-shadow: 0 0 1rem var(--main-color);
    text-align: center;
    transition: transform 0.3s ease;
}

.About-card:hover{
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.About-card a{
    margin-top: auto;
    padding: 10px,20px;
    color: var(--snd-bg-color);
    border-radius: 10px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3 ease;
}

.About-card a:hover{
    background: #8c6723;
    color: #fff;
    box-shadow: 0 0 1rem var(--main-color);
}

#about h4{
  font-size: 1.8rem;
  font-weight: bold;
  padding-top: 1.5rem;
  text-align: center;
}

.about img {
  height: 40px;
}
/*card width adjust on the small screen */
@media  screen and (max-width : 768px){
.About-card{
    width: 90%;
    min-height: auto;
}
}
#btn{
margin-bottom: 20px;
border-radius: 2em;
border: 2px solid white;
background-color: #6b4f1d;
color: white;
padding: 12px 24px;
font-weight: bold;
font-size: 1rem;
transition: background-color 0.4s ease, transform 0.2 ease;
}
.footer-section {
  background-color: var(--footer-bgColor);
  padding: 50px 20px;
  color: var(--accent-color-dark);
  border-top: 5px solid var(--primary-text-color);
}


.contact-heading {
  text-align: center;
  color: var(--primary-text-color);
  font-family: "Playwrite SK", cursive;
  font-size: 2rem;
  margin-bottom: 30px;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  margin-bottom: 30px;
  gap: 20px;
}

.contact-item {
   flex: 1 1 0;
  min-width: 220px;
  max-width: 100%;
 
}
.contact-item {
  background-color: #fdf6ec; /* Light mode background */
  color: var(--accent-color-dark); /* Text color for light mode */
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(205, 162, 116, 0.08);
  padding: 18px;
  /* margin-bottom: 18px; */
  transition: background 0.3s, color 0.3s;
   box-sizing: border-box;
   overflow:hidden;

}

body.dark-mode .contact-item {
  background-color: #2a2723; /* Dark mode background */
  color: #fdf0d5; /* Text color for dark mode */
  box-shadow: 0 2px 8px rgba(205, 162, 116, 0.18);
}
body.dark-mode .contact-link i {
  color: var(--accent-color); /* Lighter accent for dark mode */
 
}
.contact-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px;
  text-align: center;
  border-radius: 10px;
  transition: 0.3s ease;
  
  box-sizing: border-box;
  height:100%;
}

.contact-link i {
  font-size: 30px;
  margin-bottom: 10px;
  color: var(--main-color);
  overflow: hidden;
}

.contact-link span {
  font-weight: bold;
  font-size: 18px;
  color: var(--accent-color-dark);
}

.contact-link p {
  font-size: 16px;
  color: var(--accent-color-dark);
}

.contact-link:hover {
  background-color: var(--bg-color);
  box-shadow: 0 0 10px var(--main-color);
  color: var(--snd-bg-color);
}

.social-media {
  text-align: center;
  margin-bottom: 20px;
}

.social-media a {
  margin: 0 10px;
  font-size: 24px;
  color: var(--main-color);
  border: 2px solid var(--main-color);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.social-media a:hover {
  background: var(--main-color);
  color: var(--snd-bg-color);
  box-shadow: 0 0 8px var(--main-color);
}

.footer-links {
  text-align: center;
  margin-bottom: 15px;
}

.footer-links a {
  color: var(--accent-color-dark);
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--main-color);
}

footer .copyright {
  display: block;
  width: 100%;
  text-align: center;
  color: #0b0b8b;
  font-size: 14px;
}

/* Total Visitors card */
.visitor-card{
  width: fit-content;
  margin: 20px auto 0 auto;
  padding: 10px 22px;
  background: #1f2937;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}
.visitor-title{
  text-align: center;
  font-weight: 800;
  color: #fde68a;
  font-size: 1.4rem;
  margin: 4px 0 2px 0;
}
.visitor-value{
  text-align: center;
  font-weight: 800;
  font-size: 2rem;
  color: #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* meet our team color  */
 .section-header h2{
  position: relative;
 
  font-weight: 600;
  display: inline-block;
  border-bottom: 2px solid #FDE68A;
  padding-bottom: 6px;

}

body.dark-mode .section-header h2{
  color:#FDE68A
}

body.dark-mode .section-header p{
  color:#ddcb92
}



/* Additional responsive improvements for mid-range screens */
@media (max-width: 1200px) and (min-width: 1001px) {
  nav {
    padding: 8px 15px;
  }
  
  nav ul li a {
    font-size: 15px;
    padding: 8px 12px;
    margin: 0 5px;
  }
  
  nav .logo {
    font-size: 26px;
  }
}

/* Tablet specific improvements */
@media (max-width: 1000px) and (min-width: 769px) {
  nav {
    padding: 8px 12px;
  }
  
  nav .logo {
    font-size: 22px;
  }
  
  nav #mode {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 1000px) {
  nav {
    height: 55px; /* Compact mobile navbar */
    padding: 5px 12px;
  }
  
  .main:not(.dark-mode) {
    margin-top: 55px;
  }
  
  nav .logo {
    font-size: 18px;
  }
  

  

  
  nav ul {
    position: fixed;
    top: 55px;
    left: -100%;
    background: var(--nav-bgcolor);
    height: calc(100vh - 55px);
    width: 100%;
    display: block;
    text-align: center;
    transition: all 0.3s ease;
    z-index: 999;
    padding-top: 20px;
    overflow-y: auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  }
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  font-family: sans-serif;
}

  nav ul li {
    margin: 15px 0;
    width: 100%;
  }

  nav ul li a {
    font-size: 16px;
    color: var(--primary-text-color);
    padding: 12px 20px;
    display: block;
    width: 85%;
    margin: 0 auto;
    border-radius: 8px;
    border: 1px solid transparent;
  }

  nav ul li a:hover,
  nav ul li a.active,
  nav ul li a#active {
    background-color: var(--accent-color);
    color: var(--white-4345);
    border: 1px solid var(--accent-color-dark);
  }


  
  #click:checked~ul {
    left: 0%;
    height: 70%;
    overflow-y: auto;
  }
  
  nav #mode {
    width: 24px;
    height: 24px;
  }

  .btn {
    width: 100%;
  }

  .container1 {
    flex-wrap: wrap;
  }

  .card {
    margin-bottom: 20px;
    min-width: 100%;
  }

  .contact-section {
    flex-direction: column;
    align-items: center;
    padding: 10px;
  }

  .contact-section .contact-item {
    flex: 0 0 50%;
    max-width: 50%;
    margin-bottom: 20px;
  }

  .social-media {
    justify-content: center;
    gap: 10px;
  }

  .footer-links {
    text-align: center;
    font-size: 14px;
    margin-top: 20px;
  }

  .container p {
    margin-top: 20px;
  }
}

@media only screen and (max-width: 772px) {
  .popup-content {
    width: clamp(100%, 80%, 100%);
  }

  .main-page {
    flex-direction: column-reverse;
    gap: 20px;
  }

  .header-right img {
    width: 100%;
  }

  .icon {
    z-index: auto;
  }

  nav ul {
    height: 100vh;
  }

  p {
    font-size: 1.0rem;
  }

  .about {
    padding: 10px;
  }

  .about-flex {
    flex-direction: column;
    padding-left: 0;
  }

  .About-card {
    margin-bottom: 20px;
    width: 80%;
  }

  .form-flex {
    width: 100%;
    padding-left: 0;
    align-items: center;
    justify-content: center;
  }

  .form {
    width: 100%;
  }

  .form-card {
    margin-bottom: 5px;
    align-items: center;
    justify-content: center;
  }

  .contact-section .contact-item {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 20px;
  }

  .social-media a {
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
    margin: 1.5rem 0.5rem 0 0;
  }

  .footer-links {
    padding: 15px;
    font-size: 13px;
  }

  .service-heading {
    text-align: center;
    width: auto;
    
  }

  #sanjay-nagar {
    text-align: center;
    justify-content: center;
  }

  .container p {
    margin-top: 20px;
  }
}

@media only screen and (max-width: 450px) {
  nav {
    height: 50px; /* Even more compact for small screens */
    padding: 3px 8px;
  }
  
  .main:not(.dark-mode) {
    margin-top: 50px;
  }
  
  nav .logo {
    font-size: 16px;
  }

  
  nav ul {
    top: 50px;
    height: calc(100vh - 50px);
    padding-top: 15px;
  }
  
  nav ul li a {
    font-size: 14px;
    padding: 10px 15px;
    width: 80%;
  }
  
  nav #mode {
    width: 22px;
    height: 22px;
  }
  
  p {
    width: fit-content;
  }

  .container1 {
    margin: 20px;
    gap: 10px;
  }

  .card {
    width: 100%;
    margin-bottom: 10px;
  }


  .header-right img {
    width: 100%;
    margin-left: 0%;
    border-radius: 50%;
  }

  .form-flex {
    width: 100%;
    align-items: center;
    justify-content: center;
  }

  .form {
    width: 100%;
  }

  .form-card {
    margin-bottom: 5px;
    width: 100%;
    align-items: center;
    justify-content: center;
  }

  .header-left {
    margin-right: 5%;
    text-align: center;
  }

  .greeting {
    position: relative;
    right: 2px;
    text-align: center;
   
  }

  .about-flex {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .About-card {
    width: 90%;
    margin-bottom: 20px;
  }

  .contact-section {
    flex-direction: column;
    align-items: center;
  }

  .contact-section .contact-item {
    flex: 1 1 100%;
    max-width: 100%;
    padding: 10px;
  }

  .contact-section .contact-item-inner {
    width: 90%;
    justify-items: center;
  }

  .social-media {
    flex-wrap: wrap;
    justify-content: center;
  }

  .social-media a {
    width: 2.8rem;
    height: 2.8rem;
    font-size: 1.3rem;
    margin: 1rem 0.5rem 0 0;
  }

  .footer-links {
    text-align: center;
    padding: 10px;
    font-size: 12px;
    line-height: 1.4;
  }

  #sanjay-nagar {
    display: inline-flex;
  }

  .container p {
    margin-top: 20px;
  }
}

@media only screen and (max-width: 275px) {
  .popup-content {
    width: clamp(90%, 70%, 90%);
  }

  .form-flex {
    width: 100%;
    align-items: center;
    justify-content: center;
  }

  .form {
    width: 100%;
  }

  .form-card {
    margin-bottom: 5px;
    width: 80%;
  }

  .name {
    font-size: 2rem;
  }

  .Contact-heading {
    font-size: 1.2rem;
    margin-bottom: 3%;
  }

  .contact-section .contact-item-inner {
    padding: 20px 10px;
    width: 95%;
  }

  .contact-section .contact-item-inner i {
    font-size: 20px;
  }

  .contact-section .contact-item-inner a span,
  .contact-section .contact-item-inner span {
    font-size: 14px;
    margin: 10px 0 5px;
  }

  .contact-section .contact-item-inner a p,
  .contact-section .contact-item-inner p {
    font-size: 14px;
    line-height: 22px;
  }

  .social-media a {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.2rem;
    margin: 1rem 0.5rem 0 0;
  }

  .footer-links {
    font-size: 11px;
    padding: 8px;
  }
}
.goog-te-banner-frame.skiptranslate,
.goog-te-gadget-icon,
.goog-te-menu-value span,
#google_translate_element {
    display: none !important;
  }
  #lang-toggle{
    margin-right: 1vh;
  }
body {
    top: 0px !important;
}
#lang-toggle{
  padding:5px 10px; cursor:pointer; border:none; background:#333; color:#fff; border-radius:5px;
}

/* Tabs container */
body.dark-mode .nav-tabs {
  border-bottom: 2px solid var(--accent-color) !important;
  padding-left: 0.5rem; /* slight padding for tabs */
}

/* Tabs styling */
body.dark-mode .nav-tabs .nav-link {
  color: var(--white-4345) !important;
  background-color: var(--bg-shade) !important;
  border-radius: 12px 12px 0 0 !important;
  margin-right: 6px;
  padding: 0.5rem 1.2rem;
  font-weight: 600;
  transition: background-color 0.3s, color 0.3s;
  box-shadow: none !important;
}

/* Active tab */
body.dark-mode .nav-tabs .nav-link.active {
  background-color: var(--accent-color) !important;
  color: var(--main-color) !important;
  font-weight: 700;
  border-bottom: 2.5px solid var(--main-color) !important;
  box-shadow: 0 4px 10px var(--accent-color-dark)40 !important; /* subtle shadow */
}

/* Hover and focus */
body.dark-mode .nav-tabs .nav-link:hover,
body.dark-mode .nav-tabs .nav-link:focus {
  background-color: var(--accent-color-dark) !important;
  color: var(--white-4345) !important;
  outline: none;
  cursor: pointer;
}

/* Circular icon on right */
body.dark-mode .reset-icon {
  color: var(--accent-color) !important;
  filter: drop-shadow(0 0 2px var(--main-color));
  transition: color 0.3s;
  opacity: 1;
}

body.dark-mode .reset-icon:hover {
  color: var(--accent-color-dark) !important;
  filter: drop-shadow(0 0 5px var(--accent-color-dark));
  cursor: pointer;
}
/* SGPA Result box contrast fix for dark mode */
body.dark-mode #result,
body.dark-mode #cgpa-result {
  background-color: #bb995c !important;   /* Use your gold accent for strong contrast */
  color: #191717 !important;              /* Very dark brown/black for clear numbers */
  font-weight: 700;
  border-radius: 10px;
  box-shadow: 0 2px 8px #85611333;
}


.result-box {
    background-color: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.result-box h4 {
    color: #495057;
    margin-bottom: 20px;
}

.result-box .h3 {
    font-weight: bold;
    margin: 10px 0;
}

/* Dark mode support */
body.dark-mode .result-box {
    background-color: #2b2b2b;
    border-color: #444;
}

body.dark-mode .result-box h4,
body.dark-mode .result-box h5 {
    color: #e0e0e0;
}
