/* Base Styles */
:root {
    --light-gray: #f5f5f5;
    --charcoal: #333333;
    --red: #e63946;
    --dark-red: #c1121f;
    --white: #ffffff;
    --black: #000000;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--charcoal);
    background-color: var(--light-gray);
    background-image: url('../images/background.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: -1;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--red);
    color: white;
    padding: 8px;
    z-index: 100;
    transition: var(--transition);
}

.skip-link:focus {
    top: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Header Styles */
.site-header {
	position: flex;
    top: 0;
    z-index: 1000;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
}

.logo-container .logo {
    height: 150px;
    width: 100%;
    transition: var(--transition);
}

.header-tagline p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--charcoal);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Navigation */
.main-navigation {
    background-color: var(--charcoal);
    position: sticky;
    z-index: 999;
	top:0;
}

/* استایل دکمه همبرگر */
.menu-toggle {
    display: none; /* در دسکتاپ نمایش داده نمی‌شود */
    background: none;
    border: none;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
}

.hamburger {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.menu-toggle.active .hamburger::before,
.menu-toggle.active .hamburger::after {
    background: #ffffff; /* یا از var(--white) اگر تعریف شده */
}

.hamburger::before,
.hamburger::after {
    content: '';
    width: 100%;
    height: 3px;
    background: var(--charcoal);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* حالت فعال (زمان کلیک) */
.menu-toggle.active .hamburger {
    background: transparent;
}

.menu-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-toggle.active .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}

.menu {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu > li {
    position: relative;
}

.menu > li > a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.6rem;
    letter-spacing: 1px;
    transition: var(--transition);
}

.menu > li > a:hover {
    background-color: var(--red);
    color: white;
}

/* Dropdown Menu */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--charcoal);
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li a {
    display: block;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sub-menu li a:hover {
    background-color: var(--red);
    padding-left: 25px;
}

/* Red Line */
.header-red-line {
    height: 5px;
    background-color: var(--red);
    width: 100%;
}

/* Page Title Banner */
.page-title-banner {
    height: 200px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.page-title-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.page-title-container h1 {
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

/* Main Content */
.slideshow-container {
    position: relative;
    width: 800px;
    height: 500px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 20px;
    text-align: center;
}

.slide-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 10;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
}

.nav-dot.active {
    background: white;
}
.main-content {
    padding: 40px 5%;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    max-width: 1400px;
}

.content-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.main-grid {
    display: flex;
    flex: 1;
    min-width: 0;
    gap: 30px;
}

.main-content-area {
    flex: 3;
    background-color: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.sidebar {
    flex: 1;
    min-width: 300px;
}

.sidebar-section {
    background-color: white;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.sidebar-section h3 {
    color: var(--red);
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-gray);
}

.sidebar-section ul {
    list-style: none;
}

.sidebar-section ul li {
    margin-bottom: 10px;
}

.sidebar-section ul li a {
    color: var(--charcoal);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    padding: 5px 0;
}

.sidebar-section ul li a:hover {
    color: var(--red);
    padding-left: 5px;
}

/* Footer */
.site-footer {
    background-color: var(--charcoal);
    color: white;
    padding: 40px 5% 20px;
}

.footer-red-line {
    height: 5px;
    background-color: var(--red);
    width: 100%;
    margin-bottom: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    color: var(--red);
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 20px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--red);
}

.footer-column p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-bottom a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--red);
}

/* استایل‌های Google Translate */
.goog-te-gadget {
    font-family: 'Roboto', sans-serif !important;
}

.goog-te-menu-value {
    color: white !important;
    font-size: 12px !important;
}

.goog-te-menu-value span {
    color: white !important;
}

.goog-te-menu-value:hover {
    color: #e63946 !important;
}

#google_translate_element {
    min-height: 40px;
    display: flex;
    align-items: center;
}

/* مخفی کردن تبلیغات گوگل */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

body {
    top: 0px !important;
}

/* نمایش در حالت موبایل */
@media (max-width: 768px) {
    #google_translate_element {
        justify-content: center;
    }
    
    .goog-te-menu-frame {
        max-width: 200px !important;
    }
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--red);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background-color: var(--dark-red);
    transform: translateY(-3px);
}

/* Glowing Effects */
.glow-effect {
    position: relative;
}

.glow-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    box-shadow: 0 0 15px rgba(230, 57, 70, 0.5);
    opacity: 0;
    transition: var(--transition);
}

.glow-effect:hover::before {
    opacity: 1;
}

/* Shiny Buttons */
.btn-shiny {
    position: relative;
    overflow: hidden;
}

.btn-shiny::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20px;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
    transition: var(--transition);
}

.btn-shiny:hover::after {
    left: 120%;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .main-grid {
        flex-direction: column;
    }
    
    .main-content-area,
    .sidebar {
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .menu-toggle {
        display: block;
        margin: 0 auto;
    }
    
    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    
    .menu.active {
        display: flex;
    }
    
    .menu > li {
        width: 100%;
        text-align: center;
    }
    
    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        width: 100%;
        box-shadow: none;
    }
    
    .menu-item-has-children:hover .sub-menu {
        transform: none;
    }
    
    .menu-item-has-children.active .sub-menu {
        display: block;
    }
    
    .page-title-container h1 {
        font-size: 2rem;
    }
	
	.slideshow-container{
		width:450px;
		height:250px;
	}
}

@media (max-width: 480px) {
    .page-title-container h1 {
        font-size: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .slideshow-container{
		width:350px;
		height:150px;
	}
    #back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 20px;
        right: 20px;
    }
}