/* ========================================
   TIbestSolutions - Main Stylesheet
   Based on mockup design
   ======================================== */

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #333;
    background: #f5f5f5;
}
a { text-decoration: none; color: inherit; transition: color 0.3s; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* === Header Top Bar === */
.header-top {
    background: #1a1a2e;
    color: #fff;
    font-size: 13px;
    padding: 8px 0;
}
.header-top-info {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}
.header-top-info span { display: flex; align-items: center; gap: 6px; }
.header-top-info i { color: #d4a843; }

/* === Navigation === */
.main-nav {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 3px 15px rgba(0,0,0,0.2);
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo img {
    height: 65px;
    padding: 5px 0;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
}
.nav-links li a {
    display: block;
    padding: 20px 16px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    position: relative;
}
.nav-links li a:hover,
.nav-links li a.active {
    background: rgba(255,255,255,0.15);
    color: #ffd700;
}
.nav-links li a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: #ffd700;
    border-radius: 3px 3px 0 0;
}
.nav-btn {
    border-radius: 4px !important;
    padding: 10px 18px !important;
    margin-left: 5px;
}
.btn-connection {
    background: #d4a843 !important;
    color: #1a1a2e !important;
}
.btn-connection:hover {
    background: #c49933 !important;
}
.btn-lang {
    background: #28a745 !important;
    color: #fff !important;
}
.btn-lang:hover {
    background: #218838 !important;
}

/* Mobile toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}
.mobile-toggle span {
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

/* === Hero / Presentation Section === */
.hero-section {
    background: linear-gradient(135deg, #d4a843 0%, #c49933 50%, #b8892a 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 50%;
    height: 100%;
    background: url('../images/hero-pattern.png') center/cover;
    opacity: 0.1;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #1a1a2e;
    margin-bottom: 20px;
    border-bottom: 3px solid #1a1a2e;
    padding-bottom: 10px;
    display: inline-block;
}
.hero-content p {
    color: #1a1a2e;
    font-size: 15px;
    text-align: justify;
    line-height: 1.8;
}
.vision-mission {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    padding: 30px;
}
.vision-mission h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: #1a1a2e;
    margin-bottom: 12px;
}
.vision-mission p {
    color: #2d2d2d;
    font-style: italic;
    margin-bottom: 25px;
    line-height: 1.7;
}

/* === Services Section (Home) === */
.services-section {
    padding: 70px 0;
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    position: relative;
}
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.services-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    width: 100%;
}
.services-content {
    color: #fff;
}
.services-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #ffd700;
    margin-bottom: 15px;
}
.services-content p {
    margin-bottom: 20px;
    opacity: 0.9;
}
.services-list {
    display: grid;
    gap: 8px;
}
.services-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 14px;
}
.services-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #ffd700;
    font-size: 12px;
}
.services-list li a {
    color: #fff;
    transition: color 0.3s;
}
.services-list li a:hover {
    color: #ffd700;
}

/* === Promoter Section === */
.promoter-section {
    padding: 70px 0;
    background: linear-gradient(135deg, #8b1a1a 0%, #a02020 100%);
    color: #fff;
}
.promoter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.promoter-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 20px;
    color: #ffd700;
}
.promoter-content p {
    text-align: justify;
    line-height: 1.8;
    opacity: 0.95;
}
.promoter-image {
    text-align: center;
}
.promoter-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-width: 400px;
}
.promoter-placeholder {
    width: 300px;
    height: 350px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 2px dashed rgba(255,255,255,0.3);
}
.promoter-placeholder i {
    font-size: 80px;
    opacity: 0.3;
}

/* === Contact Section (Home) === */
.contact-section {
    padding: 70px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}
.contact-form h2,
.contact-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #ffd700;
}
.form-group {
    margin-bottom: 15px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.5);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d4a843;
    background: rgba(255,255,255,0.12);
}
.form-group textarea {
    min-height: 120px;
    resize: vertical;
}
.btn-submit {
    background: #d4a843;
    color: #1a1a2e;
    border: none;
    padding: 14px 35px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn-submit:hover {
    background: #c49933;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212,168,67,0.4);
}
.contact-info p {
    margin-bottom: 20px;
    opacity: 0.9;
    line-height: 1.7;
}
.contact-info h3 {
    color: #d4a843;
    margin-bottom: 15px;
    font-size: 1.1rem;
}
.contact-details li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
}
.contact-details i {
    color: #d4a843;
    margin-top: 3px;
    width: 16px;
}

