/* 
   styleRev.css - Custom Theme for RuralSoft / Kasar
   Designed with premium aesthetics and responsive menus.
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Noto+Sans+Devanagari:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #f39405;
    --primary-dark: #cc7800;
    --accent-color: #ff9900;
    --dark-bg: #1e1e1e;
    --gray-bg: #f9f9f9;
    --text-dark: #333333;
    --text-light: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.15);
    --transition-speed: 0.3s;
    --secondary-color: #0d9488;
}

body {
    font-family: 'Outfit', 'Noto Sans Devanagari', sans-serif;
    color: var(--text-dark);
    background-color: #fcfcfc;
    margin: 0;
    padding: 0;
}

a {
    transition: all var(--transition-speed) ease;
    text-decoration: none;
}

/* Topbar Styling */
#topbar {
    background-color: var(--dark-bg) !important;
    padding: 15px 0;
    border-bottom: 3px solid var(--secondary-color);
}

#topbar h5 a {
    text-decoration: none;
    line-height: 1.4;
    display: inline-block;
}

#topbar h5 span {
    letter-spacing: 0.5px;
}

/* Header & Navigation Menu */
#header {
    background: var(--primary-dark);
    padding: 10px 0;
    height: auto;
    transition: all 0.5s;
    z-index: 997;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

#nav-menu-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-menu, .nav-menu * {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-menu > li {
    position: relative;
    white-space: nowrap;
    float: left;
    padding-left: 10px;
}

.nav-menu a {
    padding: 10px 15px;
    text-decoration: none;
    display: inline-block;
    color: #fff;
    font-family: 'Noto Sans Devanagari', 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 15px;
    outline: none;
    border-radius: 4px;
}

    .nav-menu li:hover > a, .nav-menu .menu-active > a {
        color: #ffffff;
        background-color: var(--secondary-color);
    }

/* Dropdown styling */
.nav-menu li {
    position: relative;
}

.nav-menu ul {
    display: block;
    position: absolute;
    left: 0;
    top: calc(100% + 30px);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    padding: 10px 0;
    background: #ffffff;
    box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.15);
    border-radius: 5px;
    border-top: 3px solid var(--primary-color);
    transition: 0.3s;
    min-width: 240px;
}

.nav-menu ul li {
    min-width: 240px;
}

.nav-menu ul li a {
    padding: 10px 20px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    display: block;
    border-radius: 0;
}

.nav-menu ul li a:hover {
    background: var(--primary-color);
    color: #fff !important;
}

.nav-menu li:hover > ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
}

/* Submenu Arrow/Indicator (optional check style) */
.menu-has-children > a::after {
    content: " \f107";
    font-family: FontAwesome;
    padding-left: 5px;
}

/* Layout Content Table */
table {
    border-collapse: collapse;
}

table td {
    vertical-align: top;
    padding: 20px;
}

/* Footer Styling */
#footer {
    background-color: var(--primary-color) !important;
    color: #ffffff;
    padding: 8px 0 !important;
    border-top: 3px solid var(--primary-dark);
}

#footer a {
    color: #ffffff !important;
    font-weight: bold;
    text-decoration: underline;
}

#footer a:hover {
    color: var(--dark-bg) !important;
}

#footer p {
    font-family: 'Outfit', 'Noto Sans Devanagari', sans-serif;
    color: #ffffff !important;
    line-height: 1.6 !important;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    display: none;
    background: var(--primary-color);
    color: #fff;
    width: 44px;
    height: 44px;
    text-align: center;
    line-height: 1;
    font-size: 16px;
    border-radius: 50%;
    right: 15px;
    bottom: 15px;
    transition: background 0.5s;
    z-index: 11;
}

.back-to-top i {
    padding-top: 12px;
    color: #fff;
}

.back-to-top:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* Animations */
.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}
