* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    color: #333333;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: #ffffff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #e5e5e5;
    flex-shrink: 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: clamp(40px, 8vh, 60px);
    max-width: clamp(150px, 30vw, 250px);
    object-fit: contain;
}

.language-selector select {
    padding: clamp(8px, 1.5vw, 10px) clamp(10px, 2vw, 15px);
    font-size: clamp(14px, 2vw, 16px);
    border: 2px solid #d4d4d4;
    background: #ffffff;
    color: #333333;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-selector select:hover {
    background: #f5f5f5;
    border-color: #999999;
}

.language-selector select option {
    background: #ffffff;
    color: #333333;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 3vh 5vw 2vh;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.main-title {
    font-size: clamp(24px, 4vw, 42px);
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a1a1a;
    animation: fadeInDown 1s ease;
}

.subtitle {
    font-size: clamp(14px, 2.5vw, 20px);
    font-weight: 300;
    color: #666666;
    animation: fadeInUp 1s ease;
}

/* Divisions Container */
.divisions-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: clamp(25px, 3.5vw, 45px);
    padding: 4vh 5vw 5vh;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Division Cards */
.division-card {
    background: #ffffff;
    border-radius: 20px;
    padding: clamp(35px, 4.5vw, 50px) clamp(30px, 4vw, 45px);
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid #e5e5e5;
    animation: fadeIn 1s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.division-card:hover {
    transform: translateY(-15px);
    background: #ffffff;
    border-color: #4a90e2;
    box-shadow: 0 20px 60px rgba(74, 144, 226, 0.3),
                0 0 40px rgba(74, 144, 226, 0.2),
                0 5px 15px rgba(0, 0, 0, 0.1);
}

.division-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.division-icon {
    width: clamp(140px, 20vw, 220px);
    height: clamp(140px, 20vw, 220px);
    margin: 0 auto clamp(25px, 3.5vw, 35px);
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 3px solid #e5e5e5;
    flex-shrink: 0;
    }

.division-card:hover .division-icon {
    transform: scale(1.08);
    background: transparent;
    border-color: #4a90e2;
    box-shadow: 0 0 35px rgba(74, 144, 226, 0.6),
                0 0 20px rgba(74, 144, 226, 0.4) inset;
    }

.division-icon img {
    width: 85%;
    height: 85%;
    object-fit: contain;
    border-radius: 50%;
    display: block;
}

.division-card h2 {
    font-size: clamp(22px, 3.5vw, 32px);
    font-weight: 600;
    margin-bottom: clamp(12px, 2vw, 18px);
    color: #1a1a1a;
    transition: color 0.3s ease;
}

.division-card:hover h2 {
    color: #4a90e2;
}

.division-card p {
    font-size: clamp(15px, 2.2vw, 18px);
    line-height: 1.6;
    color: #666666;
    flex-grow: 1;
}

/* Footer */
.footer {
    background: #f8f9fa;
    padding: clamp(15px, 2.5vh, 25px) 5vw;
    text-align: center;
    border-top: 1px solid #e5e5e5;
    width: 100%;
    flex-shrink: 0;
    margin-top: auto;
}

.footer p {
    font-size: clamp(12px, 1.5vw, 14px);
    color: #666666;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
        padding: 10px 20px;
    }

    .divisions-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .logo img {
        height: 40px;
        max-width: 180px;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .divisions-container {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
    }
}

@media (min-width: 1201px) {
    .divisions-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* RTL Support for Arabic and Persian */
[lang="ar"], [lang="fa"] {
    direction: rtl;
}

[lang="ar"] .header .container,
[lang="fa"] .header .container {
    flex-direction: row-reverse;
}