/* === Alert Messages === */
.alert {
    padding: 12px 18px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}
.alert-success { background: rgba(40,167,69,0.2); border: 1px solid #28a745; color: #28a745; }
.alert-error { background: rgba(220,53,69,0.2); border: 1px solid #dc3545; color: #dc3545; }

/* === Services Page === */
.page-hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    padding: 50px 0;
    text-align: center;
    color: #fff;
}
.page-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.page-hero p {
    font-size: 16px;
    opacity: 0.8;
}
.services-page {
    padding: 60px 0;
    background: #f5f5f5;
}
.service-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: start;
}
.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e3a5f, #2c5282);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd700;
    font-size: 24px;
}
.service-card h3 {
    color: #1e3a5f;
    font-size: 1.2rem;
    margin-bottom: 8px;
}
.service-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}

/* === About Page === */
.about-page { padding: 60px 0; background: #f5f5f5; }
.about-content {
    background: #fff;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    max-width: 900px;
    margin: 0 auto;
}
.about-content h2 {
    color: #1e3a5f;
    font-family: 'Playfair Display', serif;
    margin-bottom: 15px;
}
.about-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}
.about-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}
.about-badge {
    text-align: center;
    padding: 25px 15px;
    background: linear-gradient(135deg, #1e3a5f, #2c5282);
    border-radius: 10px;
    color: #fff;
}
.about-badge i { font-size: 30px; color: #ffd700; margin-bottom: 10px; display: block; }
.about-badge h4 { font-size: 1.8rem; margin-bottom: 5px; }
.about-badge p { font-size: 13px; opacity: 0.8; }

/* === Contact Page === */
.contact-page { padding: 60px 0; background: #f5f5f5; }
.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.contact-form-card,
.contact-info-card {
    background: #fff;
    border-radius: 10px;
    padding: 35px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}
.contact-form-card h2,
.contact-info-card h2 {
    color: #1e3a5f;
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
}
.contact-form-card .form-group input,
.contact-form-card .form-group textarea {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e0e0e0;
}
.contact-form-card .form-group input::placeholder,
.contact-form-card .form-group textarea::placeholder {
    color: #999;
}
.contact-form-card .form-group input:focus,
.contact-form-card .form-group textarea:focus {
    border-color: #1e3a5f;
    background: #fff;
}
.contact-form-card .alert-success { color: #155724; background: #d4edda; border-color: #c3e6cb; }
.contact-form-card .alert-error { color: #721c24; background: #f8d7da; border-color: #f5c6cb; }

/* Map placeholder */
.map-container {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    height: 250px;
    background: #e0e0e0;
}
.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* === Blog === */
.blog-page { padding: 60px 0; background: #f5f5f5; }
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.blog-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.blog-card-image {
    height: 200px;
    background: linear-gradient(135deg, #1e3a5f, #2c5282);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog-card-image i { font-size: 50px; color: rgba(255,255,255,0.3); }
.blog-card-body { padding: 20px; }
.blog-card-body .category {
    display: inline-block;
    background: #d4a843;
    color: #fff;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.blog-card-body h3 {
    font-size: 1.1rem;
    color: #1a1a2e;
    margin-bottom: 8px;
    line-height: 1.4;
}
.blog-card-body h3 a:hover { color: #1e3a5f; }
.blog-card-body .excerpt {
    color: #666;
    font-size: 13px;
    margin-bottom: 12px;
    line-height: 1.6;
}
.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
    padding-top: 10px;
    border-top: 1px solid #eee;
}
.blog-card-meta .views i { margin-right: 3px; }
.btn-read-more {
    display: inline-block;
    color: #1e3a5f;
    font-weight: 600;
    font-size: 13px;
}
.btn-read-more:hover { color: #d4a843; }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}
.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}
.pagination a {
    background: #fff;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.pagination a:hover { background: #1e3a5f; color: #fff; }
.pagination span.current {
    background: #1e3a5f;
    color: #fff;
}

/* === Article Detail === */
.article-page { padding: 60px 0; background: #f5f5f5; }
.article-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}
.article-hero-image {
    height: 350px;
    background: linear-gradient(135deg, #1e3a5f, #2c5282);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.article-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-hero-image i { font-size: 80px; color: rgba(255,255,255,0.2); }
.article-body {
    padding: 40px;
}
.article-body .category {
    display: inline-block;
    background: #d4a843;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.article-body h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #1a1a2e;
    margin-bottom: 15px;
    line-height: 1.3;
}
.article-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #888;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.article-meta i { margin-right: 5px; color: #d4a843; }
.article-content {
    font-size: 15px;
    line-height: 1.9;
    color: #444;
}
.article-content p { margin-bottom: 15px; }
.article-content h2, .article-content h3 {
    color: #1a1a2e;
    margin: 25px 0 10px;
}
.article-content img {
    border-radius: 8px;
    margin: 15px 0;
}

/* Related articles */
.related-articles {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}
.related-articles h3 {
    font-family: 'Playfair Display', serif;
    color: #1a1a2e;
    margin-bottom: 20px;
    font-size: 1.3rem;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.related-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.3s;
}
.related-card:hover { transform: translateY(-3px); }
.related-card h4 { font-size: 14px; color: #1a1a2e; margin-bottom: 5px; }
.related-card h4 a:hover { color: #1e3a5f; }
.related-card .date { font-size: 12px; color: #999; }

/* === References Page === */
.references-page { padding: 60px 0; background: #f5f5f5; }
.references-content {
    background: #fff;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.references-content h2 {
    color: #1e3a5f;
    font-family: 'Playfair Display', serif;
    margin-bottom: 15px;
}
.references-content p {
    color: #555;
    line-height: 1.8;
}

/* === Footer === */
.main-footer {
    background: #0d1117;
    color: #ccc;
}
.footer-top {
    padding: 50px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
}
.footer-logo {
    height: 60px;
    margin-bottom: 15px;
}
.footer-col h4 {
    color: #ffd700;
    font-size: 16px;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #d4a843;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
    color: #aaa;
    font-size: 13px;
    transition: color 0.3s, padding-left 0.3s;
}
.footer-col ul li a:hover {
    color: #ffd700;
    padding-left: 5px;
}
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
}
.footer-contact i {
    color: #d4a843;
    margin-top: 4px;
    width: 14px;
}
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}
.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s;
}
.footer-social a:hover {
    background: #d4a843;
    color: #1a1a2e;
    transform: translateY(-3px);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 18px 0;
    text-align: center;
    font-size: 13px;
    color: #888;
}

/* === Login Page === */
.login-page {
    padding: 80px 0;
    background: #f5f5f5;
    min-height: 60vh;
    display: flex;
    align-items: center;
}
.login-card {
    max-width: 420px;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 3px 20px rgba(0,0,0,0.1);
    text-align: center;
}
.login-card img { height: 70px; margin-bottom: 20px; }
.login-card h2 { color: #1e3a5f; margin-bottom: 25px; }
.login-card .form-group input {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e0e0e0;
}
.login-card .form-group input:focus {
    border-color: #1e3a5f;
    background: #fff;
}

/* === Responsive === */
@media (max-width: 1024px) {
    .hero-grid,
    .services-grid,
    .promoter-grid,
    .contact-grid,
    .contact-page-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-badges {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-toggle { display: flex; }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1e3a5f;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
    .nav-links.active { display: flex; }
    .nav-links li a { padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .nav-btn { margin: 5px 15px !important; text-align: center; }

    .hero-content h1 { font-size: 1.8rem; }
    .blog-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .about-badges { grid-template-columns: 1fr; }
    .header-top-info { font-size: 11px; gap: 10px; }

    .article-body { padding: 25px; }
    .article-body h1 { font-size: 1.5rem; }
}
