/* Global Styles */
:root {
    --primary-color: #009688;
    --secondary-color: #43a047;
    --success-color: #43a047;
    --danger-color: #e53935;
    --warning-color: #ffd600;
    --light-gray: #f5f5f5;
    --dark-gray: #263238;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #e8f5e9;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Market Overview */
.market-overview {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.market-overview h2 {
    color: var(--dark-gray);
    font-weight: 600;
}

.market-overview .card {
    transition: transform 0.2s;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.market-overview .card:hover {
    transform: translateY(-5px);
}

.market-overview .card-title {
    color: var(--primary-color);
    font-weight: 600;
}

.market-overview .card-text {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.index-details {
    font-size: 0.9rem;
}

/* Stock List */
.stock-list {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stock-list h2 {
    color: var(--dark-gray);
    font-weight: 600;
}

.stock-filters .btn {
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.2s;
}

.stock-filters .btn:hover {
    transform: translateY(-2px);
}

.stock-filters .btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: var(--dark-gray);
    color: white;
    font-weight: 500;
    padding: 1rem;
    border: none;
}

.table tbody tr {
    transition: background-color 0.2s;
}

.table tbody tr:hover {
    background-color: var(--light-gray);
}

.table td {
    padding: 1rem;
    vertical-align: middle;
}

/* Price Changes */
.price-up {
    color: var(--success-color);
    font-weight: 500;
}

.price-down {
    color: var(--danger-color);
    font-weight: 500;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Footer */
footer {
    margin-top: 4rem;
}

footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer a {
    text-decoration: none;
    transition: opacity 0.2s;
}

footer a:hover {
    opacity: 0.8;
}

.social-links a {
    font-size: 1.5rem;
    margin-right: 1rem;
}

/* Loading Animation */
.loading {
    width: 2rem;
    height: 2rem;
    border: 3px solid var(--light-gray);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .market-overview,
    .stock-list {
        padding: 1.5rem;
    }

    .stock-filters {
        margin-top: 1rem;
    }

    .stock-filters .btn {
        margin-bottom: 0.5rem;
    }

    .table td,
    .table th {
        padding: 0.75rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
} 

/* SIP Calculator Page Styles */
.section-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    background: linear-gradient(90deg, #e0f2f1 0%, #fff 100%);
    border-left: 5px solid var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.content-box {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.key-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.point {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--light-gray);
    border-radius: 8px;
    transition: transform 0.2s;
}

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

.point i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.point h4 {
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.feature-list i {
    color: var(--success-color);
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.calculator-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,150,136,0.08);
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
}

.calculator-form {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.calculator-form label {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.calculator-form .form-control {
    border: 1px solid #ddd;
    padding: 0.75rem;
    border-radius: 5px;
}

.calculator-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(41, 98, 255, 0.25);
}

.result-box {
    background: #e0f2f1;
    border-left: 5px solid var(--primary-color);
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.result-box h4 {
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.result-box p {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.benefit-card {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    height: 100%;
    transition: transform 0.2s;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.benefit-card h4 {
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .key-points {
        grid-template-columns: 1fr;
    }

    .calculator-form {
        padding: 1.5rem;
    }

    .result-box {
        margin-bottom: 1rem;
    }

    .benefit-card {
        margin-bottom: 1rem;
    }
}

/* Article Styles */
.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    color: #666;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content .lead {
    font-size: 1.3rem;
    color: #444;
    margin-bottom: 2rem;
}

.info-box {
    background-color: var(--light-gray);
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
}

.info-box h3 {
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
}

.feature-list-container {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.feature-list-container h3 {
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
}

.forecast-box {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
}

.forecast-box h2 {
    color: white;
    margin-bottom: 1rem;
}

.target-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.target-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.target-item h4 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.target-item p {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.conclusion-box {
    background-color: var(--light-gray);
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
}

.conclusion-box h2 {
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.disclaimer {
    background-color: rgba(255, 23, 68, 0.1);
    border-left: 4px solid var(--danger-color);
    padding: 1rem;
    margin-top: 2rem;
    border-radius: 0 8px 8px 0;
}

.disclaimer p {
    margin: 0;
    color: var(--dark-gray);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .article-title {
        font-size: 2rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .target-list {
        grid-template-columns: 1fr;
    }

    .info-box,
    .feature-list-container,
    .forecast-box,
    .conclusion-box {
        padding: 1.5rem;
    }
} 

/* Enhanced Live Ticker Styles */
.live-ticker {
    font-size: 1.2rem;
    font-weight: 600;
    background: #fffbe7;
    border-left: 4px solid var(--warning-color);
    min-height: 48px;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}
.ticker-scroll {
    display: flex;
    gap: 3rem;
    animation: ticker-move 25s linear infinite;
    white-space: nowrap;
    will-change: transform;
}
@keyframes ticker-move {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}
.live-ticker::before, .live-ticker::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 40px;
    z-index: 2;
    pointer-events: none;
}
.live-ticker::before {
    left: 0;
    background: linear-gradient(to right, #fffbe7 80%, rgba(255,251,231,0));
}
.live-ticker::after {
    right: 0;
    background: linear-gradient(to left, #fffbe7 80%, rgba(255,251,231,0));
}
@media (max-width: 600px) {
    .live-ticker {
        font-size: 1rem;
        min-height: 40px;
    }
    .ticker-scroll {
        gap: 1.5rem;
    }
    .live-ticker::before, .live-ticker::after {
        width: 20px;
    }
}

.adsense-placeholder {
    min-height: 60px;
    background: #f8f9fa;
    border: 2px dashed #e0e0e0;
    color: #888;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}
/* Section Title Modernization */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    letter-spacing: 0.5px;
    border-left: 5px solid var(--primary-color);
    padding-left: 0.75rem;
    background: linear-gradient(90deg, #e3f0ff 0%, #fff 100%);
    border-radius: 0 8px 8px 0;
} 