/*======================================*/
/* 1. ROOT VARIABLES (THEME & SETTINGS) */
/*======================================*/

:root {
    /* Colors */
    --color-dark-navy: #001f3f; 
    --color-primary-blue: #007bff;
    --color-secondary-blue: #0056b3;
    --color-light-background: #f4f7fa;
    --color-light-hover: #e0ebff;
    --color-text-main: #333;
    --color-text-secondary: #555;
    --color-white: #fff;
    --color-border-light: #eee;

    /* Shadows */
    --shadow-nav: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-header: 0 6px 15px rgba(0, 0, 0, 0.15);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-button: 0 5px 15px rgba(0, 123, 255, 0.4);

    /* Transitions */
    --transition-speed: 0.3s ease-in-out;
}

/*======================================*/
/* 2. BASE & RESET (GLOBAL STYLES)      */
/*======================================*/

*, *::before, *::after {
    box-sizing: border-box;
    transition: all var(--transition-speed);
}

body {
    /* Typography */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    direction: rtl; 
    color: var(--color-text-main);
    
    /* Box Model & Layout */
    margin: 0;
    padding: 0;
    
    /* Visual */
    background: var(--color-light-background); 
}

h1, h2, h3, p {
    margin: 0;
}

/*======================================*/
/* 3. LAYOUT STRUCTURE (HEADER, NAV, FOOTER)*/
/*======================================*/

/* --- Header --- */
.site-header {
    /* Box Model & Layout */
    padding: 20px;

    /* Visual */
    background: var(--color-dark-navy); 
    color: var(--color-white);
    box-shadow: var(--shadow-header);
}

.site-header h1 {
    font-size: 28px;
    font-weight: 800;
}

/* --- Main Navigation --- */
.main-nav {
    /* Box Model & Layout */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    
    /* Visual */
    background: var(--color-white);
    box-shadow: var(--shadow-nav);
    border-top: 1px solid #e0ebff;
}

.main-nav__link {
    /* Box Model & Layout */
    margin: 0 12px;
    padding: 8px 15px;
    
    /* Typography */
    text-decoration: none;
    font-weight: 600;
    color: var(--color-dark-navy);
    
    /* Visual */
    border-radius: 8px;
}

.main-nav__link:hover,
.main-nav__link.active {
    background: var(--color-dark-navy);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* --- Main Content --- */
.main-content {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 60px;
}

.content-section {
    padding: 40px 20px;
}

/* --- Footer --- */
.site-footer {
    /* Box Model & Layout */
    margin-top: 60px;
    padding: 30px 20px;

    /* Visual */
    text-align: center;
    background: var(--color-dark-navy);
    color: var(--color-white);
    border-top: 4px solid var(--color-primary-blue);
}

.footer-links a {
    /* Typography */
    color: #b3d9ff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 15px;
}

.footer-links a:hover {
    color: var(--color-white);
    text-decoration: underline;
}

.footer-copy {
    margin-top: 15px;
    font-size: 14px;
    color: #99aab5;
}


/*======================================*/
/* 4. COMPONENTS (REUSABLE UI MODULES)  */
/*======================================*/

/* --- Card --- */
.card {
    /* Box Model & Layout */
    padding: 40px;
    text-align: right;
    
    /* Visual */
    background: var(--color-white);
    border-radius: 18px;
    box-shadow: var(--shadow-card); 
    border: 1px solid var(--color-border-light);
}

/* --- Titles --- */
.page-title { /* جایگزین .main-title */
    /* Box Model & Layout */
    padding-bottom: 15px;
    margin-bottom: 30px;
    
    /* Typography */
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    color: var(--color-dark-navy);
    
    /* Visual */
    border-bottom: 3px solid var(--color-primary-blue);
}

.section-title {
    /* Box Model & Layout */
    margin-top: 30px;
    margin-bottom: 15px;
    padding-right: 15px;
    
    /* Typography */
    font-size: 24px;
    font-weight: 700;
    color: var(--color-dark-navy);
    
    /* Visual */
    border-right: 4px solid var(--color-primary-blue);
}

/* --- Dropdown --- */
.dropdown { 
    position: relative; 
    display: inline-block; 
}

.dropdown__button {
    /* Typography */
    font-weight: 600;
    line-height: normal;

    /* Visual */
    background: var(--color-white); 
    color: var(--color-dark-navy); 
    padding: 8px 15px; 
    border-radius: 8px; 
    cursor: pointer; 
    border: none;
}

.dropdown__button:hover { 
    background: var(--color-light-hover); 
    color: var(--color-dark-navy); 
}

.dropdown__content {
    /* Positioning */
    position: absolute; 
    right: 0; 
    z-index: 10; 

    /* Box Model */
    min-width: 220px; 
    margin-top: 5px; 
    overflow: hidden; 

    /* Visual */
    display: none; 
    background-color: var(--color-white); 
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25); 
    border-radius: 10px; 
    border: 1px solid #ddd; 
    opacity: 0; 
    transform: translateY(10px);
}

.dropdown:hover .dropdown__content { 
    display: block; 
    opacity: 1; 
    transform: translateY(0); 
}

.dropdown__content a { 
    color: var(--color-dark-navy); 
    padding: 12px 16px; 
    display: block; 
}

.dropdown__content a:hover { 
    background: var(--color-light-hover); 
}

/* --- Features List --- */
.features-list { /* نام کوتاه شده */
    /* Box Model & Layout */
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.features-list li {
    /* Box Model & Layout */
    padding: 15px 20px;
    
    /* Typography */
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text-main);
    
    /* Visual */
    background-color: #f0f7ff; 
    border-left: 5px solid var(--color-primary-blue); 
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.features-list li::before {
    content: "✨"; 
    margin-left: 10px;
    font-weight: bold;
}

/* --- Button Primary --- */
.btn-primary {
    /* Box Model & Layout */
    border: none;
    padding: 14px 35px;
    margin-top: 15px;
    display: block;
    width: 100%;
    max-width: 400px; 
    margin-left: auto;
    margin-right: auto;

    /* Typography */
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    color: var(--color-white);

    /* Visual */
    cursor: pointer;
    border-radius: 10px;
    background: linear-gradient(to right, var(--color-primary-blue), var(--color-secondary-blue));
    box-shadow: var(--shadow-button);
}

.btn-primary:hover {
    background: linear-gradient(to right, var(--color-secondary-blue), var(--color-primary-blue));
    transform: scale(1.0) translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.6);
}

/* --- Utility/Misc --- */
.mission-statement p {
    font-size: 17px;
    margin-bottom: 25px;
    color: var(--color-text-secondary);
    line-height: 1.8;
}

.divider {
    border: 0;
    height: 1px;
    background-color: #ccc;
    margin: 40px 0;
}

.final-call {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 30px;
    padding: 15px;
    background: var(--color-light-hover);
    border-radius: 8px;
    color: var(--color-dark-navy);
}