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

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

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #fff5eb 0%, #fef3e7 100%);
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: linear-gradient(135deg, #732916 0%, #8b3a1f 100%);
    color: white;
    padding: 30px 40px;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 50%;
    height: 200%;
    background: rgba(251, 176, 65, 0.1);
    transform: rotate(45deg);
}

.header-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 10px;
	line-height: 1.2;
}

.logo img {
    height: 100%;
    width: auto;
}

.logo {
    height: 100px;
}

header h1 {
    font-family: 'Teko', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header h2 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.9;
}

.back-link {
    position: absolute;
    left: 40px;
    top: 40px;
    text-decoration: none;
    color: #fbb041;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 10;
}

.back-link:hover {
    color: white;
    transform: translateX(-5px);
}

main {
    flex: 1;
    padding: 60px 40px;
}

.welcome-section {
    text-align: center;
    margin-bottom: 60px;
}

.welcome-section h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 2.2rem;
    color: #732916;
    margin-bottom: 20px;
    font-weight: 600;
}

.welcome-section p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.language-selection h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.8rem;
    color: #732916;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 500;
}

.language-cards {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.language-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 10px 30px rgba(115, 41, 22, 0.1);
    transition: all 0.4s ease;
    width: 320px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.language-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #732916 0%, #fbb041 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.language-card:hover::before {
    transform: scaleX(1);
}

.language-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(115, 41, 22, 0.15);
}

.flag-icon {
    width: 120px;
    height: 80px;
    background: #f0f0f0;
    border-radius: 10px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.language-card h4 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.8rem;
    color: #732916;
    margin-bottom: 15px;
    font-weight: 600;
}

.language-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

.magazines-header {
    text-align: center;
    margin-bottom: 50px;
}

.magazines-header h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 2rem;
    color: #732916;
    margin-bottom: 10px;
}

.issue-count {
    color: #fbb041;
    font-weight: 600;
}

.magazines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 35px;
    margin-bottom: 40px;
}

.magazine-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(115, 41, 22, 0.1);
    transition: all 0.4s ease;
    position: relative;
}

.magazine-card::after {
    content: 'ЧИТАЈ';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(251, 176, 65, 0.95);
    color: #732916;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 700;
    letter-spacing: 1px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.magazine-card:hover::after {
    opacity: 1;
}

.magazine-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(115, 41, 22, 0.15);
}

.magazine-card a {
    text-decoration: none;
    color: #333;
    display: block;
}

.magazine-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.magazine-card:hover img {
    filter: brightness(0.7);
}

.magazine-card h3 {
    padding: 20px 15px;
    font-size: 0.95rem;
    text-align: center;
    color: #732916;
    font-weight: 600;
    background: #fafafa;
}

.stats-section {
    background: linear-gradient(135deg, #732916 0%, #8b3a1f 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    margin: 40px 0;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.stat-item h4 {
    font-family: 'Teko', sans-serif;
    font-size: 3rem;
    color: #fbb041;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 1rem;
    opacity: 0.9;
}

footer {
    background: #732916;
    color: white;
    text-align: center;
    padding: 40px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #732916 0%, #fbb041 50%, #732916 100%);
}

.partners-section {
    background: #f9f9f9;
    padding: 60px 40px;
    text-align: center;
}

.partners-section h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 2rem;
    color: #732916;
    margin-bottom: 40px;
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.partner-banner {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.partner-banner:hover {
    transform: translateY(-5px);
}

.partner-banner img {
    max-width: 200px;
    max-height: 80px;
    object-fit: contain;
}

footer p {
    margin-bottom: 10px;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    color: #fbb041;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: white;
}

@media (max-width: 768px) {
    header {
        padding: 20px;
    }
    
    header h1 {
        font-size: 2.5rem;
    }
    
    header h2 {
        font-size: 1rem;
    }
    
    .logo {
        height: 50px;
    }
    
    main {
        padding: 30px 20px;
    }
    
    .language-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .magazines-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 20px;
    }
    
    .back-link {
        position: static;
        margin-bottom: 20px;
    }
}