/* Variables for color themes */
:root {
    --background-color: #ffffff;
    --text-color: #333333;
    --card-background: #f5f5f5;
    --heading-color: #222222;
    --border-color: #dddddd;
    --navbar-color: #E4000F; /* Orange color for navbar */
    --link-hover-color: #ff6600; /* Hover color for links */
    --card-hover-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Shadow for card hover effect */
    --footer-color: #777777;

    /* Grid layout specific variables */
    --primary-color: #3a5a8c;
    --secondary-color: #6b8cae;
    --accent-color: #ff9a3c;
    --light-bg: #f0f5ff;
    --dark-bg: #2c3e50;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --heading-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --body-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Dark mode colors when checkbox is checked */
.dark-mode-toggle:checked ~ .page-wrapper,
.dark-mode-toggle:checked ~ .main-content,
.dark-mode-toggle:checked ~ .page  {
    --background-color: #454545;
    --text-color: #e0e0e0;
    --card-background: #1e1e1e;
    --heading-color: #ffffff;
    --border-color: #444444;
    --footer-color: #1e1e1e;
    --banner-bg: #121212;
}

.dark-mode-toggle:checked ~ .navbar {
    --navbar-color: #E4000F;
    /* other styles */
}
.dark-mode-toggle:checked ~ .banner {
    --banner-bg: #454545;
    transition: all 0.5s ease;
}

/* Dark mode styles for index.html specific elements */
.dark-mode-toggle:checked ~ .page-wrapper .image-box {
    background-color: #333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.dark-mode-toggle:checked ~ .page-wrapper .text-box {
    background-color: var(--background-color);
    color: var(--text-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.dark-mode-toggle:checked ~ .page-wrapper .text-box::after {
    border-color: transparent transparent #454545 transparent;
}

.dark-mode-toggle:checked ~ .page-wrapper .text-box h2 {
    color: #fff;
}

.dark-mode-toggle:checked ~ .page-wrapper .text-box p,
.dark-mode-toggle:checked ~ .page-wrapper .text-box li {
    color: #e0e0e0;
}

.dark-mode-toggle:checked ~ .page-wrapper .main-content::before {
    opacity: 0.05;
}

/* Apply dark background to html element when in dark mode */
.dark-mode-toggle:checked ~ * {
    background-color: #454545;
    --light-bg: #454545;
    --text-color: #e0e0e0;
    --primary-color: #6b8cae;
    --dark-bg: #1e1e1e;
}

/* Override background for specific elements to maintain proper styling */
.dark-mode-toggle:checked ~ .navbar {
    background-color: var(--navbar-color) !important;
}

/* Additional dark mode styles for the footer */
.dark-mode-toggle:checked ~ .footer {
    background-color: #222;
    color: #e0e0e0;
    border-color: #444;
}
/* Basic styling */
html {
    scroll-behavior: smooth; /* Enable smooth scrolling */
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    transition: background-color 0.5s ease;
}

/* We'll use the universal selector approach instead */

.page {
    background-color: var(--background-color);
    color: var(--text-color);
    min-height: 100vh;
    transition: all 0.5s ease;
    padding: 20px;
    padding-top: 30px; /* Add extra padding at the top to ensure content doesn't start right below the navbar */
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0.8; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hide the checkbox but keep it functional */
.dark-mode-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Style the toggle button */
.toggle-label {
    position: fixed;
    top: 15px;
    right: 20px;
    display: inline-block;
    width: 60px;
    height: 30px;
    background-color: #ccc;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
    z-index: 1000;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.toggle-label::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 6px;
    font-size: 16px;
    z-index: 1;
}

.toggle-label::after {
    content: '';
    position: absolute;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: white;
    top: 2px;
    left: 2px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    text-align: right;
    padding-right: 5px;
}

/* Move the toggle button when checkbox is checked */
.dark-mode-toggle:checked + .toggle-label {
    background-color: #6b6b6b;
}

.dark-mode-toggle:checked + .toggle-label::after {
    left: 32px;
    content: '';
}

/* No sun icon to hide in dark mode - keeping selector for future reference */
.dark-mode-toggle:checked + .toggle-label::before {
    /* opacity: 0; - removed as no longer needed */
}

/* Focus state for accessibility */
.dark-mode-toggle:focus + .toggle-label {
    outline: 2px solid #4d90fe;
    outline-offset: 2px;
}

/* Content styling */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2 {
    color: var(--heading-color);
}

.card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background-color: var(--navbar-color);
    transition: height 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--navbar-color);
    cursor: default;
}

.card:hover::before {
    height: 100%;
}

.card:focus-within {
    outline: 2px solid var(--navbar-color);
    outline-offset: 2px;
}


/* Navbar styling - will not change in dark mode */
.navbar {
    background-color: var(--navbar-color) !important; /* !important ensures this color is always applied */
    color: white !important;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative; /* Added for absolute positioning of navbar-links */
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    z-index: 2;
    /* Removed negative margin to prevent overflow */
    /* order property removed as it's not needed with the new layout */
    /* The brand will naturally stay on the left side */
}

.navbar-brand img {
    height: auto; /* Set appropriate height for the logo */
    width: 100px;
    vertical-align: middle;
}

.navbar-links {
    display: flex;
    gap: 20px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    /* order property removed as it's not needed with absolute positioning */
}

/* Navbar link styling */
.navbar-links a {
    color: white !important; /* !important ensures this color is always applied */
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.navbar-links a:hover {
    color: #ffe0b2 !important; /* Light orange color on hover */
}

/* Dropdown menu styling */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    color: white !important;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 5px 15px; /* Increased horizontal padding to make buttons wider */
    min-width: 100px; /* Added min-width for consistent button width */
    justify-content: center; /* Center the text within the button */
    transition: all 0.3s ease;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 0.7em;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background-color: var(--navbar-color);
    min-width: 100%; /* Match width of parent dropdown-toggle */
    width: 100%; /* Ensure the dropdown is exactly the same width as the button */
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 4px;
    padding: 8px 0;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 1;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 8px 15px; /* Match horizontal padding with dropdown-toggle */
    white-space: nowrap;
    color: white !important;
    text-align: center; /* Center text to match dropdown-toggle */
}

.dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Underline effect for main navbar links */
.navbar-links > a::after,
.dropdown-toggle::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #ffe0b2;
    transition: width 0.3s ease;
}

.navbar-links > a:hover::after,
.dropdown:hover .dropdown-toggle::before {
    width: 100%;
}

/* Ensure dropdown toggle has the same hover color as regular links */
.dropdown-toggle:hover {
    color: #ffe0b2 !important;
}

.navbar-links a:focus {
    outline: 2px solid #ffe0b2;
    outline-offset: 2px;
}
/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    opacity: 0.9;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 99;
    overflow: hidden;
}

