/* Global Styles */
:root {
    --primary-color: #000000;
    --secondary-color: #ff9800;
    --accent-color: #e91e63;
    --dark-color: #333;
    --light-color: #f9f9f9;
    --gray-color: #eaeaea;
    --text-color: #333;
    --link-color: #0056b3;
    --footer-color: #222;
    --gradient-primary: linear-gradient(135deg, #000000, #3d3d3d);
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #c2c2c2;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--link-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #727272;
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

.btn-large {
    padding: 15px 30px;
    font-size: 18px;
}

/* Paragraph Styles */
.text-justify {
    text-align: justify;
}

.cornerstone-article p,
.page-article p {
    text-align: justify;
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.7;
}

/* Table Styles */
.info-table-container {
    margin: 30px 0;
    overflow-x: auto;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    background-color: #fff;
}

.info-table caption {
    font-size: 18px;
    font-weight: 600;
    padding: 15px;
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
}

.info-table th {
    background-color: #f2f7ff;
    color: var(--primary-color);
    font-weight: 600;
    text-align: left;
    padding: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.info-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    color: var(--dark-color);
}

.info-table tr:last-child td {
    border-bottom: none;
}

.info-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.info-table tr:hover {
    background-color: #f2f7ff;
}

.info-table .highlight {
    background-color: #e8f4ff;
    font-weight: 500;
}

.info-table .positive {
    color: #28a745;
}

.info-table .negative {
    color: #dc3545;
}

.info-table .neutral {
    color: #fd7e14;
}

.table-note {
    font-size: 14px;
    color: #666;
    margin-top: -15px;
    margin-bottom: 30px;
    font-style: italic;
}

/* Responsive Tables */
@media screen and (max-width: 768px) {
    .info-table {
        font-size: 14px;
    }
    
    .info-table th,
    .info-table td {
        padding: 10px;
    }
    
    .info-table caption {
        font-size: 16px;
        padding: 12px;
    }
}

@media screen and (max-width: 576px) {
    .info-table-container {
        margin: 20px -15px;
        width: calc(100% + 30px);
        padding: 0 15px;
    }
    
    .info-table {
        font-size: 13px;
    }
    
    .info-table th,
    .info-table td {
        padding: 8px;
    }
}

/* Header Styles */
.header {
    position: sticky;
    top: 0;
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: block;
}

.main-nav ul {
    display: flex;
}

.main-nav ul li {
    margin: 0 15px;
}

.main-nav ul li a {
    color: var(--dark-color);
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}

.main-nav ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.main-nav ul li a:hover:after,
.main-nav ul li a.active:after {
    width: 100%;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.btn-login {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-login:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-register {
    background-color: var(--secondary-color);
    color: #fff;
    border: 2px solid var(--secondary-color);
}

.btn-register:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    height: 3px;
    width: 100%;
    background-color: var(--dark-color);
    border-radius: 3px;
}

/* Hero Section */
.hero {
    background: var(--gradient-primary);
    color: #fff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/pattern.png');
    opacity: 0.1;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    padding-right: 50px;
}

.hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    text-align: right;
}

.hero-image img {
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    max-width: 100%;
}

/* Main Content */
.main-content {
    padding: 80px 0;
}

.cornerstone-article {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    padding: 40px;
}

.cornerstone-article h2 {
    font-size: 32px;
    margin-bottom: 25px;
    color: var(--dark-color);
}

.cornerstone-article h3 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: var(--dark-color);
}

.cornerstone-article h4 {
    font-size: 20px;
    margin: 25px 0 15px;
    color: var(--dark-color);
}

.cornerstone-article p {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.7;
}

.cornerstone-article a {
    color: var(--primary-color);
    font-weight: 500;
}

.cornerstone-article a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: var(--footer-color);
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo img {
    margin-bottom: 15px;
}

.footer-logo p {
    opacity: 0.8;
    font-size: 14px;
}

.footer h4 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #fff;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    opacity: 1;
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 10px;
    opacity: 0.8;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    padding: 10px 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    width: 70%;
    font-family: 'Poppins', sans-serif;
}

.newsletter-form button {
    padding: 10px 15px;
    background-color: var(--secondary-color);
    color: #fff;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: #e08600;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    opacity: 0.7;
}

.footer-bottom p {
    margin-bottom: 5px;
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .hero h1 {
        font-size: 36px;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav, .auth-buttons {
        display: none;
    }
    
    .cornerstone-article {
        padding: 25px;
    }
    
    .cornerstone-article h2 {
        font-size: 28px;
    }
    
    .cornerstone-article h3 {
        font-size: 22px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 30px;
    }
}

@media screen and (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-large {
        width: 100%;
    }
    
    .cornerstone-article h2 {
        font-size: 24px;
    }
    
    .cornerstone-article h3 {
        font-size: 20px;
    }
    
    .main-content {
        padding: 40px 0;
    }
}

/* Custom Font Icons */
@font-face {
    font-family: 'icomoon';
    src: url('../fonts/icomoon.eot');
    src: url('../fonts/icomoon.eot?#iefix') format('embedded-opentype'),
         url('../fonts/icomoon.woff') format('woff'),
         url('../fonts/icomoon.ttf') format('truetype'),
         url('../fonts/icomoon.svg#icomoon') format('svg');
    font-weight: normal;
    font-style: normal;
}

[class^="icon-"], [class*=" icon-"] {
    font-family: 'icomoon';
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.icon-facebook, .icon-instagram, .icon-whatsapp, .icon-telegram {
    display: inline-block;
    width: 32px;
    height: 32px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Facebook */
.icon-facebook {
    background-image: url('/img/facebook_icon.svg');
}

/* Instagram */
.icon-instagram {
    background-image: url('/img/instagram.svg');
}

/* WhatsApp */
.icon-whatsapp {
    background-image: url('/img/whatsapp.svg');
}

/* Telegram */
.icon-telegram {
    background-image: url('/img/telegram.svg');
}