/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Container width control */
.resources-hero,
.clinical-pharmacist,
.templates,
.recommended-apps,
.prescription-guide,
.useful-links,
.rx-label-guide,
footer {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Content width control */
.section-content,
.footer-content,
.instructions-container {
    max-width: var(--container-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 5%;
    box-sizing: border-box;
}

/* Hero Section */
.resources-hero {
    height: 400px;
    background: linear-gradient(135deg, 
                rgba(27, 54, 93, 0.98) 0%,
                rgba(27, 54, 93, 0.95) 50%,
                rgba(152, 193, 217, 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: var(--header-height);
}

.resources-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
    letter-spacing: -0.5px;
    color: var(--accent-color);
}

.resources-hero p {
    font-size: 1.5rem;
    font-weight: 500;
    max-width: 600px;
    line-height: 1.4;
    color: var(--white);
    margin: 0 auto;
}

/* Clinical Pharmacist Section */
.clinical-pharmacist {
    padding: 80px 5%;
    background: var(--white);
}

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

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 700;
}

.highlight-box {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 30px;
    border-radius: 15px;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

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

.highlight-box i {
    font-size: 2.5rem;
    color: var(--accent-color);
}

.highlight-box p {
    font-size: 1.2rem;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid rgba(152, 193, 217, 0.2);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--background-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.service-card:hover .card-icon {
    background: var(--primary-color);
}

.card-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.service-card:hover .card-icon i {
    color: var(--white);
}

.service-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    color: var(--text-dark);
    line-height: 1.6;
}

.closing-statement {
    background: var(--background-light);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.closing-statement i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.closing-statement p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Templates Section */
.templates {
    padding: 80px 5%;
    background: linear-gradient(135deg,
                rgba(152, 193, 217, 0.1) 0%,
                rgba(27, 54, 93, 0.05) 100%);
}

.instructions-container {
    max-width: 1000px;
    margin: 0 auto;
}

.instructions-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.download-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 30px;
    text-align: center;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: var(--white);
    color: var(--primary-color);
    padding: 15px 30px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.download-btn i {
    font-size: 1.8rem;
}

.download-btn span {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.download-btn strong {
    font-size: 1.1rem;
}

.download-btn small {
    font-size: 0.8rem;
    opacity: 0.8;
}

.steps-section {
    padding: 40px;
}

.steps-section h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.steps-grid {
    display: grid;
    gap: 20px;
}

.step-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: var(--background-light);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateX(10px);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.step-number {
    background: var(--primary-color);
    color: var(--white);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-card p {
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
}

/* Apps Section */
.recommended-apps {
    padding: 80px 5%;
    background: var(--white);
}

.app-category {
    margin-bottom: 40px;
}

.app-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.app-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(152, 193, 217, 0.1);
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.app-icon {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(152, 193, 217, 0.1);
}

.app-icon i {
    font-size: 1.5rem;
}

.app-title {
    flex: 1;
}

.app-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.app-type {
    color: var(--text-light);
    font-size: 0.9rem;
}

.app-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.app-features li {
    color: var(--text-dark);
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.5;
}

.app-features li i {
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Prescription Guide */
.prescription-guide {
    padding: 80px 5%;
    background: var(--background-light);
}

/* Useful Links */
.useful-links {
    padding: 80px 5%;
    background: var(--white);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.resource-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    background: var(--background-light);
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.resource-link:hover {
    transform: translateY(-5px);
    background: var(--primary-color);
    color: var(--white);
}

.resource-link i {
    font-size: 2rem;
    margin-bottom: 15px;
}

/* Blood Pressure Template Section */
.bp-template {
    background: var(--white);
}

.bp-template .highlight-box i {
    color: #ff6b6b;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.1); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); }
}

.bp-template .step-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: rgba(152, 193, 217, 0.1);
}

.bp-template .step-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.bp-template .step-icon {
    color: var(--primary-color);
    font-size: 1.5rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.bp-template .step-card:hover {
    transform: translateX(10px);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.bp-template .step-card:hover .step-icon {
    opacity: 1;
    transform: scale(1.1);
}

.bp-template .download-section {
    background: linear-gradient(135deg, 
        var(--primary-color),
        var(--secondary-color) 70%,
        #ff6b6b 100%);
}

/* Glucose Template Section */
.glucose-template {
    background: linear-gradient(135deg,
                rgba(152, 193, 217, 0.1) 0%,
                rgba(27, 54, 93, 0.05) 100%);
}

.glucose-template .highlight-box i {
    color: #4CAF50;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.glucose-template .step-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: rgba(152, 193, 217, 0.1);
}

.glucose-template .step-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.glucose-template .step-icon {
    color: #4CAF50;
    font-size: 1.5rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.glucose-template .step-card:hover {
    transform: translateX(10px);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.glucose-template .step-card:hover .step-icon {
    opacity: 1;
    transform: scale(1.1);
}

.glucose-template .download-section {
    background: linear-gradient(135deg, 
        var(--primary-color),
        var(--secondary-color) 70%,
        #4CAF50 100%);
}

/* Medication List Template Section */
.templates .step-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: rgba(152, 193, 217, 0.1);
}

.templates .step-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.templates .step-icon {
    color: var(--primary-color);
    font-size: 1.5rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.templates .step-card:hover {
    transform: translateX(10px);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.templates .step-card:hover .step-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* Medication Apps Section */
.med-apps {
    padding: 80px 5%;
    background: var(--white);
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.app-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(152, 193, 217, 0.1);
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.app-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.app-icon {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(152, 193, 217, 0.1);
}

.app-icon i {
    font-size: 1.5rem;
}

.app-title {
    flex: 1;
}

.app-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.app-type {
    color: var(--text-light);
    font-size: 0.9rem;
}

.app-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.app-features li {
    color: var(--text-dark);
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.5;
}

.app-features li i {
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Disclaimer Section */
.disclaimer-section {
    margin-top: 60px;
}

.disclaimer-card {
    background: rgba(152, 193, 217, 0.1);
    border-radius: 15px;
    padding: 30px;
}

.disclaimer-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.disclaimer-header i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.disclaimer-header h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.disclaimer-card p {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 15px;
}

.disclaimer-card p:last-child {
    margin-bottom: 0;
}

/* Prescription Label Guide Section */
.rx-label-guide {
    padding: 80px 5%;
    background: linear-gradient(135deg,
                rgba(152, 193, 217, 0.1) 0%,
                rgba(27, 54, 93, 0.05) 100%);
}

/* Prescription Label Styling */
.rx-bottle {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 20px;
    transform: perspective(1000px) rotateX(5deg);
}

.rx-label {
    background: white;
    border: 2px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    font-family: 'Courier New', monospace;
}

.pharmacy-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ddd;
    margin-bottom: 15px;
}

.pharmacy-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.pharmacy-info h4 {
    font-size: 1.1rem;
    margin: 0 0 5px 0;
    color: var(--primary-color);
}

.pharmacy-info p {
    font-size: 0.8rem;
    margin: 0;
    color: var(--text-dark);
}

.label-section {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.label-section:hover,
.label-section.active {
    background: rgba(152, 193, 217, 0.1);
    border-color: var(--primary-color);
}

.label-content {
    font-size: 0.9rem;
    line-height: 1.4;
}

.patient-name,
.med-name {
    font-weight: bold;
    font-size: 1rem;
}

.directions {
    margin: 10px 0;
    line-height: 1.5;
}

.warning-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #ddd;
}

.warning-label {
    background: #ffeb3b;
    color: #333;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.warning-label i {
    font-size: 1rem;
}

.label-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #ddd;
    font-size: 0.8rem;
}

.pill-description {
    color: #666;
    margin-bottom: 10px;
}

.barcode {
    text-align: center;
}

.barcode img {
    max-width: 200px;
    height: auto;
}

/* Label Interactive Area */
.label-interactive {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 60px 0;
    align-items: center;
}

/* Prescription Bottle Visualization */
.rx-bottle {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    aspect-ratio: 3/4;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    padding: 20px;
}

.rx-label {
    position: relative;
    width: 100%;
    height: 100%;
    background: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.label-section {
    position: relative;
    padding: 15px;
    border: 1px dashed rgba(27, 54, 93, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.label-section:hover {
    background: rgba(152, 193, 217, 0.1);
}

.label-section.active {
    background: rgba(152, 193, 217, 0.2);
    border-color: var(--primary-color);
}

.hotspot {
    position: absolute;
    right: -10px;
    top: -10px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Label Components */
.label-components {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin: 60px 0;
}

.label-component {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.component-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.header-content {
    flex: 1;
}

.header-content h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.header-content p {
    margin: 5px 0 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.component-number {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    flex-shrink: 0;
    color: var(--white);
}

.component-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
}

.component-visual {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.label-example {
    font-family: 'Courier New', monospace;
    background: white;
    border: 2px solid #ddd;
    padding: 15px;
    border-radius: 8px;
}

.highlight-area {
    background: rgba(152, 193, 217, 0.1);
    border: 2px solid var(--primary-color);
    padding: 10px;
    border-radius: 4px;
}

.component-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.component-details li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.component-details li i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Safety Guidelines Section */
.safety-guidelines {
    margin-top: 60px;
    padding: 40px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.guidelines-header {
    text-align: center;
    margin-bottom: 40px;
}

.guidelines-header i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.guidelines-header h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.guidelines-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.guidelines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.guideline-card {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: rgba(152, 193, 217, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.guideline-card:hover {
    transform: translateY(-5px);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.guideline-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.guideline-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.guideline-content h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.guideline-content p {
    color: var(--text-dark);
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Main Site Footer */
footer {
    background: var(--primary-color);
    padding: 60px 0 20px;
    color: var(--white);
    width: 100%;
    box-sizing: border-box;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 5%;
    box-sizing: border-box;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-section h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

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

.footer-bottom {
    text-align: center;
    padding: 20px 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    width: 100%;
    box-sizing: border-box;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Guidelines Section Footer */
.guidelines-footer .footer-content {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(152, 193, 217, 0.1);
    border-radius: 12px;
}

.guidelines-footer .footer-content i {
    font-size: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.guidelines-footer .footer-content p {
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 1.1rem;
    margin: 0;
}

/* Tools Section Footer */
.tools-footer .footer-note {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: rgba(152, 193, 217, 0.1);
    border-radius: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.tools-footer .footer-note i {
    font-size: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.tools-footer .footer-note p {
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
    font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .resources-hero {
        height: 350px;
    }

    .resources-hero h1 {
        font-size: 2.8rem;
    }

    .resources-hero p {
        font-size: 1.3rem;
        max-width: 500px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .service-card {
        padding: 25px;
    }

    .highlight-box {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }

    .highlight-box i {
        margin-bottom: 15px;
    }

    .app-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .label-interactive {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .resources-hero {
        height: 300px;
        padding: 60px 5% 40px;
    }

    .resources-hero h1 {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }

    .resources-hero p {
        font-size: 1.1rem;
        max-width: 400px;
        line-height: 1.3;
    }

    .clinical-pharmacist,
    .templates,
    .recommended-apps,
    .prescription-guide,
    .useful-links {
        padding: 50px 5%;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 20px;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }

    .service-card p {
        font-size: 0.95rem;
    }

    .highlight-box {
        padding: 20px;
    }

    .highlight-box p {
        font-size: 1.1rem;
    }

    .app-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .app-card {
        padding: 20px;
    }

    .app-features li {
        font-size: 0.9rem;
        padding-left: 25px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .tool-card {
        padding: 20px;
    }

    .tool-content h4 {
        font-size: 1.1rem;
    }

    .tool-content p {
        font-size: 0.9rem;
    }

    .links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .resource-link {
        padding: 20px;
    }

    .resource-link i {
        font-size: 1.8rem;
    }

    .steps-section {
        padding: 25px;
    }

    .step-card {
        grid-template-columns: auto 1fr;
    }

    .step-icon {
        display: none;
    }

    .download-section {
        padding: 25px;
    }

    .download-btn {
        width: 100%;
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    /* Base layout adjustments */
    body {
        width: 100vw;
        min-width: 100%;
        overflow-x: hidden;
        margin: 0;
        padding: 0;
    }

    /* Hero section adjustments */
    .resources-hero {
        width: 100%;
        min-width: 100%;
        height: 220px;
        padding: 40px 20px 20px;
        margin: 0;
        box-sizing: border-box;
    }

    /* Section adjustments */
    .clinical-pharmacist,
    .templates,
    .recommended-apps,
    .prescription-guide,
    .useful-links,
    .rx-label-guide {
        width: 100%;
        min-width: 100%;
        padding: 30px 20px;
        margin: 0;
        box-sizing: border-box;
    }

    /* Container width fixes */
    .section-content,
    .instructions-container,
    .services-grid,
    .app-list,
    .tools-grid,
    .links-grid {
        width: 100%;
        min-width: 100%;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    /* Card width fixes */
    .service-card,
    .app-card,
    .tool-card,
    .highlight-box,
    .rx-bottle,
    .instructions-card {
        width: 100%;
        min-width: 100%;
        margin: 0 0 15px 0;
        box-sizing: border-box;
    }

    /* Grid adjustments */
    .services-grid,
    .app-list,
    .tools-grid,
    .links-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0;
    }

    /* Component adjustments */
    .component-content,
    .label-interactive,
    .guidelines-grid {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
        margin: 0;
        box-sizing: border-box;
    }

    /* Footer adjustments */
    .footer-content,
    .footer-note,
    .guidelines-footer .footer-content,
    .tools-footer .footer-note {
        width: 100%;
        padding: 15px;
        margin: 0;
        box-sizing: border-box;
    }

    .resources-hero h1 {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
        word-wrap: break-word;
    }

    .resources-hero p {
        font-size: 0.9rem;
        max-width: 280px;
        line-height: 1.2;
        word-wrap: break-word;
    }

    /* Card and grid adjustments */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .service-card {
        padding: 15px;
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
    }

    .card-icon {
        width: 40px;
        height: 40px;
    }

    .service-card h3 {
        font-size: 1rem;
        margin-bottom: 8px;
        word-wrap: break-word;
    }

    .service-card p {
        font-size: 0.85rem;
        line-height: 1.3;
    }

    /* Highlight box adjustments */
    .highlight-box {
        padding: 15px;
        margin: 0 auto;
        width: 100%;
    }

    .highlight-box i {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .highlight-box p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    /* App section adjustments */
    .app-card {
        padding: 12px;
    }

    .app-header {
        gap: 10px;
        margin-bottom: 15px;
    }

    .app-icon {
        width: 35px;
        height: 35px;
    }

    .app-card h3 {
        font-size: 1rem;
    }

    .app-features li {
        font-size: 0.8rem;
        margin-bottom: 6px;
        padding-left: 20px;
    }

    /* Tools section adjustments */
    .tool-card {
        padding: 12px;
        gap: 10px;
    }

    .tool-icon {
        width: 35px;
        height: 35px;
    }

    .tool-content h4 {
        font-size: 1rem;
    }

    .tool-content p {
        font-size: 0.85rem;
        line-height: 1.3;
    }

    /* Footer adjustments */
    .footer-note {
        padding: 15px;
    }

    .footer-note p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    /* Prescription Label Guide Section - Mobile Redesign */
    .rx-label-guide {
        padding: 40px 4%;
    }

    .label-interactive {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Simplified Rx bottle for mobile */
    .rx-bottle {
        max-width: 100%;
        transform: none;
        margin: 0;
        padding: 15px;
        box-shadow: var(--shadow-md);
    }

    .rx-label {
        padding: 12px;
        border-width: 1px;
    }

    .pharmacy-header {
        padding-bottom: 10px;
        margin-bottom: 10px;
        flex-wrap: wrap;
    }

    .pharmacy-logo {
        width: 40px;
        height: 40px;
    }

    .pharmacy-info h4 {
        font-size: 1rem;
    }

    .pharmacy-info p {
        font-size: 0.75rem;
    }

    /* Mobile-optimized label components */
    .label-components {
        gap: 20px;
        margin: 30px 0;
    }

    .component-card {
        border-radius: 12px;
        overflow: hidden;
    }

    .component-header {
        padding: 15px;
        gap: 12px;
    }

    .component-number {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .header-content h3 {
        font-size: 1.1rem;
    }

    .header-content p {
        font-size: 0.8rem;
    }

    .component-content {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }

    .component-visual {
        padding: 12px;
    }

    .label-example {
        padding: 10px;
        font-size: 0.85rem;
    }

    .component-details li {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    /* Safety Guidelines - Mobile Optimization */
    .safety-guidelines {
        margin-top: 30px;
        padding: 20px;
        border-radius: 12px;
    }

    .guidelines-header {
        margin-bottom: 25px;
    }

    .guidelines-header i {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .guidelines-header h3 {
        font-size: 1.4rem;
    }

    .guidelines-header p {
        font-size: 0.9rem;
    }

    .guidelines-grid {
        gap: 15px;
    }

    .guideline-card {
        padding: 15px;
        gap: 12px;
    }

    .guideline-icon {
        width: 40px;
        height: 40px;
    }

    .guideline-icon i {
        font-size: 1.2rem;
    }

    .guideline-content h4 {
        font-size: 1rem;
    }

    .guideline-content p {
        font-size: 0.85rem;
    }

    /* Warning Examples - Mobile Optimization */
    .warning-examples p {
        padding: 6px 10px;
        font-size: 0.85rem;
        gap: 8px;
    }

    .warning-examples i {
        font-size: 1rem;
    }

    /* Interactive Elements - Mobile Optimization */
    .label-section {
        padding: 12px;
        margin-bottom: 8px;
    }

    .label-section.active {
        background: rgba(152, 193, 217, 0.15);
    }

    .hotspot {
        width: 20px;
        height: 20px;
        font-size: 0.8rem;
        right: -8px;
        top: -8px;
    }

    /* Accordion-style mobile layout for prescription details */
    .rx-details-accordion .accordion-item {
        border: 1px solid rgba(152, 193, 217, 0.2);
        border-radius: 8px;
        margin-bottom: 10px;
        overflow: hidden;
    }

    .rx-details-accordion .accordion-header {
        padding: 12px;
        background: rgba(152, 193, 217, 0.05);
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
    }

    .rx-details-accordion .accordion-header h4 {
        font-size: 1rem;
        margin: 0;
        color: var(--primary-color);
    }

    .rx-details-accordion .accordion-content {
        padding: 12px;
        font-size: 0.9rem;
        line-height: 1.4;
        display: none;
    }

    .rx-details-accordion .accordion-item.active .accordion-content {
        display: block;
    }
}

/* Add AOS animations */
[data-aos] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Warning Examples Styling */
.warning-examples p {
    background: #fff3cd;
    color: #856404;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.warning-examples p:last-child {
    margin-bottom: 0;
}

.warning-examples i {
    color: #856404;
    font-size: 1.1rem;
}

/* Add hover effect for better interactivity */
.label-component:hover .component-header {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* Recommended Tools Section */
.recommended-tools {
    padding: 80px 5%;
    background: var(--white);
}

.tool-category {
    margin-bottom: 60px;
}

.tool-category h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.tool-category h3 i {
    color: var(--secondary-color);
    font-size: 1.8rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.tool-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(152, 193, 217, 0.1);
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.tool-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Custom colors for different tool categories */
.medicare .tool-icon {
    background: #1a73e8;
    color: white;
}

.zocdoc .tool-icon {
    background: #00b6e3;
    color: white;
}

.goodrx .tool-icon {
    background: #ff7043;
    color: white;
}

.myfitnesspal .tool-icon {
    background: #4caf50;
    color: white;
}

.do-fitness .tool-icon {
    background: #ff5722;
    color: white;
}

.headspace .tool-icon {
    background: #ff9800;
    color: white;
}

.apple-health .tool-icon {
    background: #e91e63;
    color: white;
}

.withings .tool-icon {
    background: #2196f3;
    color: white;
}

.onerecord .tool-icon {
    background: #673ab7;
    color: white;
}

.tool-content {
    flex: 1;
}

.tool-content h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.tool-content p {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.tool-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(152, 193, 217, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.tools-footer {
    margin-top: 40px;
}

.footer-note {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: rgba(152, 193, 217, 0.1);
    border-radius: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.footer-note i {
    font-size: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.footer-note p {
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
    font-size: 1.1rem;
}

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

    .tool-card {
        padding: 20px;
    }

    .footer-note {
        flex-direction: column;
        text-align: center;
    }
} 