.back-to-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    transform: scale(0);
    border-radius: 50%;
    transition: transform 0.4s ease;
    z-index: -1;
}

.back-to-top:hover, .back-to-top:focus {
    opacity: 1;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

.back-to-top:hover::before {
    transform: scale(1);
}

.back-to-top::after {
    content: "↑";
    font-size: 24px;
    font-weight: bold;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.back-to-top:hover::after {
    transform: translateY(-3px);
}

/* Footer styling */
.footer {
    background-color: var(--dark-bg);
    color: #fff;
    border-top: 1px solid var(--border-color);
    padding: 40px 60px 20px;
    width: 100%;
    box-sizing: border-box;
    left: 0;
    right: 0;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
    padding: 0 15px;
}

.footer-column h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

.footer-column a:hover {
    color: white;
}

.footer-column a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
}

.footer-column a:hover::after {
    width: 100%;
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 0.8rem;
    font-weight: bold;
}

.social-icon:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.newsletter-form {
    display: flex;
    margin-top: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 4px 0 0 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.newsletter-form input::placeholder {
    color: #aaa;
}

.newsletter-form button {
    padding: 8px 12px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: #ff8c2a;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 20px;
    text-align: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.footer-bottom p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #aaa;
}

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
    }

    .footer-column {
        width: 100%;
        margin-bottom: 30px;
    }
}
.banner {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background-color: var(--banner-bg)
}
:root {
    --banner-bg:ffffff;
}
body.dark-mode-toggle {
    --banner-bg: #121212
}
.banner-track{
    background-color: var(--banner-bg);
}
.banner-track {
    display:inline-block;
    white-space:nowrap;
    animation: scroll-left 20s linear infinite;
    background-color: transparent;
    animation-timing-function: linear;

}
.banner-track img {
    height:100px;
}
@keyframes scroll-left {
    0% {
        transform:translateX(0)
    }
    100% {
        transform:translateX(-50%)
    }
}

/* Grid layout styling */
body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--body-font);
    line-height: 1.6;
    letter-spacing: 0.01em;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Main content container with grid layout */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 30px;
    padding: 50px 40px;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Image box styling */
.image-box {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s ease, 
                background-color 0.3s ease;
    position: relative;
}

.image-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 1;
}

.image-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.image-box:hover::before {
    transform: scaleX(1);
}

.image-box img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.image-box:hover img {
    transform: scale(1.05);
}

/* Text box styling */
.text-box {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.text-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 40px 40px;
    border-color: transparent transparent var(--light-bg) transparent;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.text-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.text-box:hover::after {
    transform: scale(1.2);
}

.text-box h2 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 20px;
    font-family: var(--heading-font);
    font-weight: 600;
    position: relative;
    padding-bottom: 12px;
}

.text-box h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.text-box:hover h2::after {
    width: 100px;
}

.text-box p {
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 0;
}

/* List styling for the list text box */
.text-box ul {
    padding-left: 5px;
    list-style: none;
    margin-top: 15px;
}

.text-box li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 28px;
    transition: transform 0.2s ease;
}

.text-box li:hover {
    transform: translateX(5px);
}

.text-box li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.text-box li:hover::before {
    transform: scale(1.5);
    background-color: var(--primary-color);
}

/* Page wrapper */
.page-wrapper {
    background-color: var(--background-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    padding: 0 250px 20px 250px;
    width: 100%;
    overflow-x: hidden;
    position: relative;
    z-index: 1;

}

/* Main content area */
.main-content {
    flex: 1;
    padding-top: 30px;
    width: 100%;
    position: relative;
}

/* Add a subtle background pattern */
.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--secondary-color) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
    transition: opacity 0.5s ease;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .grid-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
}
.text-box table th td {
    border: 5px solid black;
}

.banner {
    overflow:hidden;
    white-space:nowrap;
    width: 100%;

    background-color: var(--banner-bg)
}
:root {
    --banner-bg:ffffff;
}
body.dark-mode-toggle {
    --banner-bg: #121212
}
.banner-track{
    background-color: var(--banner-bg);
}
.banner-track {
    display:inline-block;
    white-space:nowrap;
    animation: scroll-left 20s linear infinite;
    background-color: transparent;
    animation-timing-function: linear;

}
.banner-track img {
    height:100px;
}