 /* ==========================================================
           1. STYLES FROM INDEX.HTML (General, Top Bar, Header, Footer)
           ========================================================== */
 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
     font-family: 'Roboto', sans-serif;
 }

 :root {
     --primary-yellow: #fbbc05;
     --dark-gray: #333333;
     --light-gray: #e9ecef;
     --text-gray: #666666;
     --white: #ffffff;
 }

 body {
     color: var(--dark-gray);
     line-height: 1.6;
     background-color: #f4f6f9;
     overflow-x: hidden;
     /* Prevent side scrolling */
 }

 a {
     text-decoration: none;
     color: inherit;
 }

 ul {
     list-style: none;
 }

 .container {
     max-width: 1100px;
     margin: 0 auto;
     padding: 0 15px;
     /* Added responsive padding */
 }

 /* --- Top Bar --- */
 .top-bar {
     background-color: #767676;
     color: var(--white);
     font-size: 15px;
     font-weight: 400;
     padding: 10px 0;
 }

 .top-bar .container {
     display: flex;
     justify-content: space-between;
     align-items: center;
     flex-wrap: wrap;
 }

 .top-bar-left {
     display: flex;
     align-items: center;
     flex-wrap: wrap;
 }

 .top-bar-left span {
     margin-right: 15px;
     display: flex;
     align-items: center;
 }

 .top-bar-left i {
     margin-right: 10px;
     font-size: 16px;
     color: white;
 }

 .top-bar-right {
     display: flex;
     align-items: center;
     gap: 25px;
 }

 .top-bar-right a {
     color: var(--white);
     font-size: 16px;
     transition: color 0.3s;
     display: flex;
     align-items: center;
 }

 .top-bar-right a:hover {
     color: var(--primary-yellow);
 }


 /* --- Header / Navbar --- */
 header {
     background: var(--white);
     padding: 15px 0;
     box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
     top: 0;
     z-index: 1000;
     position: relative;
 }

 header .container {
     display: flex;
     justify-content: space-between;
     align-items: center;
 }

 .logo img {
     width: 350px;
 }

 /* Mobile Menu UI - Hidden by default on desktop */
 .menu-toggle {
     display: none;
 }

 .menu-header {
     display: none;
 }

 .close-menu {
     display: none;
 }

 .menu-overlay {
     display: none;
 }

 .nav-menu {
     display: flex;
     align-items: center;
     gap: 25px;
     font-weight: 600;
     font-size: 17px;
 }

 .nav-menu li.active>a {
     background: var(--primary-yellow);
     padding: 15px 16px;
     border-radius: 10px;
     color: var(--dark-gray);
 }

 /* Dropdown */
 .has-dropdown {
     position: relative;
     padding: 10px 0;
 }

 .dropdown {
     display: none;
     position: absolute;
     /* top: 100%; */
     left: 0;
     background-color: var(--white);
     box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
     min-width: 210px;
     padding: 10px 0;
     border-radius: 4px;
     z-index: 1001;
 }

 .has-dropdown:hover .dropdown {
     display: block;
 }

 .dropdown li {
     width: 100%;
 }

 .dropdown li a {
     display: block;
     padding: 10px 20px;
     color: var(--dark-gray);
     font-weight: 400;
     font-size: 14px;
     transition: background 0.3s, color 0.3s;
     background: transparent;
 }

 .dropdown li a:hover {
     background-color: var(--light-gray);
 }

 /* --- Footer --- */
 footer {
     /* background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4)), url('images/footer.png') center/cover no-repeat; */
     background-color: #2a2a2a;
     color: #e9ecef;
     padding: 40px 15px 20px;
     font-size: 15.5px;
     position: relative;
     background-image: url(../images/footer.jpg);
     background-repeat: no-repeat;
     background-size: cover;
     background-position: center right;

 }

 footer::before {
     position: absolute;
     top: 0;
     left: 0;
     content: "";
     background-color: #00000078;
     width: 100%;
     height: 100%;

 }



 .footer-top {
     display: flex;
     justify-content: space-between;
     align-items: center;
     margin-bottom: 30px;
     position: relative;
 }

 .footer-logo {

     padding: 0;
     display: inline-flex;
     border-radius: 4px;
     position: relative;

 }

 .footer-logo img {
     width: 500px;
 }

 .footer-social {
     display: flex;
     gap: 12px;
     position: relative;
 }

 .footer-social a {
     display: flex;
     align-items: center;
     justify-content: center;
     width: 46px;
     height: 46px;
     border: 1px solid rgba(255, 255, 255, 0.4);
     border-radius: 50%;
     color: var(--white);
     transition: 0.3s;
     font-size: 14px;
 }

 .footer-social a:hover {
     background: var(--primary-yellow);
     border-color: var(--primary-yellow);
     color: var(--dark-gray);
 }

 .footer-divider {
     border: 0;
     height: 1px;
     background: rgb(255 255 255 / 59%);
     margin: 0 0 40px 0;
     position: relative;
 }

 .footer-grid {
     display: grid;
     grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
     gap: 30px;
     margin-bottom: 40px;
     position: relative;
 }

 .footer-col h4 {
     color: #ffffff;
     margin-bottom: 25px;
     font-size: 22px;
     font-weight: 600;
 }

 .footer-col p {
     line-height: 1.8;
     color: #ffffff;
 }

 .footer-col ul li {
     margin-bottom: 12px;
 }

 .footer-col ul li a {
     color: #d1d1d1;
     transition: 0.3s;
     font-weight: 600;
 }

 .footer-col ul li a:hover {
     color: var(--primary-yellow);
 }

 .footer-contact li {
     display: flex;
     margin-bottom: 18px;
     color: white;
     align-items: flex-start;
     font-weight: 500;
 }

 .footer-contact i {
     margin-right: 15px;
     margin-top: 5px;
     color: var(--white);
     font-size: 16px;
 }

 .footer-bottom {
     text-align: center;
     padding-top: 0;
     padding-bottom: 20px;
     font-size: 16px;
     color: #fffbfb;
     font-weight: 500;
     position: relative;

 }



 /* ==========================================================
            2. SPECIFIC STYLES FOR CALCULATORS PAGE
            ========================================================== */

 /* --- Page Hero Banner (Specific to About Page) --- */
 .page-banner {
     /* background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/banner-1.jpeg') center/cover; */
     /* height: 400px; */
     padding-top: 200px;
     padding-bottom: 200px;
     padding-left: 0px;
     padding-right: 0px;
     display: flex;
     align-items: center;
     justify-content: center;
     text-align: center;
     color: var(--white);
     position: relative;
     background-image: url(../images/calculater-banner.avif);
     background-repeat: no-repeat;
     background-size: cover;
 }

 .page-banner::before {

     position: absolute;
     top: 0;
     left: 0;
     content: "";
     background-color: #00000078;
     width: 100%;
     height: 100%;
 }

 .page-banner h1 {
     font-size: 40px;
     font-weight: 700;
     font-family: 'Roboto';
     position: relative;
 }

 /* --- Calculator Grid --- */
 .calc-section {
     padding: 60px 0;
 }

 .calc-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
     gap: 25px;
 }

 .calc-card {
     background: var(--white);
     padding: 35px 25px;
     border-radius: 12px;
     text-align: center;
     box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
     transition: all 0.3s ease;
     border-bottom: 4px solid transparent;
     display: flex;
     flex-direction: column;
     align-items: center;
 }

 .calc-card:hover {
     transform: translateY(-8px);
     box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
     border-bottom: 4px solid var(--primary-yellow);
 }

 .calc-icon {
     width: 70px;
     height: 70px;
     background: #fff8e1;
     color: var(--primary-yellow);
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 30px;
     margin-bottom: 20px;
 }

 .calc-card h3 {
     font-size: 18px;
     color: var(--dark-gray);
     margin-bottom: 20px;
     font-family: 'Poppins', sans-serif;
     font-weight: 600;
     min-height: 54px;
     /* Keeps buttons aligned */
 }

 .btn-calc {
     background: var(--primary-yellow);
     color: var(--dark-gray);
     border: none;
     padding: 10px 25px;
     border-radius: 6px;
     font-size: 15px;
     font-weight: 600;
     cursor: pointer;
     transition: background 0.3s;
     margin-top: auto;
     width: 100%;
 }

 .btn-calc:hover {
     background: #e5ab00;
 }

 /* --- Modal Styles --- */
 .modal-overlay {
     display: none;
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: rgba(0, 0, 0, 0.7);
     z-index: 2000;
     justify-content: center;
     align-items: center;
     padding: 20px;
 }

 .modal-overlay.active {
     display: flex;
 }

 .modal-content {
     background: var(--white);
     width: 100%;
     max-width: 600px;
     border-radius: 12px;
     box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
     overflow: hidden;
     max-height: 90vh;
     display: flex;
     flex-direction: column;
 }

 .modal-header {
     background: var(--primary-yellow);
     padding: 20px 25px;
     display: flex;
     justify-content: space-between;
     align-items: center;
 }

 .modal-header h3 {
     margin: 0;
     color: var(--dark-gray);
     font-family: 'Poppins', sans-serif;
     font-size: 20px;
 }

 .close-btn {
     background: transparent;
     border: none;
     font-size: 28px;
     color: var(--dark-gray);
     cursor: pointer;
     line-height: 1;
 }

 .modal-body {
     padding: 25px;
     overflow-y: auto;
 }

 /* --- Form inside Modal --- */
 .form-group {
     margin-bottom: 20px;
 }

 .form-group label {
     display: block;
     margin-bottom: 8px;
     font-weight: 500;
     font-family: 'Poppins', sans-serif;
     font-size: 14px;
 }

 .form-group input[type="text"],
 .form-group input[type="number"],
 .form-group select {
     width: 100%;
     padding: 10px 15px;
     border: 1px solid #ddd;
     border-radius: 6px;
     font-size: 14px;
     outline: none;
 }

 .form-group input[type="text"]:focus,
 .form-group input[type="number"]:focus {
     border-color: var(--primary-yellow);
 }

 .form-group input[type="range"] {
     -webkit-appearance: none;
     width: 100%;
     height: 5px;
     background: #ddd;
     border-radius: 5px;
     outline: none;
 }

 .form-group input[type="range"]::-webkit-slider-thumb {
     -webkit-appearance: none;
     appearance: none;
     width: 18px;
     height: 18px;
     border-radius: 50%;
     background: var(--primary-yellow);
     cursor: pointer;
 }

 .result-box {
     display: none;
     background: #f8f9fa;
     border: 1px dashed var(--primary-yellow);
     padding: 20px;
     border-radius: 8px;
     margin-top: 25px;
     text-align: center;
 }

 .result-box h4 {
     margin-bottom: 15px;
     font-family: 'Poppins', sans-serif;
     font-size: 18px;
 }

 .result-box .amount {
     font-size: 24px;
     font-weight: 700;
     color: #27ae60;
     font-family: 'Poppins', sans-serif;
 }

 /* --- Floating Buttons (From Index) --- */
 .float-wa {
     position: fixed;
     bottom: 30px;
     left: 30px;
     width: 55px;
     height: 55px;
     background-color: #25d366;
     color: white;
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 30px;
     box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
     z-index: 1000;
     transition: background-color 0.3s;
 }

 .float-wa:hover {
     background-color: #1ebe57;
     color: white;
 }

 .float-top {
     position: fixed;
     bottom: 30px;
     right: 30px;
     width: 35px;
     height: 35px;
     background-color: #f7c307;
     color: white;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 20px;
     box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
     z-index: 1000;
     border-radius: 4px;
     transition: background-color 0.3s;
 }

 .float-top:hover {
     background-color: #e0a800;
 }

 /* Responsive */
 @media (max-width: 992px) {
     .footer-grid {
         grid-template-columns: repeat(2, 1fr);
     }
 }

 @media (max-width: 768px) {

     .top-bar .container {
         flex-direction: column;
         gap: 10px;
         text-align: center;
     }

     .top-bar-left,
     .top-bar-right {
         justify-content: center;
         width: 100%;
     }

     .top-bar-left span {
         margin-right: 0px;
         margin-bottom: 5px;
     }

     /* --- Left Side Slide-in Menu Styles --- */
     .menu-toggle {
         display: flex;
         align-items: center;
         justify-content: center;
         font-size: 24px;
         color: #333;
         cursor: pointer;
         border: 1px solid #ccc;
         padding: 6px 12px;
         border-radius: 4px;
     }

     .menu-overlay {
         display: none;
         position: fixed;
         top: 0;
         left: 0;
         width: 100%;
         height: 100%;
         background: rgba(0, 0, 0, 0.6);
         z-index: 1500;
     }

     .menu-overlay.active {
         display: block;
     }

     .nav-menu {
         position: fixed;
         top: 0;
         left: -300px;
         width: 280px;
         height: 100vh;
         background: var(--white);
         flex-direction: column;
         align-items: flex-start;
         padding: 0;
         gap: 0;
         box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
         transition: left 0.3s ease;
         z-index: 2000;
         overflow-y: auto;
     }

     .nav-menu.active {
         left: 0;
     }

     .menu-header {
         display: flex;
         width: 100%;
         justify-content: space-between;
         align-items: center;
         padding: 20px;
         border-bottom: 1px solid #ddd;
         background: #fff;
         position: sticky;
         top: 0;
         z-index: 10;
     }

     .mobile-menu-logo {
         height: 40px;
     }

     .close-menu {
         display: block;
         font-size: 24px;
         cursor: pointer;
         color: var(--dark-gray);
         border: 1px solid #ccc;
         padding: 4px 10px;
         border-radius: 4px;
     }

     .nav-menu li {
         width: 100%;
         border-bottom: 1px solid var(--light-gray);
     }

     .nav-menu li:last-child {
         border-bottom: none;
     }

     .nav-menu li a {
         display: block;
         padding: 15px 20px;
         font-size: 16px;
     }

     .nav-menu li.active>a {
         background: transparent;
         /* Remove pill shape on mobile */
         color: var(--primary-yellow);
         padding: 15px 20px;
         border-radius: 0;
     }

     /* Fix dropdown for side menu */
     .has-dropdown .dropdown {
         position: relative;
         box-shadow: none;
         background: #f8f8f8;
         padding: 0;
         min-width: 100%;
         display: none;
         /* ADDED: Hidden by default on mobile */
     }

     /* ADDED: Disable hover opening on mobile */
     .has-dropdown:hover .dropdown {
         display: none;
     }

     /* ADDED: Show only when active class is added by clicking */
     .has-dropdown.active .dropdown {
         display: block;
     }

     /* ADDED: Smoothly rotate the arrow when clicked */
     .has-dropdown>a i {
         transition: transform 0.3s ease;
     }

     .has-dropdown.active>a i {
         transform: rotate(180deg);
     }

     .dropdown li {
         border-bottom: none;
     }

     .dropdown li a {
         padding-left: 40px;
         font-size: 15px;
     }

     .footer-grid {
         /* grid-template-columns: 1fr; */
         text-align: left;
     }

     .footer-top {
         /* flex-direction: column; */
         gap: 20px;
     }

     .footer-contact li {
         justify-content: left;
         /* flex-direction: column; */
         align-items: center;
         text-align: center;
         gap: 10px;
     }

     .footer-contact i {
         margin-right: 0;
     }

     .calc-grid {
         grid-template-columns: 1fr;
     }

     .page-banner {

         padding-top: 60px;
         padding-bottom: 60px;
         padding-left: 0px;
         padding-right: 0px;
     }

     .logo img {
         width: 250px;
     }
 }

 @media (max-width: 480px) {
     .page-banner h1 {
         font-size: 32px;
     }

     .page-banner {

         padding-top: 60px;
         padding-bottom: 60px;
         padding-left: 0px;
         padding-right: 0px;
     }

     .footer-grid {
         grid-template-columns: 1fr;
         text-align: left;
     }

     .footer-top {
         flex-direction: column;
         gap: 20px;
     }

     .footer-logo img {
         width: 330px;
     }
 }

 @media (max-width: 374px) {
     .footer-logo img {
         width: 300px;
     }
 }