/* General Styles */
body { 
    padding-top: 70px; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

section { 
    padding: 60px 0; 
}

.section-title { 
    text-align: center; 
    margin-bottom: 40px; 
    text-transform: uppercase; 
    font-weight: 800; 
    color: #333; 
    position: relative;
    letter-spacing: 1px;
}

.section-title::after { 
    content: ''; 
    width: 60px; 
    height: 4px; 
    background: #ffc107; 
    position: absolute; 
    bottom: -10px; 
    left: 50%; 
    transform: translateX(-50%); 
    border-radius: 2px;
}

/* Slider Styles */
.carousel-item { 
    height: 500px; 
    background-color: #333; 
    color: white; 
}

.carousel-item img { 
    object-fit: cover; 
    height: 100%; 
    width: 100%; 
    opacity: 0.7; 
}

/* --- ABOUT US DYNAMIC STYLES --- */

/* 1. Image Styling */
#aboutMainImg {
    max-width: 500px;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    /* Image Float Left */
    float: left !important; 
    margin-right: 30px !important;
    margin-bottom: 20px !important;
}

/* 2. Text Container */
#aboutDescText {
    display: block;
    width: 100%;
    color: #444;
    font-size: 16px;
    line-height: 1.8;
}

/* 3. Justify All Paragraphs (ඔබ ඉල්ලූ පරිදි අනිවාර්ය Justify) */
#aboutDescText p,
#aboutDescText div,
#aboutDescText span {
    text-align: justify !important;
    margin-bottom: 15px;
}

/* 4. Highlight First Paragraph (පළමු ඡේදය විශේෂ කිරීම) */
/* Admin Panel එකේ පළමු පේළියට මෙය අදාළ වේ */
#aboutDescText p:first-child {
    background-color: #fff3cd;      /* ලා කහ පසුබිම */
    border-left: 6px solid #ffc107; /* තැඹිලි ඉර */
    padding: 15px 20px;
    border-radius: 5px;
    color: #856404;                 /* තද අකුරු */
    font-weight: 800;               /* තද අකුරු */
    font-size: 1.2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: left !important;    /* Tagline එක මැදට හෝ වමට */
    display: block;
    margin-bottom: 25px;
}

/* Vision & Mission Styles */
.vision-mission-box {
    background: #ffffff;
    border-left: 5px solid #ffc107;
    padding: 25px;
    margin-top: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.vision-mission-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.mission-box {
    border-left-color: #2c3e50;
}

.vm-title {
    color: #333;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.vm-title i {
    margin-right: 12px;
    color: #ffc107;
    font-size: 1.2rem;
}

.vm-text {
    font-style: italic;
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .section-title { text-align: center !important; }
    
    #aboutMainImg {
        float: none !important;
        display: block;
        margin: 0 auto 20px auto !important;
    }
}

/* ... (Product Card, Cart, Modal Styles කලින් පරිදිම තබන්න) ... */
.cart-float { position: fixed; bottom: 30px; right: 30px; background: #ffc107; color: #000; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.3); z-index: 1000; transition: transform 0.2s; }
.cart-float:hover { transform: scale(1.1); }
.cart-count { position: absolute; top: -5px; right: -5px; background: red; color: white; font-size: 12px; padding: 4px 8px; border-radius: 50%; }
/* Footer Phone Number Display Fix */
#footerPhone {
    white-space: pre-line; /* Textarea එකේ ගැසූ එන්ටර් (New lines) එලෙසම පෙන්වයි */
    display: inline-block;
    vertical-align: top;
}
/* Footer Phone Number Display Fix */
#footerPhone {
    white-space: pre-line; /* Textarea එකේ ගැසූ එන්ටර් (New lines) එලෙසම පෙන්වයි */
    display: inline-block;
    vertical-align: top;
}
/* --- ARTICLE POPUP STYLING (NEW IMPROVEMENTS) --- */

/* 1. Modal Header Design */
#articleModal .modal-header {
    background-color: #212529; /* Dark Background */
    color: #ffc107;            /* Yellow Text */
    border-bottom: 4px solid #ffc107; /* Yellow Line */
    padding: 15px 25px;
}

#articleModal .modal-title {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#articleModal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%); /* Make close button white */
}

/* 2. Image Enhancement */
#modalArtImg {
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15); /* Drop Shadow */
    margin-bottom: 30px !important; /* Space below image */
    border: 1px solid #eee;
}

/* 3. Text Content Styling */
#modalArtContent {
    color: #333 !important;      /* Darker text for readability */
    font-size: 1.1rem;           /* Slightly larger font */
    line-height: 2 !important;   /* More space between lines */
    text-align: justify !important; /* Justify alignment */
    padding: 0 15px 20px 15px;   /* Padding around text */
}

/* 4. Formatting Paragraphs inside the article */
#modalArtContent p {
    margin-bottom: 20px; /* Space between paragraphs */
}

/* 5. Formatting Headings inside the article (If any) */
#modalArtContent h1, 
#modalArtContent h2, 
#modalArtContent h3, 
#modalArtContent h4 {
    color: #000;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 15px;
    text-align: left; /* Headings look better aligned left */
    border-left: 4px solid #ffc107;
    padding-left: 10px;
}

/* 6. Formatting Lists inside the article */
#modalArtContent ul, 
#modalArtContent ol {
    margin-bottom: 20px;
    padding-left: 40px;
}

#modalArtContent li {
    margin-bottom: 10px;
